/* =====================================================
   AuctionGoogly — Global Stylesheet
   Palette: #282461 | #FF2F24 | #090635 | #FFFFFF | #CC1A11
   ===================================================== */

/* ── CSS Variables ── */
:root {
  --primary: #282461;
  /* brand navy */
  --primary-dark: #090635;
  /* deep navy */
  --red: #FF2F24;
  /* primary action / accent */
  --red-dark: #CC1A11;
  /* hover / darker red */
  --white: #FFFFFF;

  /* Semantic aliases */
  --primary-light: #FF2F24;
  --accent: #FF2F24;
  --accent-light: #CC1A11;
  --gold: #FF2F24;
  --success: #16a34a;
  --warning: #f59e0b;

  /* Surfaces derived from palette */
  --bg: #f5f4fb;
  --surface: #FFFFFF;
  --surface2: #eeedf8;
  --border: #d5d3eb;
  --text: #090635;
  --text-muted: rgba(9, 6, 53, 0.5);

  --shadow: 0 2px 12px rgba(9, 6, 53, .12);
  --shadow-lg: 0 8px 32px rgba(9, 6, 53, .20);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .2s ease;
  --navbar-h: 64px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  zoom: 80%;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--navbar-h);
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 16px rgba(9, 6, 53, .4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.navbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.navbar-brand .brand-dot {
  color: var(--red);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-links a {
  color: rgba(255, 255, 255, .75);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.navbar-links a:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.navbar-links a.active {
  background: var(--red);
  color: var(--white);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.btn-logout {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--red);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 12px 0;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, .8);
  padding: 10px 24px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--red);
  color: var(--white);
}

.mobile-menu.open {
  display: block;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 100px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 40px 0 30px;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--white);
}

.page-header p {
  opacity: .75;
  margin-top: 6px;
  color: var(--white);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.card-body {
  padding: 24px;
}

.card-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  background: var(--surface2);
}

/* Auction Card */
.auction-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.auction-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auction-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auction-card-img .default-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, .35);
}

.auction-card-body {
  padding: 18px;
  flex: 1;
}

.auction-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.auction-card-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.auction-card-meta span {
  margin-right: 12px;
}

.auction-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface2);
}

.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-danger {
  background: var(--red);
  color: var(--white);
}

.btn-danger:hover {
  background: var(--red-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-success {
  background: var(--primary);
  color: var(--white);
}

.btn-success:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-warning {
  background: var(--red-dark);
  color: var(--white);
}

.btn-warning:hover {
  background: #a01108;
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: .8rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-icon {
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--red);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--red-dark);
  color: var(--white);
  text-decoration: none;
}

/* ── Status Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-upcoming {
  background: #e8e7f5;
  color: var(--primary);
}

.badge-live {
  background: #ffe9e8;
  color: var(--red-dark);
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s infinite;
}

.badge-completed {
  background: var(--surface2);
  color: var(--text-muted);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.4)
  }
}

/* ── Forms ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control.error {
  border-color: var(--red);
}

.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  min-width: 260px;
  animation: slideIn .3s ease forwards;
  border-left: 4px solid var(--red);
}

.toast.success {
  border-left-color: var(--primary);
  background: var(--primary);
}

.toast.error {
  border-left-color: var(--red-dark);
  background: var(--red-dark);
}

.toast.warning {
  border-left-color: var(--red);
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1
  }

  to {
    transform: translateX(120%);
    opacity: 0
  }
}

.toast.hide {
  animation: slideOut .3s ease forwards;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 6, 53, .6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px);
  transition: transform var(--transition);
  border-top: 4px solid var(--red);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface2);
}

/* ── Wizard Steps ── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wizard-step {
  display: flex;
  align-items: center;
}

.wizard-step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .85rem;
  background: var(--surface2);
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
  border: 2px solid var(--border);
}

.wizard-step-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.wizard-step-pill.done {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.wizard-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
}

.wizard-step-connector.done {
  background: var(--red);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}

/* ── Bidding Interface ── */
.bid-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.player-spotlight {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 3px solid var(--red);
}

.player-spotlight .player-icon {
  font-size: 5rem;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.player-spotlight .player-icon img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-spotlight .player-name {
  font-size: 2rem;
  font-family: 'Rajdhani', sans-serif;
  color: var(--white);
}

.player-spotlight .player-type-badge {
  display: inline-block;
  margin: 8px auto;
  background: var(--red);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .85rem;
  color: var(--white);
}

.player-spotlight .player-base {
  font-size: .9rem;
  opacity: .7;
  margin-top: 8px;
}

.bid-amount {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
  color: var(--white);
  margin: 20px 0;
  text-shadow: 0 0 20px rgba(255, 47, 36, .5);
}

.bid-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.bid-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bid-btn-minus {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}

.bid-btn-minus:hover {
  background: var(--red-dark);
}

.bid-btn-plus {
  background: var(--red);
  color: var(--white);
}

.bid-btn-plus:hover {
  background: var(--red-dark);
}

.team-selector {
  margin-top: 20px;
}

.team-selector select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .3);
  font-size: .95rem;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.team-selector select option {
  background: var(--primary-dark);
  color: var(--white);
}

.sold-unsold-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

/* Teams panel */
.teams-panel .team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.teams-panel .team-row:last-child {
  border-bottom: none;
}

.team-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary-dark);
}

