.marketing-actions { display: flex; gap: .65rem; }

.contact-page { background: radial-gradient(circle at 15% 10%, #eee8ff, transparent 30%), radial-gradient(circle at 90% 85%, #ffe9d3, transparent 32%), #fbfafc; }
.contact-layout { align-items: center; display: grid; gap: 5rem; grid-template-columns: 1fr minmax(420px, .8fr); margin: auto; max-width: 1180px; min-height: calc(100vh - 100px); padding: 3rem 2rem 6rem; }
.contact-copy h1 { font-size: clamp(3.5rem, 6vw, 6rem); letter-spacing: -.065em; line-height: .94; margin: 1rem 0 1.5rem; }
.contact-copy > p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 620px; }
.contact-points { display: grid; gap: .7rem; margin-top: 2rem; }
.contact-points span { font-weight: 800; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 2rem; }
.contact-card h2 { font-size: 1.8rem; margin: 0; }
.contact-card > p { color: var(--muted); }
.contact-form__row { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.contact-form textarea { background: #fff; border: 1px solid #ddd9e2; border-radius: 10px; color: var(--ink); outline: none; padding: .8rem .9rem; resize: vertical; width: 100%; }
.contact-form textarea:focus { border-color: #8b65f5; box-shadow: 0 0 0 3px #eee8ff; }
.phone-field { border: 0; margin: 0; min-width: 0; padding: 0; }
.phone-field legend { color: #4c4557; font-size: .86rem; font-weight: 700; margin-bottom: .45rem; padding: 0; }
.phone-field__controls { display: grid; gap: .65rem; grid-template-columns: minmax(125px, .6fr) minmax(210px, 1.4fr); }
.phone-field__number { display: block !important; min-width: 0; position: relative; }
.phone-field input { background: #fff; border: 1px solid #ddd9e2; border-radius: 10px; color: var(--ink); min-height: 46px; outline: none; transition: .2s border,.2s box-shadow; width: 100%; }
.phone-field input { padding: .8rem .9rem; }
.phone-field input:focus { border-color: #8b65f5; box-shadow: 0 0 0 3px #eee8ff; }
.phone-field > small { color: var(--muted); display: block; font-size: .74rem; font-weight: 500; margin-top: .4rem; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.country-picker { min-width: 0; position: relative; }
.country-picker__button { align-items: center; background: #fff; border: 1px solid #ddd9e2; border-radius: 10px; color: var(--ink); display: flex; gap: .65rem; min-height: 46px; padding: .75rem .8rem; text-align: left; width: 100%; }
.country-picker__button:focus { border-color: #8b65f5; box-shadow: 0 0 0 3px #eee8ff; outline: none; }
.country-picker__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-picker__arrow { border-bottom: 2px solid #5d5369; border-right: 2px solid #5d5369; flex: 0 0 8px; height: 8px; margin: -4px 3px 0 5px; transform: rotate(45deg); transition: transform .18s ease,margin .18s ease; width: 8px; }
.country-picker__button[aria-expanded="true"] .country-picker__arrow { margin-bottom: -4px; margin-top: 4px; transform: rotate(225deg); }
.country-picker__panel { background: #fff; border: 1px solid #ddd6e7; border-radius: 14px; box-shadow: 0 18px 48px rgba(48,27,76,.2); left: 0; min-width: 0; overflow: hidden; position: absolute; top: calc(100% + .45rem); width: min(340px,calc(100vw - 3rem)); z-index: 30; }
.country-picker__search { display: block !important; padding: .65rem; }
.country-picker__search input { min-height: 40px; padding: .65rem .75rem; }
.country-picker__list { max-height: 250px; overflow-y: auto; padding: .25rem; }
.country-picker__list button { align-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--ink); display: flex; gap: .7rem; padding: .65rem .7rem; text-align: left; width: 100%; }
.country-picker__list button:hover, .country-picker__list button:focus, .country-picker__list button[aria-selected="true"] { background: #f0ebff; outline: none; }
.country-picker__list button[hidden] { display: none; }
.country-picker .iti__flag { flex: 0 0 var(--iti-flag-width); }
.country-picker__empty { color: var(--muted); font-size: .82rem; margin: 0; padding: 1rem; text-align: center; }
.honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }
.privacy-note { color: var(--muted); text-align: center; }
.contact-success { padding: 2rem 1rem; text-align: center; }
.contact-success > span { background: #e3f9ed; border-radius: 50%; color: #21955a; display: grid; font-size: 2rem; height: 72px; margin: auto; place-items: center; width: 72px; }
.contact-success h2 { margin-top: 1.2rem; }
.contact-success p { color: var(--muted); line-height: 1.6; }
.contact-success .button { margin-top: 1rem; }

.nfc-list { display: grid; gap: 1.25rem; max-width: 1050px; }
.nfc-merchant-card { align-items:center; background:#fff; border:1px solid var(--line); border-radius:20px; display:grid; gap:2.2rem; grid-template-columns:330px 1fr; padding:2rem; }
.nfc-card-preview { aspect-ratio:1.576; border:1px solid #29252f; border-radius:20px; box-shadow:0 22px 45px rgba(31,17,53,.25); display:block; height:auto; object-fit:contain; width:100%; }
.nfc-card-heading { align-items:center; display:flex; gap:1rem; justify-content:space-between; }
.nfc-card-copy h2 { margin:.45rem 0 1rem; }
.nfc-card-copy code { background:#f4f1f7; border-radius:10px; display:block; overflow-wrap:anywhere; padding:.9rem; }
.nfc-help { color:var(--muted); line-height:1.55; }
.nfc-actions { display:flex; gap:.7rem; margin-top:1.5rem; }
.nfc-alias-form { align-items:end; display:grid; gap:.7rem; grid-template-columns:1fr auto; margin-top:1rem; }
.nfc-alias-form label { color:#4c4557; display:grid; font-size:.8rem; font-weight:800; gap:.4rem; }
.nfc-alias-form input { background:#fff; border:1px solid #ddd9e2; border-radius:10px; color:var(--ink); min-width:0; padding:.8rem .9rem; width:100%; }
.nfc-alias-form input:focus { border-color:#8b65f5; box-shadow:0 0 0 3px #eee8ff; outline:none; }
.password-dashboard { max-width:900px; }
.password-panel { max-width:560px; padding:2rem; }
.empty-state { max-width: 760px; text-align: center; }
.sticker-stock { margin: 1.2rem 0; padding: 0; overflow: hidden; }
.section-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; padding: 1.25rem; }
.section-heading h2 { margin: .25rem 0; }
.section-heading p { color: var(--muted); margin: 0; max-width: 720px; }
.stock-create { align-items: end; display: flex; gap: .6rem; }
.stock-create label { color: var(--muted); display: grid; font-size: .72rem; font-weight: 800; gap: .3rem; }
.stock-create input { border: 1px solid #ddd9e2; border-radius: 9px; padding: .7rem; width: 85px; }
.assign-form { align-items: center; display: flex; gap: .45rem; }
.assign-form select { border: 1px solid #ddd9e2; border-radius: 8px; max-width: 260px; padding: .5rem; }
.assign-form button { background: #eee8ff; border: 0; border-radius: 7px; color: #5d31cc; padding: .5rem .65rem; }
.status-pill.stock { background: #fff4dc; color: #996313; }
.status-pill.nfc-pending { background:#eee8ff; color:#6234d6; }
.status-pill.nfc-ready { background:#e5f4ff; color:#2371a8; }
.status-pill.nfc-locked { background:#e9faef; color:#23834b; }
.status-pill.history-created { background:#eee8ff; color:#6234d6; }
.status-pill.history-assigned { background:#e9faef; color:#23834b; }
.status-pill.history-unassigned { background:#fff4dc; color:#996313; }
.status-pill.history-reassigned { background:#e5f4ff; color:#2371a8; }
.nfc-guide { align-items:center; display:grid; gap:2rem; grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr); margin-bottom:1.2rem; }
.nfc-guide h2 { margin:.35rem 0 .6rem; }
.nfc-guide p { color:var(--muted); line-height:1.55; margin:0; }
.nfc-guide ol { counter-reset:nfc-step; display:grid; gap:.45rem; list-style:none; margin:0; padding:0; }
.nfc-guide li { align-items:center; display:flex; font-size:.82rem; font-weight:800; gap:.7rem; }
.nfc-guide li:before { background:#eee8ff; border-radius:50%; color:#6234d6; content:counter(nfc-step); counter-increment:nfc-step; display:grid; flex:0 0 27px; height:27px; place-items:center; }
.nfc-url { min-width:280px; }
.nfc-url code { display:block; font-size:.72rem; margin-bottom:.45rem; overflow-wrap:anywhere; }
.nfc-url button { background:#f0ebff; border:0; border-radius:7px; color:#5d31cc; font-size:.72rem; padding:.4rem .6rem; }
.nfc-url button.copied { background:#e9faef; color:#23834b; }
.nfc-state-actions { flex-wrap:wrap; min-width:260px; }
.message-cell { line-height: 1.45; max-width: 420px; white-space: pre-wrap; }
.table-heading--tools { align-items: end; display: flex; gap: 2rem; justify-content: space-between; }
.table-heading--tools h2 { margin: .25rem 0 0; }
.section-heading--search { align-items: end; display: grid; grid-template-columns:minmax(260px,1fr) minmax(240px,360px) auto; }
.admin-search { color: var(--muted); display: grid; font-size: .72rem; font-weight: 800; gap: .35rem; }
.admin-search input { background:#fff; border:1px solid #ddd9e2; border-radius:11px; min-width:260px; padding:.78rem .9rem; }
.filter-empty td { color:var(--muted); padding:2rem; text-align:center; }
.ticket-new { background:#eee8ff; color:#6034d4; }
.ticket-read { background:#e6f3ff; color:#236ba9; }
.ticket-closed { background:#eff0f2; color:#666b73; }
.ticket-open { font-weight:800; }
.ticket-dashboard { max-width:1500px; }
.back-link { color:#6b3be2; display:block; font-size:.82rem; font-weight:800; margin-bottom:1rem; text-decoration:none; }
.ticket-layout { display:grid; gap:1.5rem; grid-template-columns:minmax(0,1fr) minmax(320px,430px); }
.ticket-thread { display:grid; gap:1rem; align-content:start; }
.ticket-message { background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 8px 24px rgba(45,25,75,.05); padding:1.4rem; }
.ticket-message--admin { border-left:5px solid #6d3df2; margin-left:3rem; }
.ticket-message header { align-items:flex-start; display:flex; gap:1rem; justify-content:space-between; }
.ticket-message header small { color:var(--muted); display:block; margin-top:.25rem; }
.ticket-message p { line-height:1.65; margin:1.25rem 0 0; white-space:pre-wrap; }
.reply-card { align-self:start; position:sticky; top:1.2rem; }
.reply-card h2 { margin:.5rem 0; }
.reply-card > p { color:var(--muted); line-height:1.5; }
.reply-card textarea { border:1px solid #ddd9e2; border-radius:11px; font:inherit; padding:.9rem; resize:vertical; width:100%; }
.delivery { border-radius:99px; font-size:.72rem; font-weight:800; padding:.35rem .65rem; }
.delivery--sent { background:#e9faef; color:#23834b; }
.delivery--failed { background:#fff0f0; color:#b63b46; }
.delivery--pending { background:#fff4dc; color:#996313; }
.delivery-error { color:#b63b46; display:block; margin-top:.8rem; }

@media (max-width: 850px) {
  .contact-layout { gap: 2rem; grid-template-columns: 1fr; padding: 3rem 1.2rem; }
  .contact-copy { text-align: center; }
  .contact-points { justify-content: center; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading--search { display:flex; }
  .table-heading--tools { align-items:stretch; flex-direction:column; }
  .admin-search input { min-width:0; width:100%; }
  .ticket-layout { grid-template-columns:1fr; }
  .nfc-guide { grid-template-columns:1fr; }
  .nfc-merchant-card { grid-template-columns:1fr; }
  .nfc-card-visual { max-width:360px; width:100%; }
  .reply-card { position:static; }
}

@media (max-width: 560px) {
  .marketing-actions .button:first-child { display: none; }
  .contact-copy h1 { font-size: 3.6rem; }
  .contact-form__row { grid-template-columns: 1fr; }
  .phone-field__controls { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .contact-card { padding: 1.3rem; }
  .stock-create { align-items: stretch; flex-direction: column; }
  .ticket-message--admin { margin-left:0; }
  .nfc-merchant-card { padding:1.2rem; }
  .nfc-card-heading { align-items:flex-start; flex-direction:column; }
  .nfc-alias-form { align-items:stretch; grid-template-columns:1fr; }
}
