.okkwork-trial-overlay {
  position: fixed;
  inset: 0;
  z-index: 200500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 28, 48, 0.52);
  backdrop-filter: blur(4px);
}

.okkwork-trial-overlay--blocking {
  z-index: 200600;
}

.okkwork-trial-dialog {
  width: min(520px, 100%);
  padding: 28px 30px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 40, 74, 0.22);
  box-sizing: border-box;
}

.okkwork-trial-dialog__title {
  margin: 0 0 12px;
  font: 600 22px/1.25 "Rubik", sans-serif;
  color: #0658a2;
}

.okkwork-trial-dialog__text {
  margin: 0 0 22px;
  font: 400 15px/1.5 "Rubik", sans-serif;
  color: #2f4052;
}

.okkwork-trial-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.okkwork-trial-dialog__btn {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 14px/1.2 "Rubik", sans-serif;
  cursor: pointer;
}

.okkwork-trial-dialog__btn--primary {
  background: linear-gradient(180deg, #0a6bc0 0%, #0658a2 100%);
  color: #fff;
}

.okkwork-trial-dialog__btn--ghost {
  background: #eef4fa;
  color: #0658a2;
  border-color: #c5d9eb;
}

/* Стартовый welcome — яркий экран 7 дней */
.okkwork-trial-overlay--start {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(99, 102, 241, 0.22) 0%, transparent 50%),
    rgba(8, 22, 42, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.okkwork-trial-start {
  position: relative;
  width: min(480px, 100%);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 28px 80px rgba(6, 40, 74, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  box-sizing: border-box;
  animation: okkwork-trial-start-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes okkwork-trial-start-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.okkwork-trial-start__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.okkwork-trial-start__hero {
  position: relative;
  z-index: 1;
  padding: 28px 28px 22px;
  text-align: center;
  background: linear-gradient(145deg, #0b5cad 0%, #0678c8 38%, #0ea5e9 72%, #38bdf8 100%);
  color: #fff;
}

.okkwork-trial-start__hero::before,
.okkwork-trial-start__hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
}

.okkwork-trial-start__hero::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
}

.okkwork-trial-start__hero::after {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: -20px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.9) 0%, transparent 70%);
}

.okkwork-trial-start__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  font: 700 12px/1.2 "Rubik", sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.okkwork-trial-start__days-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 100%);
  box-shadow:
    0 12px 32px rgba(6, 56, 110, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.25);
  animation: okkwork-trial-ring-pulse 2.8s ease-in-out infinite;
}

@keyframes okkwork-trial-ring-pulse {
  0%,
  100% {
    box-shadow:
      0 12px 32px rgba(6, 56, 110, 0.28),
      0 0 0 6px rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 16px 40px rgba(6, 56, 110, 0.35),
      0 0 0 10px rgba(255, 255, 255, 0.18);
  }
}