.team-budget {
  font-size: .85rem;
  color: var(--text-muted);
}

.team-budget.low {
  color: var(--red);
  font-weight: 700;
}

/* Player queue */
.player-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  cursor: default;
}

.queue-item.current {
  border-color: var(--primary);
  background: var(--surface2);
}

.queue-item.sold {
  opacity: .7;
  background: #e8e7f5;
  border-color: var(--primary);
}

.queue-item.unsold-item {
  opacity: .5;
  background: #ffe9e8;
  border-color: var(--red-dark);
}

.queue-badge {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.queue-badge-sold {
  background: var(--primary);
  color: var(--white);
}

.queue-badge-unsold {
  background: var(--red);
  color: var(--white);
}

/* ── History ── */
.history-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.filter-tab {
  padding: 7px 18px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

tr:hover td {
  background: var(--surface2);
}

tr:last-child td {
  border-bottom: none;
}

/* ── Gallery ── */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--border);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 6, 53, .65);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}

.gallery-del {
  background: var(--red);
  border: none;
  color: var(--white);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

.gallery-del:hover {
  background: var(--red-dark);
}

.drop-zone {
  border: 3px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--surface);
}

.drop-zone.drag-over {
  border-color: var(--red);
  background: #fff5f5;
}

.drop-zone i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: .4;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 6, 53, .95);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  border: 3px solid var(--red);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--red);
}

/* ── About Page ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-card i {
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.feature-card p {
  font-size: .88rem;
  color: var(--text-muted);
}

.hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero-banner h1 {
  font-size: 3rem;
  color: var(--white);
}

.hero-banner p {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ── Section Title ── */
.section-title {
  font-size: 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

/* ── Misc ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: .25;
  display: block;
  color: var(--primary);
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.progress-bar-track {
  background: var(--border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 8px;
  transition: width .4s;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: inline-block;
  vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .navbar-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .bid-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .hero-banner h1 {
    font-size: 2rem;
  }
}

@media (max-width: 700px) {
  .edit-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .edit-tab {
    padding: 10px 14px;
    font-size: .85rem;
    white-space: nowrap;
  }

  .entity-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .entity-row>div:first-child {
    min-width: 100%;
  }

  .entity-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: calc(var(--navbar-h) + 0px);
  }

  .gallery-grid {
    columns: 1;
  }

  .container {
    padding: 0 12px;
  }

  .bid-amount {
    font-size: 2.5rem;
  }

  .edit-tab {
    padding: 10px 10px;
    font-size: .8rem;
  }

  .edit-tab i {
    margin-right: 4px;
  }

  .add-section {
    padding: 14px;
  }
}

/* ── Print Styles ── */
@media print {

  .navbar,
  .btn,
  #toast-container {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: #fff;
  }
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(22px);
}