:root {
  --pink: #ee438a;
  --pink-dark: #d92d78;
  --pink-soft: #fde9f1;
  --ink: #101014;
  --muted: #777782;
  --line: #ececf0;
  --bg: #f6f6f8;
  --card: #fff;
  --blue: #0f6cbd;
  --green: #11845b;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(16, 16, 20, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  height: 34px;
}

.divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.page-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.langs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.langs button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.langs button.on {
  background: var(--pink);
  color: #fff;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 70px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 26px;
}

@media (max-width: 1040px) {
  .wrap {
    grid-template-columns: 1fr;
  }

  .cart {
    position: static !important;
  }

  .page-title {
    display: none;
  }
}

h1 {
  font-size: 26px;
  margin: 0 0 5px;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--pink);
}

.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab,
.filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 750;
  cursor: pointer;
  color: #333;
}

.tab.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter {
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 12px;
}

.filter.on {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: var(--pink-dark);
}

.group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.group-h {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), #f375ab);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.group-h h3 {
  margin: 0;
  font-size: 17px;
}

.count {
  font-size: 12px;
  color: var(--muted);
}

.chev {
  margin-left: auto;
  color: var(--muted);
  transition: 0.2s;
  font-size: 18px;
}

.open .chev {
  transform: rotate(180deg);
}

.group-b {
  display: none;
  padding: 0 16px 14px;
}

.open .group-b {
  display: block;
}

.prod {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 9px 0;
  overflow: hidden;
  background: #fff;
}

.prod-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
}

.name {
  font-weight: 800;
  flex: 1;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  background: #eef3ff;
  color: #315fc7;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
}

.badge.bundle {
  background: #f0eafe;
  color: #7a46d1;
}

.price {
  font-weight: 900;
  white-space: nowrap;
}

.price small {
  color: var(--muted);
  font-weight: 750;
  margin-left: 4px;
}

.add {
  border: 0;
  background: var(--pink);
  color: #fff;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 850;
  cursor: pointer;
}

.add:hover {
  background: var(--pink-dark);
}

.prod-b {
  display: none;
  background: #fcfcfd;
  border-top: 1px dashed var(--line);
  padding: 14px 16px 16px;
}

.prod.open .prod-b {
  display: block;
}

.cfg {
  margin: 0 0 14px;
}

.lbl {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 7px;
}

.seg {
  display: flex;
  gap: 6px;
}

.seg button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.seg button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.azure {
  display: inline-block;
  margin-top: 8px;
  background: #eaf3fc;
  color: var(--blue);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
}

.check {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
}

.check input {
  accent-color: var(--pink);
}

.check b {
  margin-left: auto;
}

.cfg .check + .check {
  margin-top: 8px;
}

.project-title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 900;
  margin: 16px 0 9px;
}

.project-title.addsvc-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.project-title.addsvc-toggle:hover {
  color: var(--pink-dark);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.proj {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px;
  cursor: pointer;
}

.proj.sel {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
  background: #fff6fb;
}

.proj-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.radio {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  position: relative;
}

.sel .radio {
  border-color: var(--pink);
}

.sel .radio:after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--pink);
  border-radius: 50%;
}

.proj-name {
  font-weight: 850;
  flex: 1;
  font-size: 13.5px;
}

.proj-price {
  color: var(--pink);
  font-weight: 900;
}

.proj ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proj li {
  font-size: 12px;
  color: #444;
  margin: 3px 0;
}

.no-proj,
.bundle-note {
  border: 1px dashed var(--line);
  background: #f8f8fa;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.card .cat {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card .price {
  font-size: 20px;
  display: block;
  margin-bottom: 14px;
}

.cart {
  position: sticky;
  top: 82px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-h h2 {
  font-size: 16px;
  margin: 0;
}

.cnt {
  background: var(--pink);
  color: white;
  font-weight: 900;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.empty {
  padding: 38px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.lines {
  padding: 8px 14px;
}

.line {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
}

.line-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.line-name {
  font-size: 14px;
  font-weight: 850;
}

.rm {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.info {
  font-size: 12px;
  background: #f6f6f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.info .money {
  color: var(--pink);
  font-weight: 850;
  white-space: nowrap;
}

.line-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 11px;
  margin-top: 12px;
}

.line-total .v {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.disc {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.disc.on {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-soft);
}

.disc-box {
  margin-top: 10px;
}

.disc-row {
  display: flex;
  gap: 6px;
}

.disc-row input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.disc-row input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(238, 67, 138, 0.12);
}

.disc-row input::-webkit-inner-spin-button,
.disc-row input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.disc-row button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 850;
  cursor: pointer;
}

.disc-row button.on {
  background: var(--ink);
  color: #fff;
}

.strike {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 12px;
  margin-right: 6px;
}

.totals {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  background: linear-gradient(180deg, #fff, #fff7fb);
}

.row {
  display: flex;
  justify-content: space-between;
  margin: 7px 0;
  font-size: 13.5px;
}

.row.muted {
  color: var(--muted);
  font-size: 12.5px;
}

.row.discount {
  color: var(--green);
  font-weight: 850;
}

.grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--ink);
  margin-top: 12px;
  padding-top: 13px;
  font-weight: 900;
}

.grand .total {
  font-size: 25px;
}

.note {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 6px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 850;
  cursor: pointer;
}

.print {
  background: var(--ink);
  color: #fff;
}

.clear {
  background: #fff;
  border: 1px solid var(--line) !important;
  color: #333;
}

@media print {
  header,
  .catalog,
  .rm,
  .disc,
  .actions {
    display: none !important;
  }

  .wrap {
    display: block;
    padding: 0;
  }

  .cart {
    position: static;
    box-shadow: none;
    border: 0;
  }
}

.svc-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 9px 0;
  background: #fff;
  overflow: hidden;
}

