/* =========================================================
   k30market — test2 — Активация подписок (v2, по референсу)
   ========================================================= */

:root{
  --bg:            #0a0a0a;
  --panel:         #131310;
  --panel-2:       #181712;
  --panel-border:  #2a2520;
  --gold:          #e2a93a;
  --gold-light:    #f3c969;
  --gold-dark:     #b8842a;
  --text:          #f5f1ea;
  --text-dim:      #b9b3a6;
  --text-faint:    #7a766c;
  --grey-grok:     #ffffff;
  --danger:        #e2543a;
  --tg-blue:       #2f8fe0;
  --tg-blue-dark:  #1f6fb8;
  --input-bg:      #1a1a18;
  --input-border:  #322d24;
  --radius-lg:     16px;
  --radius-md:     12px;
  --radius-sm:     8px;
  --radius-pill:   999px;
  --font:          "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: url("assets/bg-hex.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */
.page{
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 32px 60px;
  display: grid;
  grid-template-columns: .95fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 980px){
  .page{
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 20px 48px;
  }
}

/* ---------- HERO (left) ---------- */
.hero{
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero__title{
  margin: 0 0 22px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.01em;
}

.hero__line{
  display: block;
  font-size: clamp(50px, 6.8vw, 83px);
}

.hero__line--gpt{
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__sub{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-faint);
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__line--claude{
  background: linear-gradient(
    100deg,
    var(--gold) 0%,
    var(--gold) 40%,
    #fff6df 50%,
    var(--gold) 60%,
    var(--gold) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: claude-shimmer 3.5s ease-in-out infinite;
}

@keyframes claude-shimmer{
  0%   { background-position: 160% 0; }
  50%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce){
  .hero__line--claude{ animation: none; background-position: 0 0; }
}
.hero__line--grok{ color: var(--grey-grok); }

.hero__desc{
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 0;
}

.hero__actions{
  margin-top: 26px;
}

.btn--ghost{
  display: block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  background: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 20px 28px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.btn--ghost:hover{
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

/* ---------- right column ---------- */
.panel-col{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card{
  background: rgba(14, 14, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 40px -10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- rules trigger (opens modal) ---------- */
.rules-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  font-family: var(--font);
  text-align: left;
  background: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .15s ease, transform .15s ease;
}
.rules-trigger:hover{
  border-color: rgba(226,169,58,.4);
  transform: translateY(-1px);
}

.rules__icon{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(226,169,58,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: 0 0 auto;
}

.rules__icon--plain{
  background: none;
  border-radius: 0;
  width: 30px;
  height: auto;
  object-fit: contain;
}

.rules__text{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rules__title{ font-size: 15px; font-weight: 700; }
.rules__subtitle{ font-size: 12.5px; color: var(--text-faint); font-weight: 500; }

.rules__chevron{
  color: var(--text-faint);
  font-size: 22px;
  flex: 0 0 auto;
}

.rules__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}

.rules__list li{
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.bullet{ flex: 0 0 auto; margin-top: 1px; font-size: 13px; }

.rules__list strong{ color: var(--text); font-weight: 700; }
.rules__list strong.warn{ color: var(--danger); }

/* ---------- rules modal ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 2, 2, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-overlay[hidden]{ display: none; }

body.modal-open{ overflow: hidden; }

.modal{
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(20, 20, 20, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 12px 40px -10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 30px 32px;
  animation: modal-in .2s ease;
}

@keyframes modal-in{
  from{ opacity: 0; transform: translateY(8px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close{
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover{ color: var(--text); border-color: var(--gold-dark); }

.modal__head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-right: 30px;
}

.modal__title{
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal__subtitle{
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 500;
}

.modal__section{ margin-bottom: 22px; }
.modal__section:last-of-type{ margin-bottom: 26px; }

.modal__section-title{
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}

.modal__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.modal__list li{
  padding-left: 18px;
  position: relative;
}
.modal__list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 16px;
  color: rgba(243, 201, 105, 0.55);
}

.modal__text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.modal__text strong{ color: var(--gold); font-weight: 700; }

.modal__cta{
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 15px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.modal__cta:hover{
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-dark);
}

/* ---------- FAQ static list ---------- */
.faq{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

.faq__item{
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}
.faq__item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.faq__q{
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.faq__a{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce){
  .modal{ animation: none; }
}


/* ---------- activation card ---------- */
/* ---------- eyebrow ---------- */
.eyebrow{
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--center{ text-align: center; }

.activation__subtitle{
  margin: 10px 0 24px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 600;
  text-align: center;
}

/* steps */
.steps{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.step{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
}

.step__num{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-faint);
}

.step--active .step__num{
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: #1a1206;
  border-color: transparent;
}

.step--done .step__num{
  background: rgba(99, 153, 34, 0.18);
  color: #97c459;
  border-color: rgba(99, 153, 34, 0.4);
}

.step__label{
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
}
.step--active .step__label{ color: var(--gold); }
.step--done .step__label{ color: #97c459; }

.step__sep{
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 6px;
  transform: translateY(-14px);
}

@media (max-width: 480px){
  .step__sep{ width: 28px; }
}

/* ---------- activation card ---------- */
.activation__title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.key-input{
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 15px 18px;
  margin-bottom: 18px;
  transition: border-color .15s ease;
}
.key-input::placeholder{ color: var(--text-faint); }
.key-input:focus{
  outline: none;
  border-color: var(--gold-dark);
}

/* ---------- key status indicator ---------- */
.key-status{
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin: -8px 0 14px;
  padding: 2px 2px;
}
.key-status.show{ display: flex; }
.key-status__dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--text-faint);
}
.key-status.ok{ color: #97c459; }
.key-status.ok .key-status__dot{ background: #97c459; }
.key-status.fail{ color: var(--danger); }
.key-status.fail .key-status__dot{ background: var(--danger); }

.key-input.error{ border-color: var(--danger) !important; }
.key-input.success{ border-color: #639922 !important; }

.spinner{
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  margin-right: 6px;
  animation: spin .7s linear infinite;
  vertical-align: -2px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn{
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 26px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--gold{
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: #1a1206;
  box-shadow: 0 8px 22px -8px rgba(226,169,58,.5);
}
.btn--gold:hover{ box-shadow: 0 10px 26px -6px rgba(226,169,58,.65); }

.btn--full{ width: 100%; }

.btn--shimmer{
  position: relative;
  overflow: hidden;
}

.btn__label{
  position: relative;
  z-index: 1;
}

.btn__shimmer{
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer-sweep{
  0%   { left: -60%; }
  35%  { left: 120%; }
  100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce){
  .btn__shimmer{ animation: none; display: none; }
}

/* ---------- bottom row: buy + telegram ---------- */
.row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 640px){
  .row-2{ grid-template-columns: 1fr; }
}

.buy-card__head,
.tg-card__head{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.buy-card__icon,
.tg-card__icon{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: 0 0 auto;
}
.buy-card__icon{ background: rgba(226,169,58,.12); }
.tg-card__icon{ background: rgba(47,143,224,.15); }

.buy-card__icon--plain,
.tg-card__icon--plain{
  background: none;
  border-radius: 0;
  width: 30px;
  height: auto;
  object-fit: contain;
}

.tg-card__icon--plain{
  width: 25px;
}

.buy-card__title,
.tg-card__title{
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.buy-card__subtitle,
.tg-card__subtitle{
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  line-height: 1.4;
}

.buy-card,
.tg-card{
  display: flex;
  flex-direction: column;
}

.buy-card,
.tg-card{
  background: none;
}

.activation{
  background: none;
}

.buy-card__head,
.tg-card__head{
  flex: 1 0 auto;
}

.market-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  transition: opacity .15s ease;
}
.market-btn:hover{ opacity: .88; }

.market-btn__badge{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.tg-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--tg-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  transition: background .15s ease;
}
.tg-btn:hover{ background: var(--tg-blue-dark); }

.link-arrow{
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  text-decoration: none;
}
.link-arrow:hover{ color: var(--text-dim); }

/* ---------- footer strip ---------- */
.strip{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--panel-border);
  margin-top: 18px;
  padding: 30px 0 30px 6px;
}

@media (max-width: 760px){
  .strip{ grid-template-columns: 1fr 1fr; gap: 22px 20px; }
}
@media (max-width: 460px){
  .strip{ grid-template-columns: 1fr; }
}

.strip__item{
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip__icon{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(226,169,58,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gold);
}

.strip__icon--plain{
  background: none;
  border-radius: 0;
  width: 26px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
}

.strip__icon--truck{
  height: 27px;
  width: 34px;
}

.strip__item span:not(.strip__icon){
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.strip__item strong{ font-size: 13.5px; font-weight: 700; }
.strip__item small{ font-size: 12px; color: var(--text-faint); font-weight: 500; }

/* ---------- focus visibility (a11y) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ---------- activation modal ---------- */
.modal--activation{
  max-width: 640px;
}

.modal--activation .steps{
  margin-top: 18px;
  margin-bottom: 22px;
}

.act-test-switch{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 18px 0;
  padding: 10px;
  border: 1px dashed rgba(226,169,58,.35);
  border-radius: var(--radius-md);
}

.act-test-btn{
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  background: rgba(226,169,58,.1);
  color: var(--gold);
  border: 1px solid rgba(226,169,58,.3);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.act-test-btn:hover{ background: rgba(226,169,58,.18); }

.act-screen{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.act-product-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.act-product-select{
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.act-product-select__icon{ font-size: 15px; flex: 0 0 auto; }
.act-product-select__label{ font-size: 13px; color: var(--text-dim); }
.act-product-select__chevron{ margin-left: auto; color: var(--text-faint); font-size: 16px; }

.act-status-panel{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.act-status-panel__title{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.act-status-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.act-status-tile{
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 8px 10px;
}

.act-status-tile__icon{ font-size: 14px; }
.act-status-tile__name{ font-size: 12px; font-weight: 700; color: var(--text); }

.act-status-tile__state{
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #97c459;
}

.act-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #97c459;
  flex: 0 0 auto;
}

.act-instruction__list--icons{
  list-style: none;
  padding-left: 0;
}
.act-instruction__list--icons li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.act-step-icon{
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: -1px;
}

.act-code--copy{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.act-textarea-wrap{
  position: relative;
}

.act-textarea-expand{
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 13px;
  color: var(--text-faint);
  pointer-events: none;
}

.act-btn-icon{ font-size: 14px; margin-right: 4px; }


.act-badge{
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.act-badge--gpt{ background: rgba(226,169,58,.12); color: var(--gold); border-color: rgba(226,169,58,.4); }
.act-badge--claude{ background: rgba(168,85,247,.12); color: #c084fc; border-color: rgba(168,85,247,.4); }
.act-badge--grok{ background: rgba(255,255,255,.06); color: #e0e0e0; border-color: rgba(255,255,255,.2); }

.act-instruction{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.act-instruction__title{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.act-instruction__list{
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.act-instruction__list strong{ color: var(--text); }

.act-link{ color: var(--gold-light); text-decoration: none; }
.act-link:hover{ text-decoration: underline; }

.act-code{
  display: inline-block;
  font-family: monospace;
  font-size: 11.5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text-dim);
}

.act-textarea{
  resize: vertical;
  font-family: var(--font);
  text-align: left;
  letter-spacing: normal;
}

.act-confirm-box{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.act-confirm-icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(226,169,58,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}

.act-confirm-caption{
  font-size: 12px;
  color: var(--text-faint);
}

.act-confirm-value{
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.act-confirm-value--mono{
  font-family: monospace;
  font-size: 13px;
  font-weight: 500;
}

.act-confirm-note{
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.act-confirm-note strong{ color: var(--text); }

.act-progress-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 0;
}

.act-progress-icon{ font-size: 32px; }

.act-progress-text{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.act-progress-bar{
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.act-progress-fill{
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 999px;
}

.act-progress-id{
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: monospace;
}

.act-result-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto;
}
.act-result-icon--success{ background: rgba(99,153,34,.16); color: #97c459; }
.act-result-icon--fail{ background: rgba(226,75,75,.16); color: var(--danger); }

.act-result-title{
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.act-result-msg{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
}
.act-result-msg strong{ color: var(--gold); }

.act-feedback-box{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
}

.act-feedback-box__icon{
  flex: 0 0 auto;
  font-size: 15px;
  margin-top: 1px;
}

.act-feedback-box__text{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.act-feedback-box__text strong{ color: var(--text); }

.act-btn-row{
  display: flex;
  gap: 10px;
}

.btn--ghost-sm{
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: background .15s ease;
}
.btn--ghost-sm:hover{ background: rgba(255,255,255,.1); }

/* ---------- support floating button ---------- */
.support-fab{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2f8fe0, #1f6fb8);
  box-shadow: 0 8px 24px -6px rgba(47,143,224,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: support-fab-pulse 2.6s ease-in-out infinite;
}
.support-fab:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px -6px rgba(47,143,224,.7), 0 0 0 1px rgba(255,255,255,.12) inset;
}

.support-fab__icon{
  font-size: 22px;
  color: #fff;
  transform: translateX(-1px);
}

@keyframes support-fab-pulse{
  0%, 100% { box-shadow: 0 8px 24px -6px rgba(47,143,224,.55), 0 0 0 1px rgba(255,255,255,.08) inset; }
  50% { box-shadow: 0 8px 28px -4px rgba(47,143,224,.8), 0 0 0 6px rgba(47,143,224,.12); }
}

@media (max-width: 600px){
  .support-fab{
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
  .support-popup{
    right: 16px;
    bottom: 78px;
    left: 16px;
    width: auto;
  }
}

/* ---------- support popup ---------- */
.support-popup{
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 51;
  width: 280px;
  background: rgba(14, 14, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.6);
  padding: 22px 20px;
  text-align: center;
  animation: support-popup-in .18s ease;
}
.support-popup[hidden]{ display: none; }

@keyframes support-popup-in{
  from{ opacity: 0; transform: translateY(8px) scale(.97); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.support-popup__close{
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.support-popup__close:hover{ color: var(--text); border-color: rgba(255,255,255,.3); }

.support-popup__icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #2f8fe0, #1f6fb8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.support-popup__title{
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.support-popup__text{
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.support-popup__btn{
  display: block;
  background: linear-gradient(135deg, #2f8fe0, #1f6fb8);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--radius-md);
  padding: 12px;
  transition: opacity .15s ease;
}
.support-popup__btn:hover{ opacity: .9; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
  .support-fab{ animation: none; }
}

.hero__line--perplexity{
  background: linear-gradient(
    100deg,
    var(--gold) 0%,
    var(--gold) 40%,
    #fff6df 50%,
    var(--gold) 60%,
    var(--gold) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: claude-shimmer 3.5s ease-in-out infinite;
}

.hero__line--gemini{
  color: var(--grey-grok);
}

/* Исправление золотого перелива Perplexity на мобильных */
.hero__line--perplexity{
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: reduce){
  .hero__line--perplexity{
    animation: none;
    background-position: 0 0;
    -webkit-text-fill-color: transparent;
  }
}

/* Золотой цвет вместо белого при отключённой анимации на телефоне */
@media (prefers-reduced-motion: reduce){
  .hero__line--claude,
  .hero__line--perplexity{
    animation: none !important;
    background: none !important;
    color: var(--gold) !important;
    -webkit-text-fill-color: var(--gold) !important;
  }
}

.activation-ticker{
  width:100%;
  overflow:hidden;
  margin:10px 0 20px;
  mask-image:linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image:linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.activation-ticker__track{
  display:flex;
  align-items:center;
  width:max-content;
  gap:10px;
  white-space:nowrap;
  color:var(--text-faint);
  font-size:13px;
  font-weight:600;
  animation:activation-ticker-scroll 24s linear infinite;
}

.activation-ticker__track b{
  color:var(--gold);
  font-weight:700;
}

@keyframes activation-ticker-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.activation-ticker:hover .activation-ticker__track{
  animation-play-state:paused;
}

@media (max-width:700px){
  .activation-ticker__track{
    font-size:12px;
    animation-duration:20s;
  }
}

@media (prefers-reduced-motion:reduce){
  .activation-ticker__track{
    animation:none;
  }
}

/* Не даём бегущей строке растягивать правую колонку */
.panel-col,
.panel-col > *,
.activation,
.activation-ticker{
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.activation-ticker{
  width: 100%;
  overflow: hidden;
  position: relative;
}

.activation-ticker__track{
  width: max-content;
  max-width: none;
}




/* Кнопки GPT */
#step2gpt .act-btn-row{
    display:flex;
    gap:12px;
}

#step2gpt .btn--ghost-sm{
    flex:0 0 180px;
    height:52px;
    font-size:16px;
}

#step2gpt .btn--gold,
#step2gpt .btn{
    flex:1;
    height:52px;
    font-size:16px;
}

/* Кнопки GPT на мобильных */
@media (max-width: 600px){
  #step2gpt .act-btn-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  #step2gpt .btn--ghost-sm,
  #step2gpt #btnSubmitGPT{
    width: 100% !important;
    min-width: 0 !important;
    height: 54px;
    padding: 10px 8px;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
  }

  #step2gpt .btn--ghost-sm{
    flex: none;
  }
}


/* Copyable instruction links */
.instruction-copy-link{
  display:inline;
  padding:0;
  margin:0;
  border:none;
  background:none;
  color:#d8d8d8;
  font:inherit;
  cursor:pointer;
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,.35);
  transition:color .15s ease;
}

.instruction-copy-link:hover,
.instruction-copy-link.copied{
  color:#f0c14b;
}

.instruction-copy-link__icon{
  display:none;
}

.copy-instruction-toast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:9999;
  transform:translate(-50%, 20px);
  padding:11px 18px;
  border:1px solid rgba(224,171,49,.45);
  border-radius:10px;
  background:rgba(18,18,18,.96);
  color:#f1c451;
  font-size:14px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:0 10px 35px rgba(0,0,0,.45);
}

.copy-instruction-toast.show{
  opacity:1;
  transform:translate(-50%, 0);
}

@media (max-width:600px){
  .instruction-copy-link{
    font-size:14px;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:left;
  }

  .copy-instruction-toast{
    bottom:20px;
    max-width:calc(100vw - 32px);
    white-space:nowrap;
  }
}

@media (max-width:600px){
  .act-instruction__title{
    text-align:center !important;
  }

  .act-instruction__list li > span:last-child{
    min-width:0;
    text-align:left;
  }

  .instruction-copy-link{
    display:block;
    width:max-content;
    max-width:100%;
    margin:7px 0 0 0;
    text-align:left;
    white-space:nowrap;
    font-size:14px;
  }
}


/* Аккуратное расположение ссылок в инструкции */
.act-step-copy-content{
  display:inline;
  min-width:0;
}

.act-step-copy-text{
  display:inline;
}

@media (max-width:600px){
  #step2gpt .act-instruction__title{
    text-align:center !important;
  }

  #step2gpt .act-instruction__list li{
    align-items:flex-start;
    text-align:left;
  }

  #step2gpt .act-step-copy-content{
    display:block;
    min-width:0;
    flex:1;
    text-align:left;
  }

  #step2gpt .act-step-copy-text{
    display:block;
    text-align:left;
  }

  #step2gpt .instruction-copy-link{
    display:block;
    width:auto;
    max-width:100%;
    margin:3px 0 0;
    padding:0;
    text-align:left;
    white-space:nowrap;
    font-size:14px;
    line-height:1.25;
  }
}

@media (max-width:600px){

  #step2gpt .act-step-copy-content{
    display:block;
    flex:1;
  }

  #step2gpt .act-step-copy-text{
    display:block;
    margin-bottom:4px;
  }

  #step2gpt .instruction-copy-link{
    display:block;
    margin-left:0;
    margin-top:2px;
    width:auto;
    max-width:100%;
    text-align:left;
    white-space:nowrap;
    text-decoration:underline;
    overflow:hidden;
    text-overflow:ellipsis;
  }

}
