/* ==========================================================================
   RANK SPEEDOMETER ARC (CLYPORA THEME — DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */

.lp-section-rank {
  background: #000000 !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 4.5rem 1rem 5rem !important;
  color: #ffffff !important;
}

/* Ambient radial glow behind the speedometer arc: Clypora Magenta/Purple */
.rank-arc-ambient-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate(-50%, -10%);
  width: 820px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 36%, rgba(180, 5, 137, 0.32) 0%, rgba(143, 4, 196, 0.12) 48%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
  z-index: 1;
}

.rank-arc-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  user-select: none;
  width: 100%;
}

.rank-arc-stage {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 900 / 520;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rank-arc-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

/* Arc Segment Paths */
.arc-seg-path {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-seg-path:hover {
  fill: rgba(180, 5, 137, 0.18);
  stroke: rgba(255, 4, 62, 0.5);
}

.arc-seg-path.active {
  fill: url(#clypora-active-seg) !important;
  stroke: #ff043e !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 0 16px rgba(180, 5, 137, 0.95)) drop-shadow(0 0 28px rgba(255, 4, 62, 0.6));
}


/* Curved SVG rank names: each label follows its own speedometer segment. */
.arc-rank-label {
  fill: #c8c8c8;
  font: 500 18px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.1px;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.82);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.arc-rank-label.active {
  fill: #ffffff;
  font-weight: 700;
  filter: drop-shadow(0 0 8px rgba(255, 46, 106, 0.95));
}

/* Needle Animation Group */
.arc-needle-group {
  transition: transform 0.6s cubic-bezier(0.34, 1.35, 0.64, 1);
}

/* Interactive Items Layer on Arc */
.arc-items-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arc-item {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s ease;
}

.arc-item:hover {
  transform: translate(-50%, -54%);
}

/* Rank Name Labels */
.arc-item-label {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #c4c4c4;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  transition: color 0.3s, transform 0.3s;
  pointer-events: none;
}

.arc-item-label .label-full {
  display: inline-block;
}

.arc-item-label .label-short {
  display: none;
}

.arc-item.active .arc-item-label {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 46, 106, 0.95);
}

.arc-item-badge {
  width: 52px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.arc-item-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
  transition: all 0.3s;
}

.arc-item:hover .arc-item-badge img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 14px rgba(180, 5, 137, 0.8));
}

.arc-item.active .arc-item-badge img {
  transform: scale(1.18);
  filter: drop-shadow(0 0 18px rgba(255, 4, 62, 0.95)) drop-shadow(0 0 26px rgba(180, 5, 137, 0.7));
}

/* Center Info Panel: Positioned inside lower arc area */
.arc-center-info {
  position: absolute;
  top: 68.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  width: 100%;
  max-width: 480px;
  z-index: 10;
}

.arc-center-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  border-radius: 9999px;
  background: rgba(36, 6, 28, 0.85);
  border: 1px solid rgba(255, 46, 106, 0.6);
  color: #ff2e6a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: 0 0 16px rgba(180, 5, 137, 0.4);
}

.arc-center-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.arc-center-bonus {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #b8b8b8;
  margin: 0;
}

.arc-center-bonus b {
  color: #ff2e6a;
  background: linear-gradient(135deg, #ff043e 0%, #b40589 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 800;
  margin-right: 4px;
}

/* Benefit Pills Row */
.arc-benefit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 3.2rem;
  width: 100%;
  flex-wrap: wrap;
}

.arc-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(20, 8, 20, 0.85);
  border: 1px solid rgba(180, 5, 137, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.arc-benefit-pill:hover {
  border-color: rgba(255, 4, 62, 0.7);
  background: rgba(28, 10, 28, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 5, 137, 0.35);
}

.arc-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.arc-check-icon svg {
  width: 100%;
  height: 100%;
}

.arc-pill-text {
  font-size: 14px;
  font-weight: 500;
  color: #f0f0f0;
  white-space: nowrap;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE PERFECTION (NO OVERLAP, NO SHRINKING)
   ========================================================================== */

@media (max-width: 768px) {
  .lp-section-rank {
    padding: 3rem 0.5rem 4rem !important;
  }

  .rank-arc-container {
    width: 100%;
    padding: 0 4px;
  }

  /* Full width stage on mobile - arc fills the screen width naturally */
  .rank-arc-stage {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 900 / 520;
  }

  .arc-rank-label {
    font-size: 17px;
    font-weight: 600;
    stroke-width: 5px;
  }

  /* Switch labels to concise names on mobile so they NEVER collide */
  .arc-item-label {
    top: -24px !important;
    font-size: 11px !important;
  }
  .arc-item-label .label-full {
    display: none !important;
  }
  .arc-item-label .label-short {
    display: inline-block !important;
    font-weight: 600 !important;
  }

  .arc-item.active .arc-item-label .label-short {
    font-size: 12px !important;
    color: #ffffff !important;
  }

  .arc-item-badge {
    width: 38px !important;
    height: 44px !important;
  }

  .arc-center-info {
    top: 67.5% !important;
  }

  .arc-center-title {
    font-size: 26px !important;
    margin-bottom: 4px !important;
  }

  .arc-center-bonus {
    font-size: 13px !important;
  }

  .arc-center-bonus b {
    font-size: 17px !important;
  }

  .arc-center-pill {
    font-size: 9.5px !important;
    padding: 3px 12px !important;
    margin-bottom: 6px !important;
  }

  .arc-benefit-row {
    flex-direction: column;
    gap: 10px;
    width: 94%;
    margin-top: 3.2rem;
  }

  .arc-benefit-pill {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
  }

  .arc-pill-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .arc-item-label {
    top: -20px !important;
    font-size: 10px !important;
  }

  .arc-item-badge {
    width: 32px !important;
    height: 38px !important;
  }

  .arc-center-title {
    font-size: 22px !important;
  }

  .arc-center-bonus {
    font-size: 12px !important;
  }

  .arc-center-bonus b {
    font-size: 15px !important;
  }
}


/* SVG Badges & Tier Groups Styling */
.arc-badges-group {
  pointer-events: auto;
}

.arc-tier-group {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.arc-badge-img {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

.arc-tier-group:hover .arc-badge-img {
  filter: drop-shadow(0 0 14px rgba(180, 5, 137, 0.85));
}

.arc-tier-group.active .arc-badge-img {
  filter: drop-shadow(0 0 18px rgba(255, 4, 62, 0.95)) drop-shadow(0 0 26px rgba(180, 5, 137, 0.75));
}

.arc-rank-label {
  fill: #c8c8c8;
  font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.5px;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.9);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.arc-rank-label.active {
  fill: #ffffff;
  font-weight: 700;
  filter: drop-shadow(0 0 10px rgba(255, 46, 106, 0.95));
}