.svc-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
}

.svc-b {
  display: none;
  background: #fcfcfd;
  border-top: 1px dashed var(--line);
  padding: 12px 16px 14px;
}

.svc-item.open .svc-b {
  display: block;
}

.svc-b ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-b li {
  font-size: 12.5px;
  color: #444;
  margin: 4px 0;
}

.svc-chev {
  color: var(--muted);
  font-size: 16px;
  transition: 0.2s;
}

.svc-item.open .svc-chev {
  transform: rotate(180deg);
}

.feat-toggle {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  user-select: none;
}

.feat-toggle:hover {
  color: var(--pink-dark);
}

.feat-chev {
  font-size: 9px;
  margin-left: 6px;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 11.5px;
}

.features-table thead th {
  background: var(--bg);
  padding: 5px 8px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.features-table thead th.ft-name {
  text-align: left;
}

.features-table thead th.ft-active {
  background: var(--pink-soft);
  color: var(--pink-dark);
}

.features-table tbody td {
  padding: 4px 8px;
  border-bottom: 1px solid #f0f0f4;
}

.features-table tbody tr:last-child td {
  border-bottom: none;
}

.features-table tbody tr:hover td {
  background: #fafafa;
}

.ft-name {
  font-size: 11.5px;
  color: #333;
}

.ft-cell {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.ft-cell:not(.ft-no) span {
  color: var(--green);
}

.ft-cell.ft-no span {
  color: #ddd;
}

.ft-cell.ft-active {
  background: #fff6fb;
}

.features-table thead th.ft-plan {
  min-width: 72px;
}

/* ── Countdown banner ─────────────────────────────────────────────────────── */
.quote-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 14px;
  position: sticky;
  top: 62px;
  z-index: 9;
  transition:
    background 0.4s,
    color 0.4s;
}

.banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.banner-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.banner-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.banner-date {
  font-size: 15px;
  font-weight: 800;
}

.banner-timer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}

.timer-val {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-lbl {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 3px;
}

.timer-sep {
  font-size: 30px;
  font-weight: 900;
  opacity: 0.35;
  padding-bottom: 10px;
}

.timer-val.tick {
  animation: timer-tick 0.3s ease-out;
}

@keyframes timer-tick {
  0% {
    transform: translateY(-5px);
    opacity: 0.1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.stress-0 {
  background: #e8f5e9;
  color: #1b5e20;
}

.stress-1 {
  background: #fff8e1;
  color: #e65100;
}

.stress-2 {
  background: #ffe0b2;
  color: #bf360c;
  animation: stress-pulse 3s ease-in-out infinite;
}

.stress-3 {
  background: #fce4ec;
  color: #880e4f;
  animation: stress-pulse 1.5s ease-in-out infinite;
}

.stress-4 {
  background: #ffcdd2;
  color: #b71c1c;
  animation: stress-pulse 0.7s ease-in-out infinite;
}

.stress-5 {
  background: #b71c1c;
  color: #fff;
}

@keyframes stress-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Hide interactive controls in shared read-only quote view */
.quote-view .add,
.quote-view .svc-add {
  display: none !important;
}

.quote-view .disc,
.quote-view .disc-box {
  display: none !important;
}

.quote-view .actions {
  display: none !important;
}

/* Cart notes */
.cart-notes {
  padding: 8px 14px 0;
}

.notes-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
  outline: none;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

.notes-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(238, 67, 138, 0.12);
}

.quote-view .notes-input {
  background: #f6f6f8;
  color: var(--ink);
  pointer-events: none;
}

/* ── Send-to-client modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  width: 440px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-title {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-field {
  margin-bottom: 16px;
}

.modal-input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  margin-top: 6px;
  box-sizing: border-box;
  outline: none;
}

.modal-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(238, 67, 138, 0.12);
}

.modal-confirm {
  display: block;
  width: 100%;
  border: 0;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  padding: 13px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
}

.modal-confirm:hover {
  background: var(--pink-dark);
}

.modal-confirm:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.modal-success {
  background: #e9f7ef;
  color: #1a7a40;
  border-radius: 9px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.modal-url-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}

.modal-url-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  background: #f6f6f8;
  min-width: 0;
  color: var(--ink);
}

.modal-copy {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.modal-copy:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.modal-done {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.modal-done:hover {
  background: var(--bg);
}
