:root {
  --navy-950: #07111f;
  --navy-900: #0b1a2e;
  --navy-800: #12253f;
  --orange: #ff5c35;
  --orange-dark: #e8461f;
  --ink: #1a2332;
  --muted: #64748b;
  --line: #e8eef5;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.12);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", sans-serif;
  --bar-clearance: 128px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f4f7fb;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

button,
select { font: inherit; }

.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(126, 182, 255, 0.28), transparent 55%),
    radial-gradient(900px 400px at 10% 0%, rgba(255, 92, 53, 0.18), transparent 50%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, #0e2038 100%);
  color: #fff;
  padding: 48px 20px 88px;
  text-align: center;
  max-width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 220px 220px, 160px 160px, 200px 200px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: max(-80px, -12vw);
  top: 20%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  border: 1px solid rgba(126, 182, 255, 0.18);
  box-shadow:
    inset 0 0 80px rgba(126, 182, 255, 0.08),
    0 0 0 40px rgba(126, 182, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-top: 3px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.5;
}

.controls {
  position: relative;
  z-index: 20;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  position: relative;
}

.control-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.period-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.period-dd {
  position: relative;
  z-index: 21;
  min-width: 168px;
}

.period-dd.is-open {
  z-index: 50;
}

.period-dd-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 14px 11px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(7, 17, 31, 0.18);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.period-dd-btn:hover {
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.24);
  border-color: rgba(255, 92, 53, 0.55);
}

.period-dd.is-open .period-dd-btn {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 92, 53, 0.22), 0 10px 26px rgba(7, 17, 31, 0.22);
}

.period-dd-label {
  text-align: left;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.period-dd-chevron {
  flex: 0 0 auto;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.period-dd.is-open .period-dd-chevron {
  transform: rotate(180deg);
}

.period-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.28);
  max-height: 260px;
  overflow: auto;
}

.period-dd-menu[hidden] {
  display: none !important;
}

.period-dd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.period-dd-option:hover,
.period-dd-option:focus {
  background: #fff4f0;
  color: var(--orange-dark);
  outline: none;
}

.period-dd-option.is-active {
  background: linear-gradient(135deg, #fff4f0, #ffe8df);
  color: var(--orange-dark);
  font-weight: 750;
}

.period-dd-option.is-active::after {
  content: "✓";
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
}

.hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.shell {
  max-width: 1120px;
  width: 100%;
  margin: -48px auto 0;
  padding: 0 20px calc(var(--bar-clearance) + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
}

.state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.state.error {
  color: #b91c1c;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

/* ——— Page loader / skeleton ——— */
body.page-loading .controls,
body.page-loading .hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

body.page-loading .shell {
  padding-bottom: 48px;
}

body.page-loading .seo-content {
  display: none;
}

.load-panel {
  text-align: center;
  padding: 28px 8px 8px;
  animation: loadFade 0.35s ease;
}

.load-panel[hidden] { display: none !important; }

@keyframes loadFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.load-spinner {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.load-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.08);
  border-top-color: var(--orange);
  border-right-color: #7eb6ff;
  animation: loadSpin 0.85s linear infinite;
}

.load-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 17, 31, 0.1);
  animation: loadPulse 1.4s ease-in-out infinite;
}

@keyframes loadSpin {
  to { transform: rotate(360deg); }
}

@keyframes loadPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.load-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.load-sub {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.load-progress {
  width: min(220px, 70%);
  height: 4px;
  margin: 18px auto 28px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.load-progress span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #7eb6ff);
  animation: loadSlide 1.15s ease-in-out infinite;
}

@keyframes loadSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.load-skels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.load-skel-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
  border: 2px solid transparent;
  min-height: 280px;
}

.load-skel-card--mid {
  border-color: rgba(255, 92, 53, 0.18);
  box-shadow: 0 22px 55px rgba(255, 92, 53, 0.1);
}

.load-skel-line {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: loadShimmer 1.35s ease-in-out infinite;
  margin-bottom: 12px;
}

.load-skel-line--sm { width: 38%; height: 10px; }
.load-skel-line--lg { width: 72%; height: 14px; margin-bottom: 18px; }
.load-skel-line--price { width: 55%; height: 28px; border-radius: 10px; margin: 8px 0 20px; }
.load-skel-line--btn { width: 100%; height: 44px; border-radius: 12px; margin-bottom: 22px; }
.load-skel-line--md { width: 48%; }

