.year-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.year-tab {
  padding: 2px 12px;
  border-radius: 18px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--t);
}

.year-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.year-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.cutoff-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.range-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Curved Results Bump ── */
.results-bump {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: -1px;
  pointer-events: none;
}

@keyframes shake {

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

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.count-text {
  background: linear-gradient(90deg, #c084fc, #e879f9, #f472b6, #c084fc);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textGradient 3s linear infinite;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: block;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.result-count {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.result-count:empty {
  display: none;
}

.chance-summary-row {
  margin: 0;
  padding: 0;
  /* border-top: 1px dashed var(--border); */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  line-height: 1;
  margin-top: 5px
}

.chance-aim-btn {
  /* background: linear-gradient(90deg, #c084fc, #e879f9, #f472b6, #c084fc); */
  color: var(--green);
  background-clip: text;
  border: none;
  margin: 0;
  padding: 0 5px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: textGradient 3s ease-in-out infinite;
}

.chance-aim-btn i {
  font-size: 0.55rem;
  line-height: 1;
}

.chance-highlight {
  color: var(--orange);
  font-weight: 900;
  margin: 0 2px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cutoff-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cutoff-input {
  width: 50px;
  padding: 4px 6px;
  text-align: center;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 700;
  outline: none;
  transition: all var(--t);
  color: var(--accent);
}

.cutoff-input:focus {
  border-color: var(--accent);
}

.cutoff-to,
.cutoff-by {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 26px 4px 9px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: .8125rem;
  outline: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color var(--t), box-shadow var(--t);
  min-width: 60px;
}

.custom-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}

body.dark .custom-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555D6A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.sort-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.result-count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-box {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
}

.skeleton-card {
  pointer-events: none;
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 5px 380px !important;
}

.results-list {
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.results-list::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
  width: 0 !important;
  height: 0 !important;
}

.result-card {
  background: var(--bg-card);
  border: 5px solid var(--border);
  border-radius: 10px;
  transition: all var(--t);
  width: 100%;
  overflow: hidden;
  margin-bottom: 6px;
  padding-bottom: 4px;
}



.card-header {
  padding: 4px 8px 6px;
}

.card-code-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.card-code {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-district {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-block;
  width: 82px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
  word-break: break-word;
  color: var(--text-primary);
}

.card-branch {
  font-size: .75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}



.card-links-row {
  margin-left: 6px;
  display: flex;
  gap: 14px;
}

.card-link {
  color: var(--accent);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  transition: opacity var(--t);
  white-space: nowrap;
}

.card-link:hover {
  opacity: 0.7;
}

.card-link i {
  font-size: 0.65rem;
}


.info-box--closing {
  animation: slideDownFade 0.3s ease forwards;
}

@keyframes slideDownFade {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.frow-district>#college-wrap,
.frow-district>#course-wrap,
.frow-district>#district-wrap,
.frow-district>#type-wrap,
.frow-district>#year-wrap,
.frow-district>.sort-group {
  flex: 1;
  max-width: 120px;
}

.frow-district .pill-btn,
#sort-btn {
  width: 100%;
  height: 30px;
  box-sizing: border-box;
}

.frow-district .district-wrap>.pill-btn,
.frow-district .sort-group .district-wrap>.pill-btn,
.college-search-row .district-wrap>.pill-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.frow-district .district-wrap>.pill-btn:hover,
.frow-district .sort-group .district-wrap>.pill-btn:hover,
.college-search-row .district-wrap>.pill-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.frow-district .district-wrap>.pill-btn.active,
.frow-district .sort-group .district-wrap>.pill-btn.active,
.college-search-row .district-wrap>.pill-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 20%, transparent);
}

.frow-district .pill-btn span,
#sort-btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#comm-btn {
  max-width: none !important;
}

.frow-district>#year-wrap .pill-btn {
  justify-content: center;
}

