:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #e31b23;
  --accent-dark: #b90f16;
  --accent-soft: #fff1f2;
  --dark: #17191d;
  --success: #11845b;
  --danger: #c43b3b;
  --shadow: 0 20px 60px rgba(17, 24, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef1f4;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 10%, rgba(227, 27, 35, .11), transparent 29%),
    radial-gradient(circle at 92% 32%, rgba(17, 24, 39, .09), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(233, 237, 242, .74));
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }

.site-header, main, footer { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.brand { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; font-weight: 950; letter-spacing: -.06em; font-size: 27px; }
.brand-mark { background: var(--accent); color: #fff; padding: 5px 8px 5px 7px; transform: skew(-7deg); display: inline-block; }
.brand-pro { padding-left: 6px; }

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding: 64px;
  border-radius: 32px;
  color: white;
  background: radial-gradient(circle at 15% 20%, #343a46 0, #1d2128 34%, #111317 100%);
  overflow: hidden;
  position: relative;
}
.hero::after { content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%; background: rgba(227, 27, 35, .19); right: -100px; top: -100px; filter: blur(5px); }
.eyebrow { color: var(--accent); font-weight: 850; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 700px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; margin: 18px 0 22px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy > p { color: #c8cbd1; max-width: 630px; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.primary-button, .secondary-button, .ghost-button, .danger-button {
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  font-weight: 850;
  transition: .2s ease;
}
.primary-button { background: var(--accent); color: white; box-shadow: 0 10px 25px rgba(227, 27, 35, .18); }
.primary-button:hover { transform: translateY(-1px); background: #ef2b32; }
.secondary-button { background: #eef0f3; color: var(--ink); }
.secondary-button:hover { background: #e2e5e9; }
.ghost-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.ghost-button.compact { padding: 10px 14px; }
.hero .secondary-button { background: rgba(255, 255, 255, .09); color: white; border: 1px solid rgba(255, 255, 255, .17); }
.danger-button { background: #fff0f0; color: var(--danger); }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: #aeb3bc; font-size: 14px; }

.hero-card { position: relative; z-index: 2; min-height: 380px; border-radius: 26px; padding: 26px; background: linear-gradient(145deg, #fff, #e8ebef); color: var(--ink); box-shadow: 0 35px 80px rgba(0, 0, 0, .30); transform: rotate(2deg); }
.hero-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 900; }
.status-pill { background: #dff5eb; color: var(--success); padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.product-visual { height: 170px; margin: 26px 0; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, #17191d, #343b45); color: #fff; font-size: 54px; font-weight: 950; letter-spacing: -.07em; }
.hero-card-lines { display: grid; gap: 12px; }
.hero-card-lines div { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #d8dde4; gap: 18px; }
.hero-card-lines span { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.steps article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.steps b { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; }
.steps h3 { margin: 18px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; margin: 24px 0; box-shadow: var(--shadow); }
.hidden { display: none !important; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 8px 0 8px; font-size: 34px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 28px; line-height: 1; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; font-weight: 750; }
.field.full { grid-column: 1 / -1; }
.field small, .product-title-row small { color: var(--muted); font-weight: 450; }
input, select, textarea { width: 100%; border: 1px solid #d5dae1; border-radius: 13px; padding: 14px 15px; background: white; outline: none; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(227, 27, 35, .11); }
.product-title-row { margin: 30px 0 14px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.product-title-row > div { display: grid; gap: 5px; }
.label-title { font-weight: 850; }
#selectedProductLabel { background: #f4f5f7; padding: 8px 11px; border-radius: 10px; color: var(--muted); font-size: 13px; max-width: 52%; text-align: right; }
.product-toolbar { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); background: #f8f9fb; border-radius: 18px; }
.product-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.product-toolbar input, .product-toolbar select { padding: 12px 13px; }
.product-results-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 12px 2px; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--accent-dark); padding: 4px; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; overflow: hidden; text-align: left; border: 2px solid transparent; background: #f7f8fa; border-radius: 20px; padding: 0 0 16px; min-height: 350px; transition: .18s ease; }
.product-card:hover { border-color: #d9dde3; transform: translateY(-2px); box-shadow: 0 14px 35px rgba(17, 24, 39, .08); }
.product-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(227, 27, 35, .08); }
.product-card-image { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: contain; background: #111318; border-bottom: 1px solid var(--line); }
.product-card-category { display: inline-block; margin: 14px 14px 0; padding: 5px 8px; border-radius: 999px; background: #eceff3; color: var(--muted); font-size: 11px; font-weight: 800; }
.product-card strong { display: block; margin: 10px 14px 5px; font-size: 16px; line-height: 1.28; }
.product-card small { display: block; margin: 0 14px; color: var(--muted); }
.product-card-check { position: absolute; right: 10px; top: 10px; padding: 6px 9px; border-radius: 999px; color: white; background: var(--accent); font-size: 11px; font-weight: 900; opacity: 0; transform: translateY(-4px); transition: .18s ease; }
.product-card.selected .product-card-check { opacity: 1; transform: none; }
.product-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); background: #f8f9fb; border: 1px dashed #d6dbe2; border-radius: 18px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; color: var(--muted); font-size: 14px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 1px; }
.form-message { color: var(--danger); min-height: 22px; margin-bottom: 8px; }
.full-width { width: 100%; }

.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.verify-result { margin-top: 20px; }
.result-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fbfcfd; display: grid; gap: 8px; }
.result-card.success { border-color: #bce7d5; background: #f3fcf8; }
.result-card.error { border-color: #f3c6c6; background: #fff8f8; }

.coupon { border: 2px solid var(--dark); border-radius: 26px; overflow: hidden; background: white; }
.coupon-header { display: flex; justify-content: space-between; align-items: center; background: var(--dark); padding: 20px 24px; }
.coupon-brand { color: white; }
.coupon-title { padding: 25px; display: flex; justify-content: space-between; gap: 20px; align-items: end; border-bottom: 1px solid var(--line); }
.coupon-title span { color: var(--muted); }
.coupon-title strong { font-size: 28px; letter-spacing: -.04em; }
.coupon-product { display: grid; grid-template-columns: 145px 1fr; gap: 20px; padding: 25px; border-bottom: 1px solid var(--line); align-items: center; }
.coupon-product-image { width: 145px; height: 110px; border-radius: 16px; display: block; object-fit: contain; background: var(--dark); }
.coupon-product h3 { margin: 5px 0; }
.coupon-product p, .coupon-product small { margin: 0; color: var(--muted); }
.coupon-details { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 25px 20px; }
.coupon-details div { display: grid; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.coupon-details span { color: var(--muted); font-size: 13px; }
.coupon-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 25px; background: #f6f7f8; color: var(--muted); font-size: 13px; }
.fake-qr { width: 66px; height: 66px; flex: 0 0 auto; background:
  linear-gradient(90deg, #111 12%, transparent 12% 24%, #111 24% 36%, transparent 36% 48%, #111 48% 60%, transparent 60% 72%, #111 72% 84%, transparent 84%),
  linear-gradient(#111 12%, transparent 12% 24%, #111 24% 36%, transparent 36% 48%, #111 48% 60%, transparent 60% 72%, #111 72% 84%, transparent 84%);
  background-size: 22px 22px; border: 5px solid white; outline: 1px solid #ddd;
}
.coupon-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.admin-section { text-align: center; margin: 46px 0; }
.admin-link { border: 0; background: none; color: var(--muted); text-decoration: underline; }
#adminPanel { text-align: left; }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-tab { border: 0; background: transparent; padding: 12px 14px; color: var(--muted); font-weight: 850; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--ink); border-color: var(--accent); }
.admin-tab span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: #eef0f3; font-size: 11px; }
.admin-toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.empty-row td { text-align: center; color: var(--muted); padding: 32px; }

.ticket-admin-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 16px; }
.ticket-admin-layout { display: grid; grid-template-columns: 340px 1fr; min-height: 520px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ticket-list { border-right: 1px solid var(--line); background: #f8f9fb; max-height: 680px; overflow: auto; }
.ticket-list-item { width: 100%; display: grid; gap: 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px; text-align: left; }
.ticket-list-item:hover, .ticket-list-item.active { background: white; }
.ticket-list-item.active { box-shadow: inset 4px 0 var(--accent); }
.ticket-list-item > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ticket-list-item > span, .ticket-list-item > small { color: var(--muted); }
.ticket-status { padding: 4px 7px; border-radius: 999px; background: #fff3d6; color: #8b5b00; font-size: 10px; font-weight: 900; }
.ticket-status.answered { background: #dff5eb; color: var(--success); }
.ticket-conversation { display: flex; flex-direction: column; min-width: 0; background: white; }
.ticket-empty { display: grid; place-items: center; min-height: 160px; padding: 30px; text-align: center; color: var(--muted); }
.ticket-detail-header { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.ticket-detail-header h3 { margin: 5px 0 0; }
.ticket-kicker { color: var(--accent-dark); font-size: 12px; font-weight: 850; }
.ticket-meta { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.operator-messages { flex: 1; min-height: 280px; max-height: 500px; overflow: auto; padding: 20px; background: #f8f9fb; }
.message-row { display: flex; margin-bottom: 12px; }
.message-row.operator { justify-content: flex-end; }
.message-bubble { max-width: 78%; padding: 12px 14px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.message-row.operator .message-bubble { background: #fff1f2; border-color: #ffc6ca; }
.message-bubble small { color: var(--muted); }
.message-bubble p { margin: 7px 0 0; line-height: 1.45; }
.operator-reply-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 16px; border-top: 1px solid var(--line); }

footer { display: flex; justify-content: space-between; gap: 30px; align-items: center; border-top: 1px solid var(--line); padding: 35px 0 90px; color: var(--muted); }
footer p { margin: 0; text-align: right; }

.chat-launcher { position: fixed; z-index: 50; right: 24px; bottom: 24px; border: 0; border-radius: 999px; padding: 15px 20px; background: var(--accent); color: white; box-shadow: 0 15px 40px rgba(17, 24, 39, .24); font-weight: 900; }
.chat-launcher b { position: absolute; right: -3px; top: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--accent); box-shadow: 0 3px 10px rgba(0, 0, 0, .18); font-size: 11px; }
.support-chat { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: min(430px, calc(100vw - 32px)); height: min(680px, calc(100vh - 44px)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid #d8dde4; border-radius: 24px; background: white; box-shadow: 0 25px 80px rgba(17, 24, 39, .28); }
.chat-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 16px 18px; background: var(--dark); color: white; }
.chat-header > div { display: grid; gap: 3px; }
.chat-header span { color: #b8bdc6; font-size: 12px; }
.chat-close { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: transparent; color: white; font-size: 24px; line-height: 1; }
.chat-body { min-height: 0; overflow-y: auto; padding: 18px; background: #f5f6f8; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 11px; }
.chat-message.user { align-items: flex-end; }
.chat-message > div { max-width: 85%; padding: 11px 13px; border-radius: 16px 16px 16px 4px; background: white; border: 1px solid var(--line); line-height: 1.42; }
.chat-message.user > div { color: white; background: var(--accent); border-color: var(--accent); border-radius: 16px 16px 4px 16px; }
.chat-message small { max-width: 85%; margin: 0 4px 4px; color: var(--muted); font-size: 10px; }
.chat-message.user small { text-align: right; }
.chat-controls { max-height: 46%; overflow: auto; padding: 14px; border-top: 1px solid var(--line); background: white; }
.chat-options { display: grid; gap: 8px; }
.chat-options button { width: 100%; border: 1px solid #d9dde3; border-radius: 12px; padding: 11px 12px; background: #f8f9fb; text-align: left; font-weight: 750; }
.chat-options button:hover { border-color: var(--accent); background: var(--accent-soft); }
.chat-back { border: 0; background: transparent; color: var(--muted); padding: 10px 4px 0; font-size: 12px; font-weight: 750; }
.chat-step-form, .chat-ticket-form { display: grid; gap: 10px; }
.chat-step-form label, .chat-ticket-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.chat-step-form select, .chat-ticket-form input, .chat-ticket-form textarea { padding: 11px 12px; font-size: 14px; }
.chat-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-form-error { min-height: 16px; color: var(--danger); font-size: 12px; }
.chat-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-shortcuts button { padding: 11px 10px; }
.chat-ticket-summary { display: grid; gap: 4px; margin-bottom: 16px; padding: 13px; border-radius: 14px; background: #e9edf2; }
.chat-ticket-summary span, .chat-ticket-summary small { color: var(--muted); }
.chat-followup-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.chat-followup-form textarea { padding: 10px 11px; font-size: 14px; }
.chat-followup-form button { padding: 11px 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 42px; }
  .hero-card { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coupon-details { grid-template-columns: repeat(2, 1fr); }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-toolbar input { grid-column: 1 / -1; }
  .ticket-admin-layout { grid-template-columns: 280px 1fr; }
  .ticket-detail-header { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .ticket-admin-layout { grid-template-columns: 1fr; }
  .ticket-list { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .operator-reply-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 20px, 1160px); }
  .site-header { height: auto; min-height: 70px; padding: 10px 0; }
  .site-header .ghost-button { font-size: 11px; padding: 9px 10px; }
  .brand { font-size: 23px; }
  .hero { min-height: auto; padding: 36px 22px; border-radius: 24px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { display: grid; }
  .steps { grid-template-columns: 1fr; }
  .panel { border-radius: 22px; padding: 22px 16px; }
  .section-heading h2 { font-size: 28px; }
  .form-grid, .inline-form { grid-template-columns: 1fr; }
  .product-title-row { align-items: flex-start; }
  #selectedProductLabel { max-width: 60%; }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .coupon-title, .coupon-header, .coupon-footer { align-items: flex-start; }
  .coupon-title { display: grid; }
  .coupon-title strong { font-size: 22px; }
  .coupon-product { grid-template-columns: 100px 1fr; padding: 18px; }
  .coupon-product-image { width: 100px; height: 90px; }
  .coupon-details { grid-template-columns: 1fr; padding: 6px 18px 16px; }
  .coupon-footer { display: grid; }
  .coupon-actions { display: grid; }
  .admin-toolbar, .ticket-admin-toolbar { grid-template-columns: 1fr; }
  .admin-toolbar input { grid-column: auto; }
  footer { display: grid; justify-items: start; }
  footer p { text-align: left; }
  .chat-launcher { right: 14px; bottom: 14px; }
  .support-chat { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 20px; }
  .chat-form-row, .chat-shortcuts { grid-template-columns: 1fr; }
}

@media print {
  body { background: white; }
  body * { visibility: hidden; }
  #couponPanel, #couponPanel *, #coupon, #coupon * { visibility: visible; }
  #couponPanel { display: block !important; position: absolute; inset: 0; padding: 0; margin: 0; border: 0; box-shadow: none; }
  #coupon { position: absolute; inset: 20px; }
  .no-print, .support-chat, .chat-launcher { display: none !important; }
}


/* Soft translucent page surfaces */
.steps article,
.panel {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Navigation */
.nav-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary-button.compact { padding: 10px 14px; }
.nav-current { border-color: #b9bec7; background: #f0f2f5; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 750; text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }

/* New certificate preview */
.certificate-preview { padding: 0; overflow: hidden; background: #f7f7f8; transform: rotate(1.5deg); }
.certificate-preview::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: var(--accent); }
.certificate-preview-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 24px 28px 18px 34px; }
.mini-brand { display: inline-flex; align-items: center; font-size: 22px; font-weight: 950; letter-spacing: -.06em; }
.mini-brand b { padding: 4px 8px; color: white; background: var(--accent); transform: skew(-7deg); }
.mini-brand span { padding-left: 6px; }
.certificate-number { color: var(--muted); font-size: 11px; font-weight: 850; }
.certificate-ribbon { padding: 13px 30px 13px 34px; color: white; background: linear-gradient(90deg, var(--accent), #a90b11); font-size: 13px; font-weight: 950; letter-spacing: .07em; }
.certificate-preview-main { min-height: 180px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 32px 18px 38px; background: radial-gradient(circle at 85% 20%, rgba(227, 27, 35, .12), transparent 38%); }
.certificate-term { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 9px; }
.certificate-term small { grid-column: 1 / -1; color: var(--muted); font-weight: 750; }
.certificate-term strong { font-size: 76px; line-height: .9; letter-spacing: -.08em; }
.certificate-term span { padding-bottom: 8px; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.certificate-seal { width: 112px; height: 112px; display: grid; place-content: center; text-align: center; border: 5px double var(--accent); border-radius: 50%; color: var(--accent-dark); transform: rotate(-8deg); }
.certificate-seal b { font-size: 25px; line-height: .9; }
.certificate-seal span { font-size: 20px; font-weight: 950; }
.certificate-seal small { margin-top: 5px; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.certificate-preview .hero-card-lines { padding: 0 30px 22px 36px; }

/* Redesigned warranty certificate */
.warranty-certificate { position: relative; border: 0; border-radius: 24px; box-shadow: 0 24px 70px rgba(17, 24, 39, .16); background: #fff; }
.warranty-certificate::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 8px; background: linear-gradient(var(--accent), #92090e); }
.warranty-certificate .coupon-header { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; padding: 24px 30px 24px 34px; background: linear-gradient(130deg, #111317, #252a32); }
.coupon-document-type { display: grid; gap: 4px; color: white; }
.coupon-document-type small { color: #aeb4bf; text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 850; }
.coupon-document-type strong { font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.coupon-identity { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px 25px 34px; background: linear-gradient(135deg, #fff, #f4f5f7); border-bottom: 1px solid var(--line); }
.coupon-identity > div:first-child { display: grid; gap: 7px; }
.coupon-identity span, .coupon-identity small { color: var(--muted); }
.coupon-identity > div:first-child > span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.coupon-identity > div:first-child > strong { font-size: clamp(24px, 4vw, 38px); letter-spacing: -.045em; }
.coupon-identity > div:first-child > small { font-size: 11px; }
.coupon-term-seal { width: 118px; height: 118px; display: grid; place-content: center; text-align: center; border: 3px solid var(--accent); border-radius: 50%; color: var(--accent-dark); box-shadow: inset 0 0 0 6px white, inset 0 0 0 7px #ef9ca0; transform: rotate(4deg); }
.coupon-term-seal strong { font-size: 44px; line-height: .82; }
.coupon-term-seal span { margin-top: 5px; color: inherit; font-size: 11px; font-weight: 950; letter-spacing: .08em; }
.coupon-term-seal small { color: inherit; font-size: 10px; }
.warranty-certificate .coupon-product { padding: 25px 30px 25px 34px; background: white; }
.warranty-certificate .coupon-product h3 { font-size: 22px; }
.warranty-certificate .coupon-details { padding: 4px 30px 22px 34px; column-gap: 22px; }
.warranty-certificate .coupon-details div { align-content: start; }
.coupon-active-text { color: var(--success); }
.warranty-certificate .coupon-footer { padding: 22px 30px 22px 34px; color: #d6dae1; background: #17191d; }
.warranty-certificate .coupon-footer > div:first-child { display: grid; gap: 5px; }
.warranty-certificate .coupon-footer strong { color: white; }
.warranty-certificate .fake-qr { border-color: white; }

/* Product catalog */
.catalog-main { padding-bottom: 30px; }
.catalog-hero { min-height: 350px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 58px 64px; border-radius: 32px; color: white; background: radial-gradient(circle at 75% 20%, #3b1518 0, #1d2026 42%, #111317 100%); overflow: hidden; }
.catalog-hero h1 { max-width: 760px; margin: 10px 0 16px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.catalog-hero p { max-width: 720px; margin: 0; color: #c2c7d0; font-size: 18px; line-height: 1.6; }
.catalog-hero-stat { width: 190px; height: 190px; display: grid; place-content: center; text-align: center; border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(227, 27, 35, .18); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .04); }
.catalog-hero-stat strong { font-size: 70px; line-height: .85; }
.catalog-hero-stat span { margin-top: 12px; color: #d8dbe0; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.catalog-toolbar-section { position: sticky; z-index: 10; top: 10px; margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 14px 38px rgba(17, 24, 39, .08); backdrop-filter: blur(12px); }
.catalog-search-row { display: grid; grid-template-columns: 1fr 260px; gap: 12px; }
.catalog-search, .catalog-sort { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.catalog-category-chips { display: flex; gap: 8px; margin-top: 14px; padding-bottom: 2px; overflow-x: auto; }
.catalog-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 10px 13px; background: #f7f8fa; color: var(--muted); font-size: 12px; font-weight: 800; }
.catalog-chip span { margin-left: 4px; opacity: .75; }
.catalog-chip.active { color: white; border-color: var(--accent); background: var(--accent); }
.catalog-results-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalog-card { min-width: 0; display: grid; grid-template-columns: minmax(210px, .9fr) 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 12px 35px rgba(17, 24, 39, .06); transition: .2s ease; }
.catalog-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(17, 24, 39, .11); }
.catalog-card-media { position: relative; min-height: 390px; background: #121418; }
.catalog-card-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.catalog-warranty-badge { position: absolute; top: 14px; left: 14px; padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--accent-dark); box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 11px; font-weight: 900; }
.catalog-card-body { display: flex; flex-direction: column; padding: 24px; }
.catalog-card-body .product-card-category { align-self: flex-start; margin: 0; }
.catalog-card-body h2 { margin: 13px 0 10px; font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.catalog-card-body > p { margin: 0; color: var(--muted); line-height: 1.55; }
.catalog-card-body ul { display: grid; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.catalog-card-body li { position: relative; padding-left: 23px; font-size: 13px; font-weight: 750; }
.catalog-card-body li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 950; }
.catalog-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.catalog-card-actions > span { color: var(--muted); font-size: 10px; font-weight: 850; }
.catalog-card-actions .primary-button { padding: 12px 14px; font-size: 12px; }
.catalog-empty { grid-column: 1 / -1; display: grid; gap: 8px; place-items: center; padding: 70px 20px; border: 1px dashed #cfd5dd; border-radius: 24px; color: var(--muted); background: white; }
.catalog-empty strong { color: var(--ink); font-size: 20px; }
.catalog-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 24px; padding: 36px 42px; border-radius: 26px; color: white; background: #17191d; }
.catalog-cta h2 { margin: 8px 0; font-size: 31px; }
.catalog-cta p { margin: 0; color: #b7bdc7; }

/* Chat choices inside the conversation */
.support-chat { width: min(500px, calc(100vw - 32px)); height: min(760px, calc(100vh - 44px)); }
.chat-body { padding: 18px 18px 24px; }
.chat-controls:empty { display: none; }
.chat-inline-panel { margin: 4px 0 14px 28px; max-width: calc(100% - 28px); }
.chat-inline-title { margin: 0 0 9px 2px; color: var(--muted); font-size: 12px; font-weight: 850; }
.chat-inline-options { display: grid; gap: 9px; }
.chat-inline-options button { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid #d7dce3; border-radius: 15px; padding: 13px 14px; background: white; color: var(--ink); text-align: left; box-shadow: 0 5px 14px rgba(17, 24, 39, .04); }
.chat-inline-options button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.chat-inline-options button > span:not(.chat-option-icon), .chat-inline-options button:not(.chat-topic-options button) { min-width: 0; }
.chat-inline-options strong, .chat-inline-options small { display: block; }
.chat-inline-options small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.chat-option-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--accent); font-size: 17px; font-weight: 950; }
.chat-category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-category-options button { display: grid; align-content: center; min-height: 72px; }
.chat-product-options { display: grid; gap: 8px; }
.chat-product-option { width: 100%; display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; border: 1px solid #d7dce3; border-radius: 15px; padding: 7px; background: white; text-align: left; }
.chat-product-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.chat-product-option img { width: 58px; height: 58px; display: block; object-fit: cover; border-radius: 11px; background: #17191d; }
.chat-product-option span { min-width: 0; }
.chat-product-option strong { display: block; font-size: 12px; line-height: 1.25; }
.chat-product-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.chat-product-option > b { padding: 0 8px; color: var(--accent); font-size: 25px; }
.chat-inline-navigation { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.chat-back-inline { padding: 12px 4px 3px; }
.chat-shortcuts-inline { margin-top: 2px; }
.chat-inline-form { padding: 15px; border: 1px solid #d7dce3; border-radius: 17px; background: white; box-shadow: 0 8px 22px rgba(17, 24, 39, .06); }
.chat-inline-form input, .chat-inline-form textarea { background: #fbfcfd; }

@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { grid-template-columns: minmax(230px, .7fr) 1.3fr; }
}

@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; padding: 10px 0 14px; }
  .header-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .header-actions > * { flex: 0 0 auto; }
  .catalog-hero { grid-template-columns: 1fr; padding: 38px 24px; }
  .catalog-hero-stat { width: 140px; height: 140px; }
  .catalog-hero-stat strong { font-size: 54px; }
  .catalog-search-row { grid-template-columns: 1fr; }
  .catalog-toolbar-section { position: static; }
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-card-media { min-height: 0; aspect-ratio: 4 / 3; }
  .catalog-card-actions { align-items: stretch; flex-direction: column; }
  .catalog-cta { display: grid; padding: 30px 24px; }
  .warranty-certificate .coupon-header { grid-template-columns: 1fr auto; }
  .coupon-document-type { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 620px) {
  .certificate-preview-main { padding-inline: 25px; }
  .coupon-identity { grid-template-columns: 1fr; }
  .coupon-term-seal { width: 100px; height: 100px; }
  .warranty-certificate .coupon-product { grid-template-columns: 92px 1fr; }
  .chat-category-options { grid-template-columns: 1fr; }
  .chat-inline-panel { margin-left: 12px; max-width: calc(100% - 12px); }
  .catalog-card-body { padding: 20px; }
  .catalog-hero h1 { font-size: 42px; }
}

@media print {
  .warranty-certificate { box-shadow: none; }
  .warranty-certificate .coupon-header, .warranty-certificate .coupon-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Production public site additions */
a { color: inherit; }
.site-header { position: relative; z-index: 20; }
.site-header nav { display: flex; }
.footer-links button { border: 0; padding: 0; color: var(--muted); background: transparent; font: inherit; font-weight: 750; }
.footer-links button:hover { color: var(--accent-dark); }
.catalog-teaser { display: flex; justify-content: space-between; align-items: center; gap: 34px; margin: 24px 0 48px; padding: 38px 42px; border-radius: 28px; color: white; background: linear-gradient(135deg, #17191d, #292e37); }
.catalog-teaser h2 { max-width: 760px; margin: 8px 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.catalog-teaser p { margin: 0; color: #b9bec8; }

.certificate-preview { position: relative; min-height: 370px; border-radius: 28px; color: var(--ink); box-shadow: 0 34px 80px rgba(0,0,0,.32); }
.certificate-preview .certificate-ribbon { position: absolute; inset: 26px 26px auto 26px; padding: 11px 16px; border-radius: 10px; font-size: 23px; letter-spacing: -.04em; }
.certificate-preview-copy { position: absolute; inset: 115px 34px auto 40px; display: grid; gap: 14px; }
.certificate-preview-copy small { color: var(--muted); font-weight: 900; letter-spacing: .1em; }
.certificate-preview-copy strong { max-width: 300px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.certificate-preview-copy span { color: var(--muted); }
.certificate-preview .certificate-seal { position: absolute; right: 35px; bottom: 32px; font-size: 36px; font-weight: 950; }
.certificate-preview .certificate-seal small { font-size: 12px; }

.warranty-certificate { overflow: hidden; }
.warranty-certificate-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 28px 23px 34px; color: white; background: linear-gradient(135deg, #111317, #282d35); }
.certificate-brand { color: white; }
.certificate-status { padding: 8px 11px; border-radius: 999px; color: #b9f4da; background: rgba(17,132,91,.2); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.certificate-main { padding: 0 30px 26px 34px; background: linear-gradient(145deg, #fff, #f6f7f9); }
.certificate-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.certificate-heading small { color: var(--muted); font-weight: 850; letter-spacing: .08em; }
.certificate-heading strong { font-size: clamp(22px, 4vw, 36px); letter-spacing: -.04em; }
.certificate-product { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.certificate-product img { width: 160px; height: 125px; display: block; object-fit: contain; border-radius: 17px; background: #15171b; }
.certificate-product small, .certificate-product p { color: var(--muted); }
.certificate-product h3 { margin: 7px 0; font-size: 24px; }
.certificate-product p { margin: 0; }
.certificate-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.certificate-details div { display: grid; gap: 6px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.certificate-details span { color: var(--muted); font-size: 12px; }
.certificate-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 30px 22px 34px; color: #c3c8d0; background: #17191d; }
.certificate-bottom p { max-width: 700px; margin: 0; }
.certificate-bottom img { width: 78px; height: 78px; padding: 4px; border-radius: 8px; background: white; }

.chat-inline-panel { margin-left: 0; max-width: 100%; }
.chat-inline-options button { cursor: pointer; }
.chat-category-options button { min-height: 66px; }
.chat-final-form { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.chat-final-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.chat-final-form input, .chat-final-form textarea { padding: 10px 11px; font-size: 13px; }
.chat-final-form .checkbox-row { margin: 2px 0; font-size: 11px; }
.chat-final-form .checkbox-row input { width: 16px; height: 16px; }
.chat-current-ticket { display: grid; gap: 3px; padding: 12px; border-radius: 13px; background: #eef1f5; }
.chat-current-ticket strong { font-size: 13px; }
.chat-current-ticket span { color: var(--muted); font-size: 11px; }
.chat-new-ticket { margin-top: 8px; }

.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; }
.error-page h1 { margin: 12px 0 0; font-size: 46px; }
.error-page p { margin: 0 0 12px; color: var(--muted); }

@media (max-width: 760px) {
  .catalog-teaser { display: grid; padding: 30px 24px; }
  .certificate-heading { display: grid; }
  .certificate-product { grid-template-columns: 105px 1fr; }
  .certificate-product img { width: 105px; height: 95px; }
  .certificate-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .certificate-preview { display: none; }
  .certificate-details { grid-template-columns: 1fr; }
  .certificate-bottom { align-items: flex-start; }
}

/* ===== Compact interface while preserving the original DMR-PRO design ===== */
body.product-picker-open,
body.chat-open { overflow: hidden; }

.product-picker-block { margin-top: 30px; }
.product-picker-block .product-title-row { margin: 0 0 12px; }
.product-picker-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  border: 1px solid #d9dde3;
  border-radius: 19px;
  padding: 10px 15px 10px 10px;
  color: var(--ink);
  background: #f8f9fb;
  text-align: left;
  transition: .18s ease;
}
.product-picker-trigger:hover,
.product-picker-trigger:focus-visible {
  border-color: var(--accent);
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(227, 27, 35, .08);
  outline: none;
}
.product-picker-trigger.has-selection { background: white; }
.product-picker-thumb {
  width: 92px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: var(--accent);
  background: #eceff3;
  font-size: 30px;
  font-weight: 350;
}
.product-picker-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; background: #17191d; }
.product-picker-copy { min-width: 0; display: grid; gap: 6px; }
.product-picker-copy #selectedProductLabel {
  max-width: none;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 17px;
  line-height: 1.25;
}
.product-picker-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.product-picker-action { padding: 10px 13px; border-radius: 11px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 900; }

.product-picker-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; }
.product-picker-backdrop { position: absolute; inset: 0; border: 0; background: rgba(10, 12, 16, .66); backdrop-filter: blur(5px); }
.product-picker-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(780px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  background: white;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .35);
  animation: product-picker-in .18s ease-out;
}
@keyframes product-picker-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.product-picker-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px 17px; }
.product-picker-header h2 { margin: 7px 0 0; font-size: 31px; letter-spacing: -.035em; }
.product-picker-toolbar { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; padding: 0 26px 16px; }
.product-picker-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.product-picker-toolbar input,
.product-picker-toolbar select { padding: 12px 13px; }
.product-picker-dialog .product-results-row { margin: 0; padding: 12px 26px; border-block: 1px solid var(--line); background: #f8f9fb; }
.product-picker-grid { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow-y: auto; padding: 16px 20px 22px; background: #f5f6f8; }
.product-picker-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border: 1px solid #dce0e6;
  border-radius: 17px;
  padding: 8px 12px 8px 8px;
  color: var(--ink);
  background: white;
  text-align: left;
  transition: .16s ease;
}
.product-picker-card:hover { border-color: #c5cad2; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(17, 24, 39, .08); }
.product-picker-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(227, 27, 35, .07); }
.product-picker-card > img { width: 86px; height: 76px; display: block; object-fit: contain; border-radius: 12px; background: #17191d; }
.product-picker-card-copy { min-width: 0; display: grid; gap: 4px; }
.product-picker-card-copy small { color: var(--accent-dark); font-size: 10px; font-weight: 850; }
.product-picker-card-copy strong { overflow: hidden; font-size: 14px; line-height: 1.24; text-overflow: ellipsis; }
.product-picker-card-copy span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.product-picker-card > b { color: var(--accent); font-size: 22px; }

/* Direct chat: no categories or branching */
.chat-direct-form { display: grid; gap: 10px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.chat-direct-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.chat-direct-form input,
.chat-direct-form textarea { padding: 10px 11px; font-size: 14px; background: #fbfcfd; }
.chat-direct-form textarea { min-height: 112px; }
.chat-direct-form .checkbox-row { display: flex; margin: 1px 0; font-weight: 500; }
.chat-direct-form .checkbox-row input { width: 17px; height: 17px; }
.chat-send-hint,
.chat-followup-input small { color: #8a919d; font-size: 10px; font-weight: 500; }
.chat-current-ticket { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: #e9edf2; }
.chat-current-ticket strong { font-size: 12px; }
.chat-current-ticket span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.chat-followup-form { grid-template-columns: minmax(0, 1fr) auto; }
.chat-followup-input { min-width: 0; display: grid; gap: 4px; }
.chat-followup-input textarea { min-height: 46px; max-height: 130px; resize: none; }
.chat-new-ticket { margin-top: 8px; }

@media (max-width: 700px) {
  .product-picker-modal { padding: 0; place-items: stretch; }
  .product-picker-dialog { width: 100%; max-height: none; height: 100dvh; border: 0; border-radius: 0; }
  .product-picker-header { padding: max(18px, env(safe-area-inset-top)) 18px 14px; }
  .product-picker-header h2 { font-size: 26px; }
  .product-picker-toolbar { grid-template-columns: 1fr; gap: 9px; padding: 0 14px 13px; }
  .product-picker-toolbar label { gap: 5px; }
  .product-picker-dialog .product-results-row { padding: 10px 15px; }
  .product-picker-grid { grid-template-columns: 1fr; padding: 11px 10px calc(18px + env(safe-area-inset-bottom)); }
  .product-picker-card { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .product-picker-card > img { width: 78px; height: 70px; }

  .support-chat {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .chat-header { padding-top: max(15px, env(safe-area-inset-top)); }
  .chat-controls { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .product-picker-trigger { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px; }
  .product-picker-thumb { width: 72px; height: 66px; }
  .product-picker-action { grid-column: 2; justify-self: start; padding: 0; background: transparent; }
  .product-picker-copy #selectedProductLabel { font-size: 15px; }
  .product-picker-copy small { white-space: normal; font-size: 11px; line-height: 1.35; }
  .chat-direct-form input,
  .chat-direct-form textarea,
  .chat-followup-form textarea { font-size: 16px; }
  .chat-followup-form { grid-template-columns: minmax(0, 1fr) auto; }
  .chat-followup-form button { min-height: 48px; align-self: start; }
}