@keyframes loadShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 960px) {
  .load-skels {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .load-skel-card--mid { box-shadow: var(--shadow); border-color: transparent; }
  .load-skel-card:nth-child(n + 2) { display: none; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  outline: none;
}

.card:hover { transform: translateY(-4px); }

.card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 22px 55px rgba(255, 92, 53, 0.18);
}

.card.is-popular { transform: translateY(-8px); }

.card.is-popular:hover,
.card.is-popular.is-selected { transform: translateY(-10px); }

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-popular-star {
  font-size: 0.78rem;
  line-height: 1;
  color: #ffd36a;
  transform: translateY(-0.5px);
}

.card-name {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
}

.card-desc {
  margin: 8px 0 0;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.price-block { margin: 18px 0 6px; }

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.price-value {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-suffix {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}

.price-period {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.price-save {
  margin-top: 8px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.btn-cta {
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-cta-ico {
  flex-shrink: 0;
}

.btn-cta:hover { background: var(--orange-dark); }

.card.is-selected .btn-cta { background: var(--navy-800); }

.benefits {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}

.benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #334155;
  padding: 7px 0;
  line-height: 1.35;
}

.benefits li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f6fed' d='M6.3 11.2L3.2 8.1l1.1-1.1 2 2 5-5 1.1 1.1z'/%3E%3C/svg%3E")
    center/14px no-repeat,
    #e8f0ff;
}

.section {
  margin-top: 42px;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

.mod {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  background: #fff;
  user-select: none;
}

.mod:hover {
  border-color: #c5d5ea;
  transform: translateY(-2px);
}

.mod.is-on {
  border-color: var(--orange);
  background: #fff8f5;
}

.mod img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}

.mod-body { min-width: 0; flex: 1; }

.mod-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 2px;
}

.mod-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

.mod-price {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-800);
}

.mod-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex: 0 0 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.mod.is-on .mod-check {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 2px #fff;
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -10px 30px rgba(7, 17, 31, 0.08);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
}

.bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.bar-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bar-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.bar-total {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bar-detail {
  font-size: 0.82rem;
  color: var(--muted);
}

.btn-go {
  border: 0;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  padding: 14px 26px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-go-icon {
  flex: 0 0 auto;
  opacity: 0.95;
}

.btn-go:hover:not(:disabled) { background: var(--orange); }

.btn-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-clearance) - 20px);
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* SEO: legível por crawlers; discreto com JS activo */
.page-contacts {
  margin: 28px 0 8px;
  padding: 18px 16px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-contacts-sig {
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
  letter-spacing: 0.01em;
}

.page-contacts-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-size: 0.86rem;
  color: #64748b;
}

.page-contacts-row a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.page-contacts-row a:hover {
  text-decoration: underline;
}

.page-contacts-sep {
  color: #cbd5e1;
}

.seo-content {
  margin-top: 36px;
  padding: 22px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.seo-content h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.seo-content p,
.seo-content li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.seo-content ul {
  margin: 12px 0;
  padding-left: 1.2rem;
}

.seo-content a {
  color: #1b55c8;
}

.seo-content--soft {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .card.is-popular { transform: none; }
  .card.is-popular:hover,
  .card.is-popular.is-selected { transform: translateY(-4px); }
}

@media (max-width: 640px) {
  :root {
    /* Barra em coluna (resumo + botão) — espaço extra para o último card não ficar tapado */
    --bar-clearance: 220px;
  }
  .hero { padding: 36px 16px 72px; }
  .controls {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .control { justify-content: space-between; width: 100%; min-width: 0; }
  .period-dd { flex: 1; min-width: 0; width: 100%; }
  .shell { padding-left: 16px; padding-right: 16px; }
  .section { padding: 22px 16px 20px; }
  .bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-go { width: 100%; }
  .toast { bottom: calc(var(--bar-clearance) - 28px); }
}

/* ——— Checkout modal ——— */
.ck-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.ck-overlay[hidden] { display: none !important; }

.ck-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.68);
  backdrop-filter: blur(10px);
}

.ck-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 28px 70px rgba(2, 8, 20, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  padding: 22px 24px 16px;
  animation: ckIn 0.28s ease;
}

.ck-dialog::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  opacity: 0.88;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 38%, #f59e0b 72%, #ea580c 100%);
}

@keyframes ckIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.ck-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ck-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.ck-close:focus-visible {
  outline: 2px solid #1558e8;
  outline-offset: 2px;
}

.ck-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding-right: 36px;
}

.ck-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.ck-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.ck-brand h2,
.ck-success h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: var(--navy-900);
}

.ck-sub {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 48ch;
}

.ck-summary {
  margin: 20px 0 18px;
  padding: 12px 12px;
  border-radius: 16px;
  background: #f3f6fa;
  border: 1px solid #e4ebf3;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.ck-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 650;
  color: #1e293b;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ck-chip-k {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0.78;
}

