@font-face {
  font-family: "Bahnschrift";
  src: url("../css/fonts/Bahnschrift-Regular.woff2") format("woff2"),
    url("../css/fonts/Bahnschrift-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "FiraGO";
  src: url("../css/fonts/FiraGO-Regular.woff2") format("woff2"),
    url("../css/fonts/FiraGO-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: normal;
}

/* --- AUCTION ICONS --- */
@font-face {
  font-family: "auction";
  src: url("../css/fonts/auction.eot");
  src: url("../css/fonts/auction.eot#iefix") format("embedded-opentype"),
    url("../css/fonts/auction.woff2") format("woff2"), url("../css/fonts/auction.woff") format("woff"),
    url("../css/fonts/auction.ttf") format("truetype"), url("../css/fonts/auction.svg#auction") format("svg");
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "auction";
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: 0.2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
}

.icon-home:before {
  content: "\e800";
}

.icon-search:before {
  content: "\e802";
}

.icon-list-bullet:before {
  content: "\f0ca";
}

/* --- PAGE ANIMATIONS --- */
@keyframes transitionIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popUp {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- GENERAL RESET --- */
* {
  outline: none;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "FiraGo", "Open Sans", sans-serif;
  color: #444;
  background-color: #25005a;
  animation: transitionIn 0.5s ease-in-out;
}

a {
  text-decoration: none;
}

/* --- UTILITIES --- */
.text-center {
  text-align: center;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  height: auto;
}

/* Colors */
.btn-add,
.btn-save,
.btn-green {
  background: #28a745;
}

.btn-del,
.btn-unsold,
.btn-red {
  background: #dc3545;
}

.btn-bulk,
.btn-blue,
.btn-export {
  background: #007bff;
}

.btn-warning {
  background: #ffc107;
  color: #000;
}

.btn-back {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Premium Gold Button */
.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffc107 50%, #e0a800 100%);
  color: #25005a !important;
  border: 1px solid #c69500;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
  color: #fff !important;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold:hover::after {
  left: 100%;
}

/* --- ADMIN & MANAGE STYLES --- */
body.admin-body {
  background: #f0f2f5 !important;
  color: #333 !important;
}

.navbar {
  background: #1a0040;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffc107;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 20px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: 0.2s;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.card h3 {
  margin-top: 0;
  color: #25005a;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

/* Dashboard Grid - Fixed Visibility */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.dash-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  transition: 0.3s;
  text-decoration: none;
}

.dash-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 0, 90, 0.15);
  border-color: #25005a;
}

.dash-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #25005a;
}

.dash-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  color: #25005a;
}

.dash-desc {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Forms */
.form-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-grp {
  flex: 1;
  min-width: 150px;
}

.form-grp label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-grp input,
.form-grp select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fafafa;
  transition: 0.2s;
}

.form-grp input:focus,
.form-grp select:focus {
  border-color: #25005a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 0, 90, 0.1);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  background: #e9ecef;
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 25px;
  border: 1px solid #ddd;
}

.tab {
  padding: 10px 30px;
  text-decoration: none;
  color: #666;
  border-radius: 40px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  font-size: 0.9rem;
}

.tab:hover {
  color: #25005a;
  background: rgba(255, 255, 255, 0.5);
}

.tab.active {
  background: #25005a;
  color: white;
  box-shadow: 0 4px 10px rgba(37, 0, 90, 0.3);
  transform: scale(1.05);
}

/* Admin Table */
.table-wrap {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  background: white;
}

th {
  background: #f8f9fa;
  color: #555;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 2px solid #ddd;
  letter-spacing: 0.5px;
}

td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  color: #444;
  font-size: 0.95rem;
}

tr:hover {
  background: #f8f9fa;
}

tr:last-child td {
  border-bottom: none;
}

.thumb-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  color: white;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-below {
  background: #007bff;
}

.badge-above {
  background: #6610f2;
}

