/* [81-builders] Second contremaître et file de chantier premium */
/* ==========================================================================
   SECOND CONTREMAÎTRE & FILE DE CHANTIER PREMIUM
   ========================================================================== */
.queue-card-second-builder {
  border-color: rgba(207, 138, 48, 0.45) !important;
  box-shadow: 0 0 10px rgba(182, 140, 85, 0.25) !important;
}

.tag-second-builder {
  background: linear-gradient(135deg, #674c28, var(--gold-classic)) !important;
  color: #150e05 !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px;
}

.bar-second-builder {
  background: linear-gradient(90deg, var(--gold-classic), var(--gold-bright)) !important;
  box-shadow: 0 0 8px rgba(207, 138, 48, 0.5);
}

.second-builder-slot-promo {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* Promo slot 2e contremaître — format queue slot standard compact 18px */
#queue-slot-builder-promo {
  display: flex;
  align-items: center;
  height: var(--q-h);
  width: auto;
  justify-content: flex-end;
  box-sizing: border-box;
}

#queue-slot-builder-promo .builder-promo-bar {
  display: flex;
  align-items: center;
  height: var(--q-h);
  box-sizing: border-box;
  width: 0;
  max-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #26211a 0%, #17130e 100%);
  border: 1px dashed rgba(182, 140, 85, 0.65);
  border-right: none;
  border-radius: 2px 0 0 2px;
  position: relative;
  transition: width 0.3s ease, max-width 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  opacity: 0;
  margin-right: -1px;
  cursor: pointer;
  padding: 0;
}

#queue-slot-builder-promo:hover .builder-promo-bar {
  width: 196px;
  max-width: 196px;
  opacity: 1;
  padding: 0 4px;
}

#queue-slot-builder-promo .builder-locked-icon {
  border-color: var(--gold-classic);
  border-style: dashed;
  box-shadow: inset 0 1px 0 rgba(207, 138, 48, 0.3), 0 1px 3px rgba(0, 0, 0, 0.6);
}

#queue-slot-builder-promo:hover .builder-locked-icon {
  border-radius: 0 2px 2px 0;
  border-left: none;
  box-shadow: inset 0 1px 0 rgba(207, 138, 48, 0.4), 0 0 5px rgba(207, 138, 48, 0.5);
}

.builder-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  box-sizing: border-box;
  padding: 1px 6px;
  background: linear-gradient(180deg, #211d17, #12100d);
  border: 1px dashed rgba(182, 140, 85, 0.55);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.builder-locked-badge:hover {
  background: linear-gradient(180deg, #2e281f, #1c1813);
  border-color: var(--gold-bright);
  box-shadow: 0 0 6px rgba(207, 138, 48, 0.35);
}

.builder-active-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  box-sizing: border-box;
  padding: 1px 6px;
  background: linear-gradient(180deg, #182516, #0e170d);
  border: 1px solid rgba(88, 163, 135, 0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.builder-active-badge:hover {
  border-color: #8abeab;
  box-shadow: 0 0 6px rgba(88, 163, 135, 0.3);
}

.builder-icon {
  font-size: 11px;
  line-height: 1;
}

.builder-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.builder-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.builder-active-badge .builder-title {
  color: #8abeab;
}

.builder-sub {
  font-size: 8px;
  color: #c3baaf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.builder-lock-btn {
  background: linear-gradient(180deg, var(--gold-classic), #815e31);
  color: #0f0b05;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 7px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.builder-ready-tag {
  background: #38735d;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

/* Modal Second Contremaître */
.builder-modal-box {
  width: 680px;
  max-width: 95vw;
}

.builder-modal-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: radial-gradient(ellipse at 15% 50%, rgba(182, 140, 85, 0.15) 0%, transparent 70%),
              linear-gradient(180deg, #211d17, #14110e);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  margin-bottom: 16px;
}

.builder-hero-art {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.builder-hero-text h3 {
  font-family: 'Limelight', serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.builder-hero-text p {
  font-size: 12px;
  color: #d2cbc3;
  line-height: 1.45;
}

.builder-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.builder-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(182, 140, 85, 0.2);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 11px;
  color: #cbc4ba;
  line-height: 1.35;
}

.builder-feature-item .feat-icon {
  font-size: 16px;
  line-height: 1;
}

.builder-status-banner {
  padding: 8px 14px;
  background: rgba(56, 115, 93, 0.18);
  border: 1px solid #58a387;
  border-radius: 4px;
  color: #abd0c2;
  font-size: 12px;
  margin-bottom: 16px;
  display: none;
  text-align: center;
}

.builder-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.builder-plan-card {
  background: linear-gradient(180deg, #1d1914, #12100d);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.builder-plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.builder-plan-card.plan-card-featured {
  background: linear-gradient(180deg, #272119, #16130e);
  border: 1.5px solid var(--gold-classic);
  box-shadow: 0 0 16px rgba(182, 140, 85, 0.25);
}

.plan-header {
  margin-bottom: 10px;
  position: relative;
}

.plan-tag {
  display: inline-block;
  font-family: 'Limelight', serif;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  background: #352f27;
  color: #dbd1c5;
  border-radius: 2px;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.plan-tag-gold {
  background: linear-gradient(135deg, var(--gold-classic), #815e31);
  color: #0f0b05;
  font-weight: 900;
}

.plan-header h4 {
  font-family: 'Limelight', serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.plan-price {
  font-family: 'Limelight', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-bright);
  margin-top: 4px;
}

.gem-symbol {
  font-size: 20px;
}

.plan-desc {
  font-size: 11px;
  color: #bfaea0;
  line-height: 1.4;
  margin-bottom: 12px;
}

.plan-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  flex: 1;
}

.plan-bullets li {
  font-size: 11px;
  color: #d8d1c7;
  margin-bottom: 5px;
  line-height: 1.3;
}

.btn-builder-hire {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(180deg, #383026, #1f1a13);
  border: 1.5px solid #9c7b4f;
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: 'Limelight', serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.btn-builder-hire:hover {
  background: linear-gradient(180deg, #4f4435, #2d261c);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 0 12px rgba(207, 138, 48, 0.4);
}

.btn-builder-hire-gold {
  background: linear-gradient(180deg, var(--gold-bright), #906022);
  border-color: #fff;
  color: #150e05;
  box-shadow: 0 2px 10px rgba(207, 138, 48, 0.4);
}

.btn-builder-hire-gold:hover {
  background: linear-gradient(180deg, var(--gold-highlight), var(--gold-classic));
  box-shadow: 0 0 16px rgba(207, 138, 48, 0.8);
}