@media (max-width: 520px) {
  .frow-district {
    flex-wrap: nowrap;
    overflow: visible !important;
    gap: 5px;
    padding: 6px 12px;
  }

  .frow-district>#college-wrap,
  .frow-district>#course-wrap,
  .frow-district>#district-wrap,
  .frow-district>#type-wrap,
  .frow-district>#year-wrap,
  .frow-district>.sort-group {
    flex: 1 1 0 !important;
    width: auto !important;
    box-sizing: border-box;
    min-width: 0;
    display: flex;
  }

  .sort-group #sort-wrap {
    flex: 1 !important;
    width: 100% !important;
    display: flex;
    box-sizing: border-box;
  }

  .sort-group {
    margin-left: 0 !important;
  }



  .frow-district .pill-btn {
    width: 100%;
    justify-content: space-between;
    padding: 3px 4px;
    font-size: 0.72rem;
    gap: 3px;
  }

  .frow-district>#year-wrap .pill-btn {
    justify-content: center !important;
  }

  .frow-district .sort-group .pill-btn {
    justify-content: space-between !important;
  }

  #year-dropdown {
    right: auto !important;
    left: 0 !important;
    min-width: 120px;
  }

  .frow-district .pill-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
  }

  .frow-district>#year-wrap .pill-btn span {
    flex: none !important;
  }

  .sort-label {
    display: none !important;
  }
}

/* ── Special Access Gate ── */
.special-gate {
  text-align: center;
  padding: 40px 24px;
  max-width: 400px;
}

.special-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--accent);
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 15px color-mix(in srgb, var(--accent) 20%, transparent));
}



.special-gate .gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

.special-gate .gate-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
}

.special-gate .gate-continue {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

.special-gate .gate-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent-hover);
}

.special-gate .gate-continue:active {
  transform: translateY(0);
}

/* ── Guest Limits UI ── */
.guest-gate-card {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  margin: 20px 0;
  animation: fadeIn var(--t) ease;
}

.guest-gate-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.guest-gate-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.guest-gate-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.guest-gate-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.guest-gate-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.guest-limit-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  margin-top: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom right, var(--bg-card), var(--accent-soft));
}

.guest-limit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.guest-limit-icon {
  font-size: 2.5rem;
  color: var(--accent);
}

.guest-limit-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.guest-limit-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.guest-limit-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (min-width: 600px) {
  .guest-limit-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .guest-limit-btn {
    white-space: nowrap;
  }
}

.cutoff-calc-sheet {
  max-width: 380px !important;
  padding: 32px 24px !important;
}

.calc-inputs {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 16px 0;
}

.calc-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.calc-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 800;
}

.calc-divider::before,
.calc-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.calc-divider span {
  padding: 0 10px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.calc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-field input {
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.calc-field input:focus {
  border-color: var(--accent);
}

.calc-result {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
  border: 1px dashed var(--accent);
}

.calc-result strong {
  font-size: 1.5rem;
  margin-left: 8px;
}


.poss-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.poss-vhigh {
  background: #9333ea;
}

.poss-high {
  background: #16a34a;
}

.poss-medium {
  background: #ca8a04;
}

.poss-low {
  background: #ea580c;
}

.poss-none {
  background: #dc2626;
}

/* Modal specific small chips */
.gate-chip-sm {
  padding: 6px 14px !important;
  font-size: 0.8125rem !important;
  border-width: 1.5px !important;
  border-radius: 8px !important;
}

.chips-sm {
  gap: 8px !important;
}

/* ─── College Type Badges (matches college search) ─── */
.clg-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}

.clg-type-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
}