.badge-mentor {
  background: linear-gradient(135deg, #6610f2, #9d50bb);
  margin-left: 8px;
  box-shadow: 0 2px 5px rgba(102, 16, 242, 0.3);
}

.badge-r1 {
  background: #17a2b8;
}

.badge-r2 {
  background: #ffc107;
  color: #000;
}

.badge-sold {
  background: #28a745;
}

.inline-input {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px;
  border-radius: 4px;
  font-family: inherit;
  width: 80px;
  text-align: center;
  font-weight: 500;
  transition: 0.2s;
}

.inline-input:focus {
  border-color: #007bff;
  background: white;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.inline-input:hover {
  background: #f0f0f0;
}

/* --- REDESIGNED POPUP MODAL (2 COLUMNS) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 20px 30px;
  background: #25005a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #ffc107;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 32px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: #fff;
  transform: scale(1.2);
}

/* GRID LAYOUT FOR MODAL BODY */
.modal-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 350px 1fr;
  /* Left: 1 part, Right: 1.5 parts */
  gap: 40px;
  align-items: start;
  overflow-y: auto;
}

/* Modal Drag Drop Zone (Left Col) */
.modal-img-area {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border: 2px dashed #ddd;
  text-align: center;
  transition: 0.2s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.modal-img-area:hover,
.modal-img-area.dragover {
  border-color: #25005a;
  background: #f0f0ff;
}

.modal-preview-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  pointer-events: none;
  /* Let clicks pass to container */
}

/* Modal Inputs (Right Col) */
.modal-form-grp {
  margin-bottom: 20px;
}

.modal-form-grp label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #444;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-form-grp input,
.modal-form-grp select {
  width: 100%;
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  background: #fdfdfd;
  transition: 0.2s;
}

.modal-form-grp input:focus,
.modal-form-grp select:focus {
  border-color: #25005a;
  background: #fff;
}

/* Cropper */
.img-container {
  height: 350px;
  width: 100%;
  background: #333;
  margin-top: 20px;
  display: none;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 850px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-img-area {
    min-height: auto;
  }
}

/* --- SEARCH PAGE STYLES --- */
body.search-page {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #25005a;
}

.sp-header {
  height: 15vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.sp-logo-box {
  height: 70%;
  display: flex;
  align-items: center;
}

.sp-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.sp-main {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.sp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 1400px;
  height: 90%;
  display: flex;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

.sp-left {
  flex: 0 0 35%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 0 0 20px;
  padding: 2vh;
}

.sp-img-wrapper {
  height: 80%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background: #fff;
  overflow: hidden;
}

.sp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-detail-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.sp-detail-row:last-child {
  border-bottom: none;
  border-radius: 0 0 20px 0;
  background: rgba(0, 0, 0, 0.15);
}

.sp-label {
  font-size: 1.8vh;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5vh;
}

.sp-val-name {
  font-size: 6vh;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sp-val-text {
  font-size: 3.5vh;
  font-weight: 500;
  color: #eee;
}

.sp-val-team {
  color: #ffc107;
  font-size: 4vh;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
}

.sp-val-price {
  color: #fff;
  font-size: 3vh;
  font-weight: bold;
  margin-top: 0.5vh;
}

.sp-val-unsold {
  color: #dc3545;
  font-size: 4vh;
  font-weight: bold;
  text-transform: uppercase;
}

.sp-search-panel {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 15px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
}

.sp-search-inp {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  width: 120px;
  padding-left: 10px;
  font-weight: bold;
  outline: none;
}

.sp-home-link {
  color: #ffc107;
  font-size: 1.4rem;
  margin-right: 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 12px;
}

.search-btn {
  background: transparent;
  border: none;
  color: #ffc107;
  font-size: 1.2rem;
  cursor: pointer;
}

.sp-bid-panel {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background: rgba(37, 0, 90, 0.95);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 15px;
  width: auto;
  max-width: 70vw;
}

.sp-bid-col-1 {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 15px;
}

.sp-bid-input {
  width: 130px;
  background: #fff;
  border: 2px solid #ffc107;
  border-radius: 6px;
  padding: 10px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: bold;
  color: #000;
  outline: none;
}

/* Ensure spinners are always visible and easy to click */
.sp-bid-input::-webkit-inner-spin-button,
.sp-bid-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 30px;
  /* Make them taller */
  cursor: pointer;
}

.sp-team-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.sp-team-scroll::-webkit-scrollbar {
  display: none;
}

.sp-team-btn {
  flex: 0 0 auto;
  width: 55px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s;
  text-shadow: 0px 2px 2px black;
}

.sp-team-btn:hover {
  transform: scale(1.05);
  border-color: #fff;
  z-index: 2;
}

/* --- BALANCE PAGE --- */
.bp-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-header h1 {
  margin: 0;
  color: #ffc107;
  text-transform: uppercase;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.bp-purse {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 5px 20px;
  border-radius: 50px;
}

.bp-nav-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bp-table-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.bp-total-row td {
  background: #25005a;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 20px;
  border-top: 4px solid #ffc107;
}

.bp-val-green {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.bp-val-blue {
  color: #007bff;
  font-weight: bold;
}

.bp-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-team-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.bp-team-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #25005a;
}

/* --- S-CIRCLE BUTTON --- */
#s-cover {
  width: 1px;
  padding-left: 35px;
}

#s-cover button {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

#s-circle {
  position: relative;
  top: -8px;
  left: -8px;
  width: 50px;
  height: 50px;
  border-width: 8px;
  border-style: solid;
  border-color: #ffc107;
  border-radius: 100%;
  transition: 0.5s ease all;
}

#s-cover button span {
  position: absolute;
  top: 68px;
  left: 18px;
  display: block;
  width: 25px;
  height: 9px;
  background-color: transparent;
  border-radius: 10px;
  transform: rotateZ(52deg);
  transition: 0.5s ease all;
}

#s-cover button span:before,
#s-cover button span:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 8px;
  background-color: #fff;
  border-radius: 10px;
  transform: rotateZ(0);
  transition: 0.5s ease all;
}

