@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-dark: #141413;
  --bg-panel: #1f1e1d;
  --card-outer: #2c2a29;
  --card-inner: #181716;
  --border-subtle: #3a3836;
  --brand-green: #4ea832;
  --brand-green-bright: #68c747;
  --brand-green-dark: #316e1e;
  --coffee-gold: #f59e0b;
  --coffee-gold-dark: #b45309;
  --text-main: #ffffff;
  --text-dim: #b3b0ac;
  --warn-gold: #f0b429;
  --danger-red: #e55353;
  --bevel-light: #d4d2d0;
  --bevel-shadow: #888582;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-green-bright);
  text-decoration: none;
}

/* NAVBAR */
.bid-nav {
  background-color: #0e0e0d;
  border-bottom: 2px solid #262523;
  padding: 0 14px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.bid-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
}

.bid-brand span {
  color: var(--brand-green-bright);
}

.bid-brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.bid-desktop-menu {
  display: none;
  align-items: center;
  gap: 18px;
}

.bid-desktop-menu a {
  color: var(--text-dim);
  font-family: 'VT323', monospace;
  font-size: 21px;
}

.bid-desktop-menu a:hover,
.bid-desktop-menu a.active {
  color: var(--brand-green-bright);
}

.bid-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-user-pill {
  background: #1b2e16;
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green-bright);
  font-family: 'VT323', monospace;
  font-size: 19px;
  padding: 3px 10px;
  cursor: pointer;
}

/* CSS HAMBURGER ICON (NO EMOJI) */
.bid-menu-btn {
  background: #262423;
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bid-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
}

/* MOBILE DRAWER */
.bid-drawer {
  display: none;
  background: #191817;
  border-bottom: 2px solid var(--brand-green);
  padding: 12px 14px;
}

.bid-drawer.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bid-drawer a,
.bid-drawer button {
  background: #252322;
  color: #fff;
  padding: 10px 12px;
  font-family: 'VT323', monospace;
  font-size: 19px;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
}

.bid-drawer a.active,
.bid-drawer a:hover {
  border-left-color: var(--brand-green-bright);
  color: var(--brand-green-bright);
}

/* LAYOUT CONTAINERS */
.bid-container {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  padding: 20px 14px 60px;
  flex: 1;
}

.bid-auth-wrap {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.bid-split-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bid-breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.bid-breadcrumb strong {
  color: #fff;
}

.bid-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* DESKTOP RESPONSIVE BREAKPOINT (>= 768px) */
@media (min-width: 768px) {
  .bid-nav {
    padding: 0 36px;
    height: 70px;
  }

  .bid-brand {
    font-size: 18px;
  }

  .bid-brand-logo {
    height: 40px;
  }

  .bid-desktop-menu {
    display: flex;
  }

  .bid-menu-btn,
  .bid-drawer {
    display: none !important;
  }

  .bid-container {
    max-width: 1120px;
    padding: 36px 28px 80px;
  }

  .bid-title {
    font-size: 21px;
    margin-bottom: 26px;
  }

  .bid-split-layout {
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 32px;
    align-items: start;
  }

  .bid-sticky-left {
    position: sticky;
    top: 90px;
  }

  .bid-cape-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* GREEN TAB CARDS */
.bid-section {
  margin-bottom: 26px;
}

.bid-tab {
  display: inline-block;
  background-color: var(--brand-green-bright);
  color: #0d0d0d;
  font-family: 'VT323', monospace;
  font-size: 18px;
  font-weight: 700;
  padding: 1px 10px;
}

.bid-tab-gold {
  background-color: var(--coffee-gold);
  color: #0d0d0d;
}

.bid-card {
  background-color: var(--card-outer);
  border-top: 3px solid var(--brand-green-bright);
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.bid-well {
  background-color: var(--card-inner);
  border: 2px solid #22201f;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* BEVEL BUTTONS */
.btn-bevel-green {
  background-color: var(--brand-green);
  color: #fff;
  border: 2px solid #0e0e0d;
  box-shadow: inset 0 -3px 0 var(--brand-green-dark), inset 0 2px 0 #84df65;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-bevel-light {
  background-color: var(--bevel-light);
  color: #141413;
  border: 2px solid #0e0e0d;
  box-shadow: inset 0 -3px 0 var(--bevel-shadow), inset 0 2px 0 #ffffff;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-bevel-coffee {
  background-color: var(--coffee-gold);
  color: #141413;
  border: 2px solid #0e0e0d;
  box-shadow: inset 0 -3px 0 var(--coffee-gold-dark), inset 0 2px 0 #fde68a;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-bevel-danger {
  background-color: var(--danger-red);
  color: #fff;
  border: 2px solid #0e0e0d;
  box-shadow: inset 0 -3px 0 #9e2a2a, inset 0 2px 0 #ff8585;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* INPUTS */
.bid-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.bid-input {
  width: 100%;
  background: #121110;
  border: 2px solid #5c5956;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 20px;
  padding: 9px 12px;
  outline: none;
}

.bid-input:focus {
  border-color: var(--brand-green-bright);
}

/* GRIDS FOR MODELS & CAPES */
.bid-grid-2,
.bid-cape-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.select-tile {
  background: var(--card-inner);
  border: 2px solid #242221;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.select-tile.active {
  border-color: var(--brand-green-bright);
}

/* CSS CHECKMARK (NO EMOJI) */
.tile-check {
  height: 26px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.tile-check::after {
  content: "";
  width: 14px;
  height: 7px;
  border-left: 3px solid var(--brand-green-bright);
  border-bottom: 3px solid var(--brand-green-bright);
  transform: rotate(-45deg);
}

.select-tile.active .tile-check {
  visibility: visible;
}

.tile-footer {
  width: 100%;
  background: #252322;
  border-top: 2px solid #141312;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 19px;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #8c8986;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.select-tile.active .radio-dot {
  border-color: #fff;
}

.select-tile.active .radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* SILHOUETTES */
.model-figure {
  padding: 10px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fig-head { width: 34px; height: 34px; background: #8c8c8c; }
.fig-mid { display: flex; }
.fig-torso { width: 34px; height: 50px; background: #787878; }
.fig-arm-c { width: 17px; height: 50px; background: #848484; }
.fig-arm-s { width: 12px; height: 50px; background: #848484; }
.fig-legs { display: flex; }
.fig-leg { width: 17px; height: 48px; background: #808080; border-right: 1px solid #666; }

/* UPLOAD ICON SVG */
.upload-svg-icon {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.2;
  fill: none;
}

/* CAPE PREVIEW */
.cape-box-area {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cape-none-box {
  width: 52px;
  height: 80px;
  border: 2px dashed #575452;
}
.cape-img-thumb {
  width: 52px;
  height: 80px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid #000;
}

/* MODALS */
.bid-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}
.bid-modal-backdrop.open {
  display: flex;
}
.bid-modal {
  background: #201f1e;
  border: 2px solid #3d3b39;
  width: 100%;
  max-width: 430px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.9);
}
.bid-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: #2b2928;
  border: 2px solid var(--brand-green-bright);
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  cursor: pointer;
}

/* QR CODE FRAME */
.qr-frame {
  background: #ffffff;
  padding: 12px;
  border: 4px solid var(--coffee-gold);
  width: 210px;
  height: 210px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* FOOTER */
.bid-footer {
  background: #0c0c0b;
  border-top: 1px solid #262423;
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.bid-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