.clg-type-badge.type-govt {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

body.dark .clg-type-badge.type-govt {
  background: rgba(21, 128, 61, 0.15);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.clg-type-badge.type-aided {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

body.dark .clg-type-badge.type-aided {
  background: rgba(6, 95, 70, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.clg-type-badge.type-au {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #d8b4fe;
}

body.dark .clg-type-badge.type-au {
  background: rgba(126, 34, 206, 0.15);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.clg-type-badge.type-central {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

body.dark .clg-type-badge.type-central {
  background: rgba(146, 64, 14, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.clg-type-badge.type-pvt-auto {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #c4b5fd;
}

body.dark .clg-type-badge.type-pvt-auto {
  background: rgba(109, 40, 217, 0.15);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.clg-type-badge.type-pvt {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #f9a8d4;
}

body.dark .clg-type-badge.type-pvt {
  background: rgba(157, 23, 77, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

.clg-type-badge.type-other {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-color: var(--border);
}

/* Cutoff Page Custom Header & Year Styling */
.site-header .header-title {
  display: none !important;
}

.site-header .header-export-btn {
  display: none !important;
}

/* Boxy Toggle Group Styling */
.toggle-group {
  display: flex;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.toggle-btn {
  padding: 4px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--t);
}

.toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.toggle-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Input Width Overrides for Rank Mode */
.cutoff-input {
  width: 75px !important;
}

@media (max-width: 767px) {
  .cutoff-input {
    width: 65px !important;
    font-size: .85rem !important;
  }
}

/* Desktop Reordering Overrides */
@media (min-width: 1000px) {
  #college-wrap {
    order: 1 !important;
  }

  #district-wrap {
    order: 2 !important;
  }

  #course-wrap {
    order: 3 !important;
  }

  #type-wrap {
    order: 4 !important;
  }

  #year-wrap {
    order: 5 !important;
  }

  .sort-group {
    order: 6 !important;
  }

  .cutoff-group {
    order: 7 !important;
  }

  #clear-wrap {
    order: 8 !important;
  }
}

.filter-divider {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin: 6px 12px;
  opacity: 0.8;
}

.filter-divider::before,
.filter-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px dashed var(--border);
}

.filter-divider::before {
  margin-right: 12px;
}

.filter-divider::after {
  margin-left: 12px;
}

/* Prominent Row (Row 1) Sizing */
.prominent-row {
  padding: 8px 6px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.prominent-row .toggle-group {
  height: 32px;
}

.prominent-row .toggle-btn {
  font-size: 0.9rem !important;
  padding: 0 8px !important;
}

.prominent-row .cutoff-input {
  font-size: 1.1rem !important;
  width: 72px !important;
  height: 32px !important;
  padding: 4px 6px !important;
}

.prominent-row .cutoff-label {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.prominent-row .pill-btn {
  font-size: 0.9rem !important;
  height: 32px !important;
  min-width: 82px !important;
  padding: 0 12px !important;
}

/* Bigger Dropdowns (Rows 2 & 3) */
.select-row .pill-btn {
  height: 32px !important;
  font-size: 0.95rem !important;
  border-radius: 10px !important;
  padding: 4px 12px !important;
}

.select-label {
  flex: 0 0 64px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: lowercase;
  white-space: nowrap;
  display: inline-block;
}

.dropdowns-container {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.dropdowns-container .district-wrap {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
  display: flex;
}

.filter-bar {
  top: 0 !important;
}

/* Suggestion Dropdown and Tag styles */
.dropdown-suggestions {
  max-height: 250px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--bg-hover);
}

.selected-college-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--accent);
}

.selected-college-tag-remove {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 4px;
  opacity: 0.7;
  transition: opacity var(--t);
}

.selected-college-tag-remove:hover {
  opacity: 1;
}

/* Desktop Only Warning Overlay */
.desktop-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1e1e24 0%, #0c0c0e 100%);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.desktop-warning-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  background: #151518;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid #ea580c;
  /* Warning orange border */
  position: relative;
  overflow: hidden;
}

.desktop-warning-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c, #ef4444);
}

.desktop-warning-icon {
  font-size: 4rem;
  color: #ea580c;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.desktop-warning-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-warning-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 30px;
}

.desktop-warning-contrib {
  font-size: 1rem;
  background: rgba(234, 88, 12, 0.1);
  border: 1px dashed rgba(234, 88, 12, 0.4);
  color: #fdba74;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: left;
}

.desktop-warning-contrib p {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

.desktop-warning-author {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 16px;
  text-align: right;
  font-weight: 500;
}

.desktop-warning-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ea580c;
  color: #ffffff !important;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  border: none;
  cursor: pointer;
}

.desktop-warning-btn:hover {
  background: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
}

/* Custom Persistent Mobile Scrollbar - HIDDEN */
.custom-mobile-scrollbar {
  display: none !important;
  position: fixed;
  right: 4px;
  top: 72px;
  bottom: 8px;
  width: 5px;
  z-index: 9999;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.custom-mobile-scrollbar-thumb {
  display: none !important;
  position: absolute;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

@media (max-width: 1023px) {
  .custom-mobile-scrollbar {
    opacity: 1;
    /* always visible on mobile viewport */
  }

  /* Hide the native mobile scrollbar to prevent duplication */
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  *::-webkit-scrollbar {
    display: none !important;
  }

  html,
  body {
    scrollbar-width: none !important;
  }
}

/* ─────────────────────────────────────────
   Scroll Tutorial Hint
───────────────────────────────────────── */
@keyframes tutSlideUp {
  from {
    transform: translateY(100%) translateX(-50%);
    opacity: 0;
  }

  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}

@keyframes tutSlideDown {
  from {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(130%) translateX(-50%);
    opacity: 0;
  }
}

@keyframes scrollDotBounce {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateY(14px);
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

@keyframes arrowCascade {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  40% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}

.scroll-tutorial {
  position: fixed;
  top: var(--filter-bar-bottom, 160px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.scroll-tutorial.tut-visible {
  opacity: 1;
  pointer-events: none;
}

.scroll-tutorial.tut-hiding {
  opacity: 0;
  pointer-events: none;
}

.scroll-tutorial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90%;
  width: 340px;
  box-sizing: border-box;
}

.scroll-tutorial.tut-visible .scroll-tutorial-inner {
  transform: scale(1) translateY(0);
}

.scroll-tutorial.tut-hiding .scroll-tutorial-inner {
  transform: scale(0.85) translateY(20px);
}

.scroll-tutorial-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-hand {
  width: 50px;
  height: 72px;
  color: #c084fc;
  filter: drop-shadow(0 2px 8px rgba(192, 132, 252, 0.3));
}

.scroll-hand svg {
  width: 100%;
  height: 100%;
}

.scroll-dot {
  animation: scrollDotBounce 1.2s ease-in-out infinite;
}

.scroll-arrow-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.scroll-arrow {
  font-size: 1.6rem;
  line-height: 0.9;
  color: #c084fc;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(192, 132, 252, 0.4);
}

.scroll-arrow.sa1 {
  animation: arrowCascade 1.4s ease-in-out 0s infinite;
}

.scroll-arrow.sa2 {
  animation: arrowCascade 1.4s ease-in-out 0.2s infinite;
}

.scroll-arrow.sa3 {
  animation: arrowCascade 1.4s ease-in-out 0.4s infinite;
}

.scroll-tutorial-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Ensure filter pill buttons fit on all mobile screens */
@media (max-width: 1023px) {
  .dropdowns-container .pill-btn {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
  }
}

@media (max-width: 390px) {
  .dropdowns-container .pill-btn {
    font-size: 0.66rem !important;
    padding: 3px 4px !important;
  }
}

.select-row {
  position: relative;
  z-index: 50;
}

.college-search-row {
  position: relative;
  z-index: 10;
}

/* Hide all scrollbars globally on the page (including main results body and mobile viewport) */
html,
body,
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  display: none !important;
  background: transparent !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  display: none !important;
  background: transparent !important;
}

.bottom-sheet-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: var(--bg-card);
  border-top: 1.5px solid var(--border);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  touch-action: none;
  box-sizing: border-box;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-container.minimized {
  height: 38px;
}

.bottom-sheet-container.maximized {
  height: 300px;
}

.bs-tab-section {
  display: none !important;
}

.bs-tab-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  height: 100%;
  scrollbar-width: none;
  padding: 0 4px;
}

.bs-tab-scroll::-webkit-scrollbar {
  display: none;
}

.bs-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: none;
  background: var(--bg-hover);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t);
  height: 24px;
  box-sizing: border-box;
}

.bs-tab:hover {
  background: var(--border);
  color: var(--text-primary);
}

.bs-tab.active {
  background: var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
}

.bs-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: background var(--t), color var(--t);
  margin-left: 2px;
}

.bs-tab-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.bs-scroll-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 6px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color var(--t);
}

.bs-scroll-btn:hover {
  color: var(--accent);
}

.bs-tab-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1.5px solid var(--border);
  height: 20px;
}

