/* Enhanced design studio — competitor-style options */

.form-group {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 178, 74, 0.12);
}

.form-group-title {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
}

.template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.template-chip {
  border: 1px solid var(--line);
  background: #0b100d;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.template-chip:hover,
.template-chip.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

.side-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  width: 100%;
}

.side-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.side-btn.is-active {
  background: rgba(212, 178, 74, 0.15);
  color: var(--gold);
  border-color: var(--gold);
}

.spec-sheet {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem;
  width: 100%;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.spec-sheet li strong {
  color: var(--ink);
  font-weight: 600;
}

.coin[data-size="1.5"] { width: min(150px, 46vw); }
.coin[data-size="1.75"] { width: min(170px, 50vw); }
.coin[data-size="2"] { width: min(200px, 58vw); }
.coin[data-size="2.25"] { width: min(220px, 62vw); }
.coin[data-size="2.5"] { width: min(240px, 68vw); }
.coin[data-size="3"] { width: min(270px, 76vw); }

.coin[data-shape="oval"] {
  aspect-ratio: 4 / 3;
  width: min(230px, 66vw);
  border-radius: 50%;
}

.coin[data-finish="antique-gold"],
.coin[data-finish="gold"] {
  background: radial-gradient(circle at 35% 25%, #f0d878, #c9a227 45%, #6f5814 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 235, 170, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #1a1405;
}

.coin[data-finish="antique-silver"],
.coin[data-finish="silver"] {
  background: radial-gradient(circle at 35% 25%, #f2f4f7, #9aa3ad 48%, #4a525a 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #15181c;
}

.coin[data-finish="copper"] {
  background: radial-gradient(circle at 35% 25%, #e0a070, #a85a32 48%, #5a2e18 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 210, 170, 0.3), 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #2a150c;
}

.coin[data-finish="two-tone"] {
  background: linear-gradient(135deg, #f0d878 0 48%, #9aa3ad 52% 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 235, 170, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #1a1405;
}

.coin[data-edge="rope"] {
  box-shadow:
    inset 0 0 0 6px rgba(0, 0, 0, 0.18),
    inset 0 0 0 10px rgba(255, 235, 170, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.coin[data-edge="reeded"] {
  outline: 3px solid rgba(255, 255, 255, 0.18);
  outline-offset: -8px;
}

.coin[data-edge="crosscut"] {
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.25),
    inset 0 0 0 8px rgba(255, 235, 170, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.coin[data-edge="bezel"] {
  box-shadow:
    inset 0 0 0 10px rgba(0, 0, 0, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.coin[data-edge="oblique"] {
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.15),
    inset -4px 0 0 rgba(0, 0, 0, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.coin-arc {
  font-family: var(--display);
  font-size: clamp(0.62rem, 2.4vw, 0.78rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 90%;
  line-height: 1.2;
}

.coin-motif {
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  max-width: 85%;
}

.patch[data-size="2"] { width: min(170px, 50vw); }
.patch[data-size="3"] { width: min(210px, 60vw); }
.patch[data-size="3.5"] { width: min(230px, 68vw); }
.patch[data-size="4"] { width: min(250px, 72vw); }
.patch[data-size="5"],
.patch[data-size="custom"] { width: min(280px, 78vw); }

.patch[data-shape="custom"] {
  aspect-ratio: 5 / 4;
  width: min(240px, 72vw);
  border-radius: 14px;
}

.patch[data-border="satin"] {
  box-shadow:
    inset 0 0 0 2px rgba(240, 216, 120, 0.7),
    0 16px 36px rgba(0, 0, 0, 0.45);
}

.patch[data-style="chenille"] {
  background:
    radial-gradient(circle at 40% 30%, #3a6b4a, #1a3d2a 60%, #0d1f16 100%);
  color: #f0d878;
}

.pin[data-size="0.75"] { width: min(110px, 34vw); }
.pin[data-size="1"] { width: min(140px, 42vw); }
.pin[data-size="1.25"] { width: min(160px, 48vw); }
.pin[data-size="1.5"],
.pin[data-size="custom"] { width: min(180px, 52vw); }

.pin[data-type="tietac"] {
  width: min(100px, 30vw);
}

.pin[data-type="tieclip"] {
  aspect-ratio: 3 / 1;
  width: min(200px, 60vw);
  border-radius: 8px;
}

.pin[data-finish="copper"] {
  background: radial-gradient(circle at 35% 25%, #e0a070, #a85a32 48%, #5a2e18 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 170, 0.35), 0 14px 28px rgba(0, 0, 0, 0.45);
  color: #2a150c;
}

.pin[data-finish="two-tone"] {
  background: linear-gradient(135deg, #f0d878 0 48%, #9aa3ad 52% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 235, 170, 0.35), 0 14px 28px rgba(0, 0, 0, 0.45);
  color: #1a1405;
}

.pin[data-type="tietac"] .pin-clutch {
  width: 10px;
  height: 22px;
  bottom: -20px;
  border-radius: 2px;
}

.builder-form textarea {
  width: 100%;
  min-height: 88px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b100d;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
  resize: vertical;
}

.builder-form .form-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .builder-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
