/* Rabbit Plan Collection & Ranking */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.plan-ranking-card {
  scroll-margin-top: 100px;
  background: var(--island-surface);
  border: 2.5px solid var(--island-border);
  border-radius: var(--island-radius-xl);
  padding: 2.25rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--island-shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-ranking-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--island-shadow-lg);
}

.plan-ranking-card.recommended {
  border-color: var(--island-green);
  background: linear-gradient(180deg, #F9FDF9 0%, #FFFFFF 100%);
}

.plan-rank-badge {
  position: absolute;
  top: -16px;
  left: 28px;
  background: var(--island-heading);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.plan-recommend-ribbon {
  position: absolute;
  top: -16px;
  right: 28px;
  background: var(--island-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(139, 203, 155, 0.4);
}

.plan-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.plan-rabbit-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 6px;
  background: var(--island-paper);
}

.plan-meta h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.plan-meta .english-name {
  font-size: 0.85rem;
  color: var(--island-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price-block {
  margin: 1.25rem 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px dashed var(--island-border);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--island-heading);
}

.price-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--island-heading);
}

.price-cycle {
  font-size: 1.1rem;
  color: var(--island-muted);
  font-weight: 600;
}

.price-sub {
  font-size: 0.9rem;
  color: var(--island-muted);
  margin-top: 0.35rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.feature-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--island-green-dark);
}

.plan-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-primary-subscribe {
  background: var(--island-peach);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--island-radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(246, 169, 133, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.btn-primary-subscribe:hover {
  transform: translateY(-2px);
  background: #f49b70;
  box-shadow: 0 8px 24px rgba(246, 169, 133, 0.5);
}

.btn-secondary-details {
  background: var(--island-paper);
  color: var(--island-heading);
  text-align: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--island-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--island-border);
  transition: all 0.2s ease;
  display: block;
}

.btn-secondary-details:hover {
  background: var(--island-border);
}

.filter-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--island-surface);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--island-border);
  box-shadow: var(--island-shadow-sm);
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: none;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--island-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--island-green-soft);
  color: var(--island-green-dark);
}

.sort-select-wrap select {
  background: var(--island-paper);
  border: 1px solid var(--island-border);
  padding: 0.45rem 1rem;
  border-radius: var(--island-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--island-heading);
  cursor: pointer;
}