.bs-action-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transition: background var(--t), color var(--t);
}

.bs-action-btn:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.bs-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--border);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  position: relative;
}

.bs-heading {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.bs-toggle-btn {
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background var(--t);
}

.bs-pdf-btn {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #5d2484;
  border: 1px solid #5d2484;
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t);
  height: 24px;
}

.bs-pdf-btn:hover {
  background: #4b1d6b;
  border-color: #4b1d6b;
}

.bs-toggle-btn:hover {
  background: var(--bg-hover);
}

.bs-toggle-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.bs-toggle-icon path {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* Minimize/Maximize animations on paths */
.bottom-sheet-container.minimized .corner-tl {
  transform: translate(-3px, -3px);
}

.bottom-sheet-container.minimized .corner-tr {
  transform: translate(3px, -3px);
}

.bottom-sheet-container.minimized .corner-bl {
  transform: translate(-3px, 3px);
}

.bottom-sheet-container.minimized .corner-br {
  transform: translate(3px, 3px);
}

.bottom-sheet-container.maximized .corner-tl {
  transform: translate(0, 0);
}

.bottom-sheet-container.maximized .corner-tr {
  transform: translate(0, 0);
}

.bottom-sheet-container.maximized .corner-bl {
  transform: translate(0, 0);
}

.bottom-sheet-container.maximized .corner-br {
  transform: translate(0, 0);
}

/* Hide the main scrollbar content when minimized to look clean */
.bottom-sheet-container.minimized .bs-content-section {
  display: none;
}

.bs-content-section {
  padding: 2px;
  overflow-y: auto;
  height: calc(100% - 38px);
  box-sizing: border-box;
  scrollbar-width: thin;
}

.bs-content-section::-webkit-scrollbar {
  display: block !important;
  width: 6px !important;
}

.bs-content-section::-webkit-scrollbar-track {
  background: transparent !important;
}

.bs-content-section::-webkit-scrollbar-thumb {
  background: var(--border-strong) !important;
  border-radius: 3px !important;
}

.card-add-choice-btn {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t);
  line-height: 1.2;
}