.okkwork-trial-start__days-num {
  font: 800 52px/1 "Rubik", sans-serif;
  background: linear-gradient(180deg, #0658a2 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}

.okkwork-trial-start__days-label {
  margin-top: 2px;
  font: 700 11px/1.25 "Rubik", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0658a2;
  opacity: 0.85;
}

.okkwork-trial-start__title {
  position: relative;
  margin: 0 0 8px;
  font: 800 24px/1.2 "Rubik", sans-serif;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 40, 80, 0.25);
}

.okkwork-trial-start__until {
  position: relative;
  margin: 0;
  font: 500 14px/1.4 "Rubik", sans-serif;
  color: rgba(255, 255, 255, 0.92);
}

.okkwork-trial-start__until strong {
  font-weight: 800;
  color: #fff;
}

.okkwork-trial-start__body {
  position: relative;
  z-index: 1;
  padding: 22px 26px 26px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.okkwork-trial-start__lead {
  margin: 0 0 16px;
  font: 400 15px/1.55 "Rubik", sans-serif;
  color: #334155;
}

.okkwork-trial-start__lead strong {
  color: #0658a2;
  font-weight: 700;
}

.okkwork-trial-start__perks {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.okkwork-trial-start__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eaf4ff 0%, #f0f9ff 100%);
  border: 1px solid rgba(6, 88, 162, 0.1);
  font: 600 13px/1.35 "Rubik", sans-serif;
  color: #1e3a5f;
}

.okkwork-trial-start__perks li::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.okkwork-trial-start__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.okkwork-trial-start__btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 700 14px/1.2 "Rubik", sans-serif;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.okkwork-trial-start__btn:hover {
  transform: translateY(-1px);
}

.okkwork-trial-start__btn:active {
  transform: translateY(0);
}

.okkwork-trial-start__btn--primary {
  background: linear-gradient(180deg, #0a74d4 0%, #0658a2 55%, #054a8a 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 88, 162, 0.38);
}

.okkwork-trial-start__btn--primary:hover {
  box-shadow: 0 12px 28px rgba(6, 88, 162, 0.45);
}

.okkwork-trial-start__btn--ghost {
  background: #fff;
  color: #0658a2;
  border-color: #b8d4ee;
  box-shadow: 0 2px 8px rgba(6, 88, 162, 0.08);
}

.okkwork-trial-start__btn--ghost:hover {
  background: #f0f7ff;
  border-color: #0658a2;
}

body.okkwork-trial-blocked {
  overflow: hidden;
}

/* 05 · Heart Warm — welcome back после отказа */
.okkwork-trial-overlay--welcome-back {
  z-index: 200650;
}

.okkwork-trial-welcome-back {
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid rgba(6, 88, 162, 0.12);
  box-shadow: 0 16px 48px rgba(6, 88, 162, 0.18);
  box-sizing: border-box;
}

.okkwork-trial-welcome-back__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fce7f3;
  color: #9d174d;
  font: 700 11px/1.2 "Rubik", sans-serif;
}

.okkwork-trial-welcome-back__emoji {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 1;
}

.okkwork-trial-welcome-back__title {
  margin: 0 0 10px;
  font: 800 22px/1.25 "Rubik", sans-serif;
  color: #0658a2;
}

.okkwork-trial-welcome-back__text {
  margin: 0 0 18px;
  font: 400 14px/1.55 "Rubik", sans-serif;
  color: #515f6c;
}

.okkwork-trial-welcome-back__btn {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: #0658a2;
  color: #fff;
  font: 700 14px/1.2 "Rubik", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.okkwork-trial-welcome-back__btn:hover {
  background: #054a8a;
}

.okkwork-trial-welcome-back__note {
  margin: 12px 0 0;
  font: 400 11px/1.4 "Rubik", sans-serif;
  color: #515f6c;
  opacity: 0.75;
}

/* 09 · Corner — последний день trial */
.okkwork-trial-overlay--last-day {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  background: rgba(15, 23, 42, 0.22);
  pointer-events: none;
}

.okkwork-trial-last-day {
  pointer-events: auto;
  width: min(380px, 100%);
  padding: 18px 18px 16px;
  border-radius: 14px;
  border-left: 4px solid #e11d48;
  background: #fff;
  box-shadow: 0 14px 40px rgba(6, 88, 162, 0.2);
  box-sizing: border-box;
}

.okkwork-trial-last-day__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(225, 29, 72, 0.22);
  background: #fef2f2;
  color: #be123c;
  font: 800 10px/1.2 "Rubik", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.okkwork-trial-last-day__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
  animation: okkwork-trial-pulse 1.4s ease-in-out infinite;
}

@keyframes okkwork-trial-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.okkwork-trial-last-day__title {
  margin: 0 0 8px;
  font: 800 16px/1.25 "Rubik", sans-serif;
  color: #0658a2;
}

.okkwork-trial-last-day__lead {
  margin: 0 0 14px;
  font: 400 12px/1.5 "Rubik", sans-serif;
  color: #515f6c;
}

.okkwork-trial-last-day__lead b {
  color: #0658a2;
  font-weight: 700;
}

.okkwork-trial-last-day__countdown {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.okkwork-trial-last-day__box {
  flex: 1;
  min-width: 0;
  padding: 11px 10px;
  border-radius: 12px;
  text-align: center;
  background: #eaf2fa;
  border: 1px solid rgba(6, 88, 162, 0.12);
}

.okkwork-trial-last-day__box--urgent {
  background: #fff4e6;
  border-color: rgba(243, 145, 8, 0.35);
}

.okkwork-trial-last-day__box--last {
  background: #fef2f2;
  border-color: rgba(225, 29, 72, 0.28);
}

.okkwork-trial-last-day__box-label {
  margin-bottom: 5px;
  font: 700 9px/1.2 "Rubik", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #515f6c;
  opacity: 0.85;
}

.okkwork-trial-last-day__box-value {
  font: 800 17px/1.15 "Rubik", sans-serif;
  color: #0658a2;
}

.okkwork-trial-last-day__box-value--warn {
  color: #c2410c;
}

.okkwork-trial-last-day__box-value--last {
  color: #be123c;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.okkwork-trial-last-day__box-sub {
  margin-top: 4px;
  font: 400 10px/1.3 "Rubik", sans-serif;
  color: #515f6c;
}

.okkwork-trial-last-day__note {
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(234, 242, 250, 0.75);
  font: 400 11px/1.45 "Rubik", sans-serif;
  color: #515f6c;
}

.okkwork-trial-last-day__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.okkwork-trial-last-day__btn {
  width: 100%;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 10px;
  font: 700 13px/1.2 "Rubik", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.okkwork-trial-last-day__btn--primary {
  border: none;
  background: #0658a2;
  color: #fff;
}

.okkwork-trial-last-day__btn--primary:hover {
  background: #054a8a;
}

.okkwork-trial-last-day__btn--ghost {
  border: 1px solid rgba(81, 95, 108, 0.28);
  background: transparent;
  color: #515f6c;
}

.okkwork-trial-last-day__btn--ghost:hover {
  background: rgba(81, 95, 108, 0.06);
  border-color: rgba(81, 95, 108, 0.4);
}