.ck-chip-v {
  font-weight: 750;
  font-size: 0.88rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ck-chip strong {
  color: inherit;
  font-weight: 750;
}

.ck-chip--pkg {
  background: linear-gradient(160deg, #fff4ee 0%, #ffe8df 100%);
  border-color: #ffd0be;
  color: #9a3412;
}

.ck-chip--pkg .ck-chip-k { color: #c2410c; }

.ck-chip--period {
  background: linear-gradient(160deg, #eef5ff 0%, #e0ecff 100%);
  border-color: #c7dbf8;
  color: #1e3a5f;
}

.ck-chip--period .ck-chip-k { color: #2563eb; }

.ck-chip--mods {
  background: linear-gradient(160deg, #eefaf6 0%, #ddf5ec 100%);
  border-color: #b8e8d6;
  color: #115e59;
}

.ck-chip--mods .ck-chip-k { color: #0f766e; }

.ck-chip--total {
  margin-left: auto;
  align-self: center;
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 26, 46, 0.18);
  font-size: 0.9rem;
}

.ck-chip--total strong { color: #fff; }

.ck-form { margin-top: 18px; }

.ck-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ck-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 12px;
  margin-top: 14px;
}

.ck-field { margin: 0; min-width: 0; }

.ck-field--full {
  grid-column: 1 / -1;
}

.ck-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 5px;
}

.ck-field .req { color: var(--orange); }

.ck-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 11px;
  min-height: 38px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ck-input:hover { border-color: #c0cddd; }

.ck-input:focus-within {
  background: #fff;
  border-color: #1558e8;
  box-shadow: 0 0 0 3px rgba(21, 88, 232, 0.1);
}

.ck-ico {
  color: #94a3b8;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: color 0.15s ease;
}

.ck-input:focus-within .ck-ico { color: #1558e8; }

.ck-input input,
.ck-input select.ck-select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  font-size: 0.875rem;
  color: #475569;
}

.ck-input select.ck-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}

.ck-input input::placeholder { color: #94a3b8; }

.ck-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  transform-origin: center;
}

.ck-error.is-shake {
  animation: ckErrorShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
  border-color: #f87171;
}

@keyframes ckErrorShake {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-7px); }
  24% { transform: translateX(7px); }
  36% { transform: translateX(-5px); }
  48% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  72% { transform: translateX(3px); }
  84% { transform: translateX(-1px); }
}

.ck-error-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: #dc2626;
}

.ck-error-text {
  min-width: 0;
  flex: 1 1 auto;
}

.ck-error[hidden] { display: none !important; }

.ck-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8eef5;
}

.ck-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  justify-content: flex-end;
}

.ck-actions-success {
  justify-content: center;
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  line-height: 1;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.ck-btn:focus-visible {
  outline: 2px solid #1558e8;
  outline-offset: 2px;
}

.ck-btn-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}

.ck-btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange-dark);
  min-width: 176px;
  box-shadow: 0 6px 14px rgba(255, 92, 53, 0.18);
}

.ck-btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
  border-color: #d13d1a;
  box-shadow: 0 8px 16px rgba(232, 70, 31, 0.22);
}

.ck-btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.ck-btn-ghost {
  background: #eef2f7;
  color: var(--navy-900);
  border-color: #d5deeb;
  min-width: 120px;
  box-shadow: none;
}

.ck-btn-ghost:hover {
  background: #e4ebf3;
  border-color: #c5d0e0;
  color: var(--navy-950);
}

.ck-contacts {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 0;
  text-align: center;
}

.ck-contacts-sig {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.ck-contacts-row {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-size: 0.76rem;
  color: #64748b;
}

.ck-contacts-row a {
  color: #1558e8;
  text-decoration: none;
  font-weight: 600;
}

.ck-contacts-row a:hover {
  text-decoration: underline;
}

.ck-contacts-sep {
  color: #cbd5e1;
}

.ck-success {
  text-align: center;
  padding: 16px 8px 6px;
}

.ck-success-mark {
  width: 72px;
  height: 72px;
  margin: 8px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #16a34a;
  background: #ecfdf5;
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.06);
}

.ck-code {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

body.ck-open { overflow: hidden; }

@media (max-width: 640px) {
  .ck-chip--total { margin-left: 0; }
}

@media (max-width: 768px) {
  .ck-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px;
    padding: 16px 16px 12px;
  }

  .ck-dialog::before { left: 16px; right: 16px; }

  .ck-brand h2,
  .ck-success h2 {
    font-size: 1.05rem;
  }

  .ck-form-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
  }

  .ck-field--full {
    grid-column: 1 / -1;
  }

  .ck-actions {
    flex-direction: column-reverse;
  }

  .ck-btn {
    width: 100%;
  }

  .ck-btn-primary {
    min-width: 0;
  }
}