.card-add-choice-btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

.card-add-choice-btn.added {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.card-add-choice-btn.added:hover {
  background: color-mix(in srgb, var(--red) 85%, black);
  color: white;
  border-color: color-mix(in srgb, var(--red) 85%, black);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--red) 30%, transparent);
}

.card-add-choice-btn.skeleton-box {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite linear !important;
  border-color: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}

.card-add-choice-btn.insert-mode {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.card-add-choice-btn.insert-mode:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--orange) 30%, transparent);
}

/* Squeeze filter bar in Y-axis for mobile/tablet */
@media (max-width: 999px) {
  .filter-bar .frow {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: auto !important;
  }
  .filter-bar .prominent-row {
    padding-top: 6px !important;
    padding-bottom: 4px !important;
  }
  .filter-bar .college-search-row {
    padding-top: 2px !important;
    padding-bottom: 6px !important;
  }
}

/* Inline insert buttons between choice rows */
.choice-row {
  position: relative;
}

.row-insert-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.row-insert-indicator.bottom-indicator {
  bottom: -2px;
}

.row-insert-indicator.top-indicator {
  top: -2px;
}

.row-insert-indicator::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--accent);
  opacity: 0.25;
  z-index: -1;
}

.row-insert-btn {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: 1.5px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.row-insert-btn:hover {
  transform: scale(1.25);
  background: #4b1d6b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}