.order-page { background: #060806; }

.order-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 0 clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(58% 100% at 85% 45%, rgba(57,255,20,.13), transparent 68%),
    linear-gradient(118deg, #050706, #0a100c);
}
.order-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.order-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); gap: clamp(42px, 7vw, 88px); align-items: center; }
.order-hero-copy h1 { margin-top: 16px; font-size: clamp(4.25rem, 7.8vw, 7.2rem); }
.order-hero-copy > p { max-width: 660px; margin-top: 24px; font-size: 1.04rem; }
.order-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.download-blank-link::after { content: '\2193'; }
.size-guide-link::after { content: '\2197'; }

.order-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); box-shadow: var(--shadow); }
.order-proof article { min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: rgba(9,13,10,.96); }
.order-proof b { color: var(--green); font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 3.2rem; line-height: 1; text-transform: uppercase; }
.order-proof strong { margin-top: auto; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 1.3rem; line-height: 1; text-transform: uppercase; }
.order-proof span { margin-top: 8px; color: var(--muted); font-size: .7rem; line-height: 1.45; }

.order-form-section { padding: clamp(60px, 8vw, 108px) 0; }
.order-form { display: grid; gap: 18px; }
.order-form-intro { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 14px; }
.order-form-intro h2 { margin-top: 12px; }
.order-form-intro p { max-width: 760px; margin-top: 14px; }
.draft-panel { width: min(100%, 410px); display: grid; gap: 8px; justify-self: end; }
.draft-status { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: #aeb7b1; font-size: .68rem; font-weight: 700; }
.draft-status i { width: 8px; height: 8px; border-radius: 50%; background: #657069; transition: background .2s ease, box-shadow .2s ease; }
.draft-status.saved i { background: var(--green); box-shadow: 0 0 12px rgba(57,255,20,.5); }
.draft-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.draft-tools button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #0a0d0b; color: #d7ddd9; cursor: pointer; font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.draft-tools button:first-child { border-color: rgba(57,255,20,.44); color: var(--green); }
.draft-tools button:hover, .draft-tools button:focus-visible { border-color: var(--green); outline: none; }
.draft-panel > p { min-height: 1.2em; margin: 0 8px; color: #737d77; font-size: .59rem; line-height: 1.4; }
.inline-size-guide { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.order-section-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.order-section-heading { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; margin-bottom: 28px; }
.order-section-heading > span { width: 42px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--green); color: #051005; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: .9rem; font-weight: 800; }
.order-section-heading h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); text-transform: uppercase; }
.order-section-heading p { margin-top: 6px; font-size: .76rem; }
.order-section-heading.player-heading { grid-template-columns: 42px 1fr auto; }
.order-section-heading.player-heading > strong { align-self: center; padding: 8px 11px; border: 1px solid rgba(57,255,20,.34); border-radius: 999px; color: var(--green); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }

.order-field-grid { display: grid; gap: 16px; }
.order-field-grid.two-cols { grid-template-columns: 1fr 1fr; }
.order-field-grid.three-cols { grid-template-columns: repeat(3, 1fr); }
.order-field-grid .span-two { grid-column: span 2; }
.order-field { display: grid; gap: 7px; }
.section-note-field { margin-top: 16px; }
.order-field > label, .row-field > label, .extra-size { color: #dce1de; font-size: .65rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.order-field label em { margin-left: 5px; color: var(--green); font-size: .52rem; font-style: normal; }
.order-field input, .order-field textarea, .row-field input, .row-field select, .row-field textarea, .extra-size select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #080b09;
  color: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.order-field textarea { min-height: 92px; resize: vertical; }
.row-field textarea { min-height: 72px; resize: vertical; }
.order-field input:focus, .order-field textarea:focus, .row-field input:focus, .row-field select:focus, .row-field textarea:focus, .extra-size select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(57,255,20,.08); }
.order-field input::placeholder, .order-field textarea::placeholder, .row-field input::placeholder, .row-field textarea::placeholder { color: #59635d; }
.order-field [aria-invalid='true'], .row-field [aria-invalid='true'], .extra-size select[aria-invalid='true'] { border-color: #ff6f64; box-shadow: 0 0 0 3px rgba(255,91,80,.08); }

.logo-email-note { display: grid; grid-template-columns: 175px 1fr; gap: 18px; align-items: center; margin-top: 20px; padding: 17px 18px; border: 1px solid rgba(57,255,20,.32); border-radius: 14px; background: rgba(57,255,20,.055); }
.logo-email-note strong { color: var(--green); font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.logo-email-note p { font-size: .72rem; }
.logo-email-note a { color: #dfffd9; font-weight: 800; }
.logo-email-note b { color: #cfd6d1; }

.player-section { padding-inline: clamp(16px, 3vw, 30px); }
.player-legend { display: grid; grid-template-columns: 1.08fr .78fr 1.4fr 1fr; margin: 0 36px 10px 0; padding: 0 12px; color: #6f7973; font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.player-rows { display: grid; gap: 10px; }
.player-row { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #080b09; }
.player-row:focus-within { border-color: rgba(57,255,20,.45); }
.player-row > legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.player-row-header { display: grid; grid-template-columns: minmax(0, 1fr) 50px; align-items: center; min-height: 58px; }
.player-toggle { min-width: 0; width: 100%; min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 10px 12px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.player-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; border-radius: 12px; }
.player-row-badge { min-width: 78px; min-height: 30px; display: inline-flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; border-radius: 999px; background: rgba(57,255,20,.09); color: #c6d0c9; font-size: .57rem; font-weight: 800; line-height: 1; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.player-row-badge b { color: var(--green); font-size: .68rem; }
.player-summary { min-width: 0; overflow: hidden; color: #8f9993; font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.player-chevron { color: var(--green); font-size: 1.2rem; line-height: 1; text-align: center; transition: transform .18s ease; }
.player-row.is-expanded .player-chevron { transform: rotate(180deg); }
.player-row-panel { padding: 14px; border-top: 1px solid var(--line); }
.player-row-panel[hidden] { display: none; }
.remove-player { position: static; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #78827c; cursor: pointer; font-size: 1.25rem; }
.remove-player:hover, .remove-player:focus-visible { border-color: #ff6f64; color: #ff8c84; outline: none; }
.player-row-grid { display: grid; grid-template-columns: minmax(150px, 1.25fr) 84px 72px 76px minmax(150px, 1.1fr) minmax(158px, .92fr) minmax(158px, .92fr); gap: 10px; align-items: end; padding-top: 0; }
.row-field { display: grid; gap: 6px; min-width: 0; }
.row-field label small { display: block; margin-top: 1px; color: #657069; font-size: .48rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.row-field input, .row-field select, .extra-size select { min-height: 44px; padding: 9px 10px; font-size: .74rem; }
.row-extra { display: grid; grid-template-columns: auto minmax(84px, 1fr); gap: 8px; align-items: end; min-width: 0; }
.extra-toggle { cursor: pointer; }
.extra-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.extra-toggle span { min-width: 66px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #0b0f0c; color: #8f9993; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.extra-toggle input:checked + span { border-color: var(--green); background: rgba(57,255,20,.1); color: var(--green); }
.extra-toggle input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.extra-size { display: grid; gap: 6px; min-width: 0; }
.extra-size select:disabled { cursor: not-allowed; opacity: .4; }
.player-notes { grid-column: 1 / -1; }

.player-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.order-control-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #0a0d0b; color: #d5dad7; cursor: pointer; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.order-control-button span { color: var(--green); }
.order-control-button:hover, .order-control-button:focus-visible { border-color: var(--green); outline: none; }
.order-control-button:disabled { cursor: not-allowed; opacity: .35; }
#playerLimitMessage { margin-left: auto; color: #7e8882; font-size: .64rem; }

.order-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.order-checks label { min-height: 82px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #090c0a; cursor: pointer; }
.order-checks input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.order-checks span { color: #7f8983; font-size: .63rem; }
.order-checks b { display: block; margin-bottom: 3px; color: #e5e9e6; font-size: .68rem; }
.order-checks label:has(input:checked) { border-color: rgba(57,255,20,.45); background: rgba(57,255,20,.045); }

.order-actions-card { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(57,255,20,.3); border-radius: 22px; background: radial-gradient(75% 180% at 100% 50%, rgba(57,255,20,.12), transparent 70%), var(--panel); }
.order-actions-card > div:first-child > span { color: var(--green); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.order-actions-card h3 { margin-top: 8px; font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; }
.order-actions-card p { max-width: 680px; margin-top: 8px; font-size: .72rem; }
.order-actions-card a { color: #dfffd9; }
.order-actions { min-width: 310px; display: grid; gap: 9px; }
.order-actions .button { width: 100%; border: 1px solid var(--green); cursor: pointer; }
.order-actions .secondary::after { content: '\2193'; }
.order-download::after { content: '\2193'; }
.clear-order { min-height: 42px; border: 0; background: transparent; color: #89938d; cursor: pointer; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.clear-order:hover, .clear-order:focus-visible { color: #ff8a82; outline: none; }
.order-validation { grid-column: 1 / -1; min-height: 1.2em; margin: 0; color: #ff8a82; font-size: .72rem; font-weight: 700; text-align: right; }

@media (max-width: 1120px) {
  .order-hero-grid { grid-template-columns: 1fr 430px; gap: 38px; }
  .player-legend { display: none; }
  .player-row-grid { grid-template-columns: repeat(12, 1fr); }
  .player-reference { grid-column: span 4; }
  .player-row-grid > .row-field:nth-child(2) { grid-column: span 2; }
  .player-row-grid > .row-field:nth-child(3), .player-row-grid > .row-field:nth-child(4) { grid-column: span 1; }
  .name-back { grid-column: span 4; }
  .row-extra { grid-column: span 6; }
}

@media (max-width: 860px) {
  .order-hero-grid { grid-template-columns: 1fr; }
  .order-proof { width: min(100%, 680px); }
  .order-field-grid.three-cols { grid-template-columns: 1fr 1fr; }
  .order-field-grid.three-cols .span-two { grid-column: span 1; }
  .order-actions-card { grid-template-columns: 1fr; }
  .order-actions { min-width: 0; }
}

@media (max-width: 600px) {
  .order-hero { padding-top: 46px; }
  .order-hero-copy { text-align: center; }
  .order-hero-copy > p { margin-inline: auto; }
  .order-hero-actions { display: grid; }
  .order-hero-actions .button { width: 100%; }
  .order-proof { grid-template-columns: 1fr 1fr; }
  .order-proof article { min-height: 150px; padding: 17px; }
  .order-proof b { font-size: 2.55rem; }
  .order-proof strong { font-size: 1.05rem; }
  .order-form-intro { grid-template-columns: 1fr; align-items: start; }
  .draft-panel { justify-self: start; }
  .order-section-card { padding: 20px 14px; border-radius: 17px; }
  .order-section-heading { grid-template-columns: 36px 1fr; gap: 11px; }
  .order-section-heading > span { width: 36px; height: 26px; }
  .order-section-heading.player-heading { grid-template-columns: 36px 1fr; }
  .order-section-heading.player-heading > strong { grid-column: 2; justify-self: start; }
  .order-field-grid.two-cols, .order-field-grid.three-cols { grid-template-columns: 1fr; }
  .order-field-grid .span-two, .order-field-grid.three-cols .span-two { grid-column: auto; }
  .logo-email-note { grid-template-columns: 1fr; gap: 4px; }
  .player-section { padding-inline: 10px; }
  .player-row-panel { padding: 13px 11px 14px; }
  .player-row-grid { grid-template-columns: 1fr; gap: 10px; }
  .player-reference, .name-back, .player-row-grid > .row-field:nth-child(2), .player-row-grid > .row-field:nth-child(3), .player-row-grid > .row-field:nth-child(4), .row-extra, .player-notes { grid-column: 1; }
  .player-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .order-control-button { justify-content: center; }
  #playerLimitMessage { grid-column: 1 / -1; margin-left: 0; text-align: center; }
  .order-checks { grid-template-columns: 1fr; }
  .order-checks label { min-height: 68px; }
  .order-actions-card { padding: 22px 16px; }
  .order-validation { text-align: left; }
}

@media (max-width: 390px) {
  .order-proof { grid-template-columns: 1fr; }
  .order-proof article { min-height: 120px; }
  .player-toggle { grid-template-columns: auto minmax(0, 1fr) 18px; gap: 8px; padding-inline: 9px 7px; }
  .player-row-badge { padding-inline: 8px; }
  .player-summary { font-size: .61rem; }
}

@media print {
  .site-header, .order-hero, .site-footer, .order-form-intro, .player-controls, .order-actions-card, .remove-player, .player-row-header { display: none !important; }
  body, .order-page, .order-form-section { background: #fff !important; color: #000 !important; }
  .order-form-section { padding: 0; }
  .order-form { width: 100%; display: block; }
  .order-section-card { break-inside: avoid; margin: 0 0 8mm; border: 1px solid #aaa; background: #fff; color: #000; }
  .order-field > label, .row-field > label, .extra-size, .order-section-heading h3 { color: #000; }
  .player-row-panel[hidden] { display: block !important; }
  .order-field input, .order-field textarea, .row-field input, .row-field select, .row-field textarea, .extra-size select { border-color: #aaa; background: #fff; color: #000; }
}