#s-cover:hover #s-circle {
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-width: 0;
  background-color: #ffc107;
}

#s-cover:hover button span {
  top: 12px;
  left: 8px;
  width: 30px;
  background-color: #25005a;
  transform: rotateZ(0);
}

#s-cover:hover button span:before {
  bottom: 8px;
  transform: rotateZ(45deg);
  width: 18px;
  background-color: #25005a;
}

#s-cover:hover button span:after {
  bottom: -8px;
  transform: rotateZ(-45deg);
  width: 18px;
  background-color: #25005a;
}

/* --- SPINNER STYLES (Added) --- */
.spinner-btn-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.btn-spin {
  background: linear-gradient(90deg, #ff00cc, #333399);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 1.1rem;
  padding: 10px 30px;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.6);
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.5);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 0, 204, 1);
  }

  100% {
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.5);
  }
}

#spinModal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 5, 20, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.spin-window {
  width: 90%;
  /* Widened slightly */
  max-width: 900px;
  height: 250px;
  /* Taller for bigger text */
  background: #000;
  border: 5px solid #ffc107;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(255, 193, 7, 0.6), inset 0 0 40px #000;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  /* Increased padding */
  background-image: linear-gradient(#111 1px, transparent 1px), linear-gradient(90deg, #111 1px, transparent 1px);
  background-size: 20px 20px;
}

.spin-text {
  font-size: 7rem;
  /* Reduced slightly from 8rem to prevent cutoff */
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-family: "Bahnschrift", sans-serif;
  /* Removed glow for projector clarity */
  text-shadow: none;
  filter: none;
  white-space: nowrap;
  transition: font-size 0.1s;
}

.winner-anim {
  animation: winnerFlash 0.3s infinite alternate;
  color: #ffc107;
  /* Reduced glow for winner */
  text-shadow: 0 0 5px #ffc107;
  transform: scale(1.1);
}

@keyframes winnerFlash {
  from {
    opacity: 1;
    filter: brightness(1.2);
  }

  to {
    opacity: 0.8;
    filter: brightness(1);
  }
}

.big-spin-btn {
  padding: 15px 60px;
  /* Reduced size */
  font-size: 1.8rem;
  /* Reduced font size */
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  border: 3px solid #fff;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.6);
  font-weight: 800;
  letter-spacing: 2px;
  transition: 0.2s;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.big-spin-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
}

