:root {
  --brand: #0d6efd;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --line: #dc3545;
  --text-sub: #6b7280;
}

/* ===== Premium Modal 外觀 ===== */
.modal-premium .modal-dialog {
  max-width: 1120px;
}

.modal-premium .modal-content {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 110, 253, .15);
  background: radial-gradient(1200px 500px at 10% -10%, rgba(13, 110, 253, .06), transparent 55%),
    radial-gradient(1000px 400px at 100% 0%, rgba(111, 66, 193, .06), transparent 50%),
    var(--surface);
  backdrop-filter: saturate(1.2) blur(2px);
}

.modal-premium .modal-header {
  border: 0;
  padding: .9rem 1.25rem;
  background: linear-gradient(180deg, rgba(13, 110, 253, .06), transparent);
}

.modal-premium .modal-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
}

.modal-premium .modal-title .bi {
  color: var(--brand);
}

.modal-premium .modal-footer {
  background: linear-gradient(180deg, transparent, #fafbff);
}

/* ===== 結構&元件 ===== */
.filter-chip {
  cursor: pointer;
}

.option-item {
  border: 1px solid #6b7280;
  border-radius: .75rem;
  padding: .6rem .9rem;
  transition: all .15s ease;
  background: #fff;
  cursor: pointer;
}

.option-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 20, 30, .06);
  border-color: #dbe3ee;
}

.option-item.active {
  border-color: var(--line);
}

.sticky-col {
  position: sticky;
  top: 0;
}

.group-list .list-group-item {
  border: 0;
  border-radius: .6rem;
  margin-bottom: .25rem;
  background: transparent;
}

.group-list .list-group-item:hover {
  background: #f3f6fb;
}

.group-list .list-group-item.active {
  color: #fff;
  background: #BE1A2A;
}

.option-grid {
  max-height: 48vh;
  overflow: auto;
}

.selected-bar {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, .85));
  z-index: 2;
  border-bottom: 1px dashed var(--line);
}

.search-input {
  position: sticky;
  top: 58px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), #fff);
  z-index: 2;
}

.badge-filter {
  cursor: pointer;
}

.btn-red {
  background-color: #BE1A2A;
  color: #fff;
  border-color: #BE1A2A;
}

/* 高級 Chips 樣式 */
.badge-filter {
  border-radius: 999px;
  padding: .45rem .65rem;
  font-weight: 500;
  border: 1px solid;
  margin: 0.5rem 0.25rem;
}

.option-item input[type="checkbox"]:checked {
  accent-color: #BE1A2A;
}

/* 行動裝置優化 */
@media (max-width: 992px) {
  .option-grid {
    max-height: unset;
  }

  .search-input {
    top: 58px;
  }

  .modal-premium .modal-header {
    padding: .75rem 1rem;
  }

  .modal-premium {
    font-size: 2rem;
  }

  .modal-premium .form-control {
    font-size: 2rem;
  }

  .modal-premium .option-grid {
    font-size: 2rem;
  }

  .modal-premium .btn {
    font-size: 2rem;
  }

  .modal-premium input[type="checkbox"] {
    height: 1.5rem;
    width: 1.5rem;
  }

  .Filt {
    font-size: 1.5rem;
  }

  .badge-filter {
    cursor: pointer;
    font-size: 1.5rem;
  }

  .custom-radio .form-check-input {
    width: 25px;
    height: 25px;

  }
}

.custom-radio .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  /* 與文字垂直置中 */
  border: 2px solid #9aa0a6;
  /* 未選邊框 */
  background-color: #fff;
  background-image: none;
  /* 移除 Bootstrap 內建背景 */
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.custom-radio .form-check-input:hover {
  border-color: #6c757d;
}

.custom-radio .form-check-input:focus {
  box-shadow: none;
  /* 移除藍色外框 */
}

/* 使用偽元素畫出「實心點」：符合您圖片中的樣式 */
.custom-radio .form-check-input {
  position: relative;
}

.custom-radio .form-check-input:checked {
  border-color: #BE1A2A;
  accent-color: #BE1A2A;
  /* 主色：Bootstrap success 綠 */
}

.custom-radio .form-check-input:checked::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #BE1A2A;
}

/* 文字樣式與間距 */
.custom-radio .form-check-label {
  margin-left: .4rem;
  font-weight: 600;
  color: #343a40;
  user-select: none;
}