.big-spin-btn:disabled {
  background: #444;
  color: #888;
  border-color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

.close-spin {
  position: absolute;
  top: 40px;
  right: 40px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 4rem;
  cursor: pointer;
  line-height: 0.8;
  transition: 0.3s;
}

.close-spin:hover {
  color: #fff;
  transform: rotate(90deg);
  text-shadow: 0 0 20px #fff;
}

.spin-info {
  color: #00e5ff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10001;
}

/* --- FOOTER CREDIT --- */
.site-footer {
  text-align: center;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  background-color: #1a0040;
  width: 100%;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

/* --- SEARCH STATS ROW --- */
/* --- SEARCH STATS ROW --- */
.sp-stats-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 0;
  /* Remove gap for table border effect */
  padding: 0;
  /* Remove padding to let children fill space */
  align-items: stretch;
  /* Stretch children to full height */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Match other rows */
}

.sp-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
}

.sp-stat-mid {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-label-sm {
  font-size: 1.3vh;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 0.5vh;
  letter-spacing: 1px;
}

.sp-val-sm {
  font-size: 2.5vh;
  font-weight: 600;
  color: #fff;
}


/* --- MODAL 2-COLUMN LAYOUT --- */
.modal-body {
  display: flex;
  gap: 30px;
}

.modal-col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-col-right {
  flex: 2;
  overflow-y: auto;
  max-height: 70vh;
  /* Scrollable form if too long */
  padding-right: 10px;
}

/* --- MODERN FORM ELEMENTS --- */
.modal-form-grp {
  margin-bottom: 20px;
}

.modal-form-grp label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.modal-form-grp input[type="text"],
.modal-form-grp input[type="number"],
.modal-form-grp input[type="date"],
.modal-form-grp select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.modal-form-grp input:focus,
.modal-form-grp select:focus {
  border-color: #6610f2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 16, 242, 0.1);
  outline: none;
}

/* --- TEAM INLINE EDITING --- */
.inline-input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.read-only {
  display: inline-block;
  padding: 5px;
}

/* --- MODAL 3-COLUMN REFACTOR --- */
.modal-3-col {
  display: flex;
  flex-wrap: wrap;
  /* Responsive wrap */
  gap: 30px;
  align-items: flex-start;
}

.modal-col-img {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-col-personal,
.modal-col-stats {
  flex: 1;
  min-width: 280px;
}

.modal-sec-title {
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  font-size: 1.1rem;
  color: #25005a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Large Image Area */
.large-img-area {
  width: 100%;
  aspect-ratio: 1;
  border: 4px dashed #ddd;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  background: #fdfdfd;
}

.large-img-area:hover {
  background: #f0f4ff;
  border-color: #6610f2;
}

.large-preview {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  object-fit: cover;
}

/* Split Form Row Helper */
.form-row-split {
  display: flex;
  gap: 15px;
}

.form-row-split>div {
  flex: 1;
}

/* Custom Checkbox */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  font-weight: 600;
  color: #6610f2;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 4px;
}

.checkbox-container:hover input~.checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked~.checkmark {
  background-color: #6610f2;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Remove Footer from Modal View override */
/* (Handled by user request - ensure modal covers it visually via z-index if needed, which modal generally handles) */



/* --- PERSONAL ROW (Age/Location) - Box Layout + Left Align --- */
.sp-personal-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 0;
  padding: 0;
  /* Reset padding, children handle it */
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Re-use .sp-stat-item for structure (borders/flex) */
/* Inner content wrapper for left alignment */
.sp-personal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Left Align */
  width: 100%;
  padding-left: 20px;
  /* Indent slightly */
}

.sp-label-personal {
  font-size: 1.3vh;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sp-val-personal {
  font-size: 4vh;
  /* Requested 6vh */
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

/* Sold Row (Team + Price) - Table-like single row */
.sp-sold-row {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

.sp-sold-content {
  flex: 1;
  padding: 10px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-sold-content:last-child {
  border-right: none;
}

.sp-label-sold {
  font-size: 1.3vh;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  /* Match sp-label-personal */
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.sp-val-sold-team {
  font-size: 4vh;
  /* Large but legible */
  font-weight: 800;
  color: #fff;
}

.sp-val-sold-price {
  font-size: 4vh;
  font-weight: 800;
  color: #ffc107;
  /* Yellow for Price */
}

.sp-val-unsold-huge {
  font-size: 4vh;
  font-weight: 800;
  color: #dc3545;
  /* Red Unsold */
  text-align: center;
  width: 100%;
  margin-top: 0;
}

/* --- CUSTOM RADIO BUTTONS (Modal) --- */
/* --- CUSTOM RADIO BUTTONS (Modal) --- */
.custom-radio-label,
.custom-chk-label {
  display: inline-flex;
  /* Fix: Inline behavior */
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  /* Thinner, cleaner border */
  padding: 6px 12px;
  /* Compact padding */
  border-radius: 6px;
  transition: all 0.15s ease-in-out;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  line-height: normal;
  height: auto;
  margin-right: 5px;
  /* Spacing between inline items */
}

.custom-radio-label:hover,
.custom-chk-label:hover {
  background: #f8f9fa;
  border-color: #bbb;
}

/* Vertical Separator via Span */
.custom-radio-label span,
.custom-chk-label span {
  border-left: 1px solid #ddd;
  padding-left: 10px;
  margin-left: 8px;
  display: inline-block;
  /* Simpler than flex for text */
  vertical-align: middle;
  line-height: 1.2;
}

/* Remove Focus/Outline completely */
.custom-radio-label input,
.custom-chk-label input {
  margin: 0;
  padding: 0;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  position: relative;
  top: 0;
  outline: none !important;
  box-shadow: none !important;
  accent-color: #25005a;
  /* Use brand color for native check */
}

/* Active state - Subtle background, Darker Text */
.custom-radio-label:has(input:checked),
.custom-chk-label:has(input:checked) {
  border-color: #bbb;
  background: #eef2ff;
  color: #25005a;
}

.role-selection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px !important;
  align-items: center;
}

/* --- ADMIN TABLE FIXED LAYOUT (Jitter Fix) --- */
.admin-table-fixed {
  table-layout: fixed;
  width: 100%;
}

.admin-table-fixed th,
.admin-table-fixed td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Force widths for specific columns will be handled inlin in PHP or via nth-child if needed,
   but specific widths on TH are usually enough with table-layout: fixed. */

/* --- BALANCE PAGE CARD LAYOUT --- */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.balance-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.balance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.bc-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bc-team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.bc-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  /* Push footer down if we add one */
}

.bc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #666;
}

.bc-stat-val {
  font-weight: 700;
  font-size: 1.1rem;
}

.bc-val-green {
  color: #016618;
}

.bc-val-blue {
  color: #007bff;
}

.bc-val-sold {
  color: #555;
}

/* .bc-total-summary moved to bottom for overrides */
.bc-ts-item {
  text-align: center;
}

.bc-ts-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.bc-ts-val {
  font-size: 1.8rem;
  font-weight: 700;
}

/* =========================================
   TEAM VIEW PAGE STYLES
   ========================================= */

/* Header Card (Team Stats) */
.tv-header-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* border-top handled inline for dynamic color, or could be separate */
}

.tv-team-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 10px;
}

.tv-stats-grid {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tv-stat-item {
  text-align: center;
}

.tv-stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.tv-stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: #25005a;
}

.text-green {
  color: #28a745 !important;
}

.text-red {
  color: #dc3545 !important;
}

.text-blue {
  color: #007bff !important;
}

/* Player Card Specifics */
.tv-player-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  /* Horizontal Layout */
  min-height: 200px;
  /* Use min-height to allow expansion */
  height: auto;
}

.tv-player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Left Side: Big Image */
.tv-card-left {
  width: 140px;
  flex-shrink: 0;
  background: #f0f0f0;
  position: relative;
}

.tv-card-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Side: Content */
.tv-card-right {
  flex-grow: 1;
  padding: 20px;
  /* Increased padding slightly for better spacing */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tv-name-header {
  font-size: 1.2rem;
  font-weight: 800;
  color: #25005a;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.2;
}

.tv-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.tv-mini-row {
  display: flex;
  font-size: 0.9rem;
  /* Slightly larger text */
  color: #555;
  align-items: center;
  gap: 8px;
}

.tv-price-footer {
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #28a745;
  text-align: right;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .tv-player-card {
    height: auto;
    flex-direction: column;
  }

  .tv-card-left {
    width: 100%;
    height: 200px;
  }
}

/* =========================================
   TAB NAVIGATION STYLES
   ========================================= */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.tab-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 25px;
  cursor: pointer;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
  background: #ffc107;
  color: #25005a;
  border-color: #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.tab-content {
  display: none;
  animation: transitionIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

/* --- BALANCE PAGE SPECIFIC --- */
/* Restore purple bg but add centering */
/* Restore purple bg and ensure scrolling works */
body.balance-page {
  min-height: 100vh;
  display: block;
  /* Removed flex centering to prevent clipping */
  height: auto !important;
  /* Allow content to expand */
  overflow-y: auto !important;
  /* Force scrollbar */
  padding-top: 40px;
  /* Space from top */
  padding-bottom: 40px;
}

/* Header Styling */
.bp-header {
  margin: 40px 0 30px 0;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle light separator */
}

.bp-header h1 {
  font-size: 2.5rem;
  color: #fff;
  /* White text on purple bg */
  margin: 0;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Adjustments for container: Remove bg/shadow if any */
.bp-table-container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 10px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  /* Ensure full width in flex container */
}

.bc-total-summary {
  background: #ffc107;
  /* Yellow Accent */
  color: #25005a;
  /* Dark Purple text */
  padding: 20px;
  border-radius: 12px;
  margin-top: 10px;
  /* Reduced margin as requested */
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 5px 20px rgba(255, 193, 5, 0.4);
  /* Yellow glow shadow */
  border: none;
}

.bc-total-summary .bc-ts-label {
  opacity: 0.8;
  color: #25005a;
  font-weight: 600;
}

/* Ensure the values (which might have .text-yellow) are dark for visibility */
.bc-total-summary .text-yellow {
  color: #25005a !important;
  text-shadow: none !important;
}

.text-yellow {
  color: #ffc107 !important;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
  /* Glow */
}

/* --- MANAGE PLAYERS UTILITIES --- */
.card-header-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.form-grp-search {
  flex: 1;
  max-width: 400px;
}

.card-action-row {
  display: flex !important;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
  padding: 15px;
  margin-bottom: 20px;
}

.import-box-card {
  display: none;
  margin-bottom: 15px;
  border: 1px solid #28a745;
  background: #f0fff4;
}

.import-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bulk-action-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #eef2ff;
  padding: 10px 20px;
}

.badge-cancelled {
  background-color: #6c757d;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {

  /* 1. Fix Page Scrolling (Undo Center Alignment) */
  body.balance-page {
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 60px;
    /* Space for bottom content */
    overflow-y: auto !important;
  }

  /* 2. Layout Adjustments for Containers */
  .bp-table-container,
  .container,
  .tv-header-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: none;
    /* Simplify on mobile */
    overflow: visible !important;
  }

  /* 3. Grid to Stack (Vertical Scrollable List) */
  .balance-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .balance-card {
    width: 100%;
    max-width: 100%;
    /* Full width cards */
    margin-bottom: 15px;
  }

  /* 4. Team View Adjustments */
  .tv-stats-grid {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .tv-player-card {
    flex-direction: column;
    height: auto;
  }

  .tv-card-left {
    width: 100%;
    height: 250px;
    /* Big image on mobile */
  }

  .tv-card-right {
    padding: 15px;
  }

  /* 5. Navigation & Header Tweaks */
  .bp-header h1,
  .tv-team-title {
    font-size: 1.8rem;
    /* Smaller titles */
  }

  .bp-nav-switch {
    position: static;
    /* Unfix from top-right */
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    text-align: center;
  }

  .btn-back {
    position: static !important;
    /* Unfix back button */
    margin: 10px;
    display: inline-block;
  }
}

/* Floating Mentor Badge */
/* Floating Mentor Badge (Ribbon Style) */
/* Inline Mentor Badge (Price Row) */
.mentor-inline-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* =========================================
   GLOBAL FORM CONTROLS
   ========================================= */
.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box; 
    height: 42px; /* Fixed height for consistency */
}

.form-control:focus {
    border-color: #25005a;
    box-shadow: 0 0 0 3px rgba(37, 0, 90, 0.1);
    outline: none;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2325005a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    padding-right: 40px;
}