/* Shared promotion styles */

:root {
  --skj-promo-primary: #0b9a92;
  --skj-promo-primary-hover: #087c76;
  --skj-promo-transition: 0.22s ease;
}

.skjee-promo,
.skjee-promo *,
.skjee-promo *::before,
.skjee-promo *::after {
  box-sizing: border-box;
}

.skjee-promo {
  width: 100%;
  min-width: 0;
  font-family: inherit;
}

.skjee-promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 0;
  border-radius: 13px;
  background: var(--skj-promo-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 154, 146, 0.22);
  transition:
    background-color var(--skj-promo-transition),
    border-color var(--skj-promo-transition),
    color var(--skj-promo-transition),
    transform var(--skj-promo-transition),
    box-shadow var(--skj-promo-transition);
}

.skjee-promo-button:hover {
  background: var(--skj-promo-primary-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

.skjee-promo-button:active {
  transform: translateY(0);
}

.skjee-promo-button:focus {
  outline: none;
}

.skjee-promo-button:focus-visible {
  outline: 3px solid rgba(11, 154, 146, 0.3);
  outline-offset: 3px;
}

/* Vidyom sidebar ad */

.skjee-promo-side {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.skjee-vidyom-side-card {
  position: relative;
  isolation: isolate;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
  height: 100% !important;
  min-height: 0 !important;
  padding: 28px 19px 19px !important;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(255, 193, 7, 0.26),
      transparent 31%
    ),
    radial-gradient(
      circle at 0 100%,
      rgba(0, 176, 240, 0.16),
      transparent 34%
    ),
    linear-gradient(
      165deg,
      #eaf9ff 0%,
      #ffffff 50%,
      #fff7dc 100%
    );
  text-align: center;
  overflow: hidden;
}

.skjee-vidyom-side-card::before,
.skjee-vidyom-side-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.skjee-vidyom-side-card::before {
  top: -65px;
  right: -65px;
  width: 150px;
  height: 150px;
  background: rgba(255, 193, 7, 0.11);
}

.skjee-vidyom-side-card::after {
  bottom: -75px;
  left: -75px;
  width: 175px;
  height: 175px;
  background: rgba(0, 176, 240, 0.09);
}

.skjee-vidyom-ad-label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  min-height: 18px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.skjee-vidyom-side-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.skjee-vidyom-recommend-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 36px);
  margin: 5px auto 22px;
  padding: 7px 14px;
  border: 2px solid #5db9d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: #08698e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(8, 105, 142, 0.1);
}

.skjee-vidyom-side-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 122px;
  margin: 0 auto 16px;
  padding: 8px;
  border: 1px solid rgba(20, 48, 68, 0.14);
  border-radius: 29px;
  background: #ffffff;
  box-shadow:
    0 14px 28px rgba(20, 48, 68, 0.18),
    0 0 0 5px rgba(255, 255, 255, 0.42);
}

.skjee-vidyom-side-logo img {
  display: block;
  width: 104px;
  height: 104px;
  max-width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.skjee-vidyom-side-eyebrow {
  width: 100%;
  margin: 0 0 6px;
  color: #087aa8;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.075em;
  text-align: center;
  text-transform: uppercase;
}

.skjee-vidyom-side-title {
  width: 100%;
  margin: 0;
  color: #143044;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
}

.skjee-vidyom-side-subtitle {
  width: 100%;
  margin: 7px 0 16px;
  color: #416371;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.skjee-vidyom-benefits {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid rgba(111, 185, 210, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(20, 48, 68, 0.07);
}

.skjee-vidyom-benefit {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 8px;
  color: #294b5a;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.skjee-vidyom-benefit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5f8ef;
  color: #14834c;
  font-size: 13px;
  font-weight: 900;
}

.skjee-vidyom-benefit strong {
  min-width: 0;
  color: #294b5a;
  font-weight: 800;
  overflow-wrap: break-word;
}

.skjee-vidyom-side-description {
  width: 100%;
  margin: 0;
  color: #526c78;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: break-word;
}

.skjee-vidyom-trust-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff1d2;
  color: #8c5b00;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.025em;
  text-align: center;
}

.skjee-vidyom-side-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  min-width: 0;
  gap: 10px;
  margin-top: auto !important;
  padding-top: 24px;
}

.skjee-vidyom-side-actions .skjee-promo-button {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  width: 100% !important;
  min-width: 0;
  min-height: 54px;
  margin: 0 !important;
  padding: 9px 13px !important;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  overflow: hidden;
}

.skjee-vidyom-side-actions .skjee-promo-button small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.82;
}

.skjee-vidyom-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
}

.skjee-vidyom-download-button {
  border: 2px solid #15384e !important;
  background: linear-gradient(135deg, #15384e, #087ca7) !important;
  color: #ffffff !important;
  box-shadow: 0 9px 20px rgba(8, 91, 127, 0.25) !important;
}

.skjee-vidyom-download-button .skjee-vidyom-button-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.skjee-vidyom-download-button:hover {
  border-color: #0d293a !important;
  background: linear-gradient(135deg, #0d293a, #056687) !important;
  color: #ffffff !important;
}

.skjee-vidyom-rate-button {
  border: 2px solid #dc3977 !important;
  background: linear-gradient(135deg, #ffffff, #fff0f6) !important;
  color: #b71f59 !important;
  box-shadow: 0 8px 18px rgba(220, 57, 119, 0.15) !important;
}

.skjee-vidyom-rate-button .skjee-vidyom-button-icon {
  background: #ffe1ed;
  color: #c32460;
}

.skjee-vidyom-rate-button:hover {
  border-color: #b71f59 !important;
  background: linear-gradient(135deg, #fff3f8, #ffe3ee) !important;
  color: #941643 !important;
}

/* Typing banner */

.skjee-typing-mini-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 180px;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 8% 20%,
      rgba(255, 255, 255, 0.24),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #4338ca 0%,
      #2563eb 52%,
      #0891b2 100%
    );
  color: #ffffff;
  overflow: hidden;
}

.skjee-typing-mini-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70px;
  right: 100px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.skjee-typing-ad-label {
  position: absolute;
  top: 5px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 14px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}

.skjee-typing-mini-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding-top: 2px;
}

.skjee-typing-mini-keyboard {
  display: grid;
  width: 88px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 8px 17px rgba(18, 32, 92, 0.23);
  transform: translateY(-3px) rotate(-2deg);
}

.skjee-typing-mini-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.skjee-typing-mini-row span,
.skjee-typing-mini-space {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 17px;
  border-radius: 4px;
  background: #ffffff;
  color: #243b75;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(19, 38, 95, 0.22);
}

.skjee-typing-mini-row .skjee-typing-active-key {
  background: #facc15;
  color: #443505;
}

.skjee-typing-mini-space {
  width: 68%;
  min-height: 15px;
  margin: 0 auto;
  font-size: 5px;
  letter-spacing: 0.04em;
}

.skjee-typing-mini-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.skjee-typing-mini-title {
  width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skjee-typing-mini-description {
  width: 100%;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skjee-typing-mini-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-top: 10px;
}

.skjee-typing-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 14px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 13px;
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #302109;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 9px 19px rgba(26, 32, 88, 0.26);
  transition:
    transform var(--skj-promo-transition),
    box-shadow var(--skj-promo-transition);
}

.skjee-typing-mini-button:hover {
  color: #302109;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 23px rgba(26, 32, 88, 0.32);
}

.skjee-typing-mini-button:active {
  transform: translateY(0);
}

.skjee-typing-mini-button:focus {
  outline: none;
}

.skjee-typing-mini-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.68);
  outline-offset: 3px;
}

/* Laptop */

@media (max-width: 1199px) {
  .skjee-vidyom-side-card {
    padding: 23px 14px 15px !important;
  }

  .skjee-vidyom-recommend-label {
    margin-bottom: 15px;
    padding: 6px 10px;
    font-size: 9px;
  }

  .skjee-vidyom-side-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 13px;
  }

  .skjee-vidyom-side-logo img {
    width: 84px;
    height: 84px;
  }

  .skjee-vidyom-side-title {
    font-size: 21px;
  }

  .skjee-vidyom-side-subtitle {
    margin-bottom: 13px;
    font-size: 13px;
  }

  .skjee-vidyom-benefits {
    padding: 10px;
  }

  .skjee-vidyom-benefit {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    font-size: 11px;
  }

  .skjee-vidyom-benefit span {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .skjee-vidyom-side-description {
    font-size: 11px;
    line-height: 1.5;
  }

  .skjee-vidyom-side-actions {
    gap: 9px;
    padding-top: 18px;
  }

  .skjee-vidyom-side-actions .skjee-promo-button {
    min-height: 50px;
    font-size: 13px;
  }

  .skjee-typing-mini-banner {
    grid-template-columns: 90px minmax(0, 1fr) 165px;
    gap: 12px;
  }

  .skjee-typing-mini-keyboard {
    width: 80px;
    transform: translateY(-2px) rotate(-2deg);
  }

  .skjee-typing-mini-title {
    font-size: 20px;
  }

  .skjee-typing-mini-description {
    font-size: 11px;
  }
}

/* Tablet */

@media (max-width: 991px) {
  .skjee-typing-mini-banner {
    grid-template-columns: 76px minmax(0, 1fr) 150px;
    gap: 10px;
    padding: 8px 10px;
  }

  .skjee-typing-mini-keyboard {
    width: 68px;
    padding: 6px;
    transform: translateY(-2px) rotate(-2deg);
  }

  .skjee-typing-mini-title {
    font-size: 18px;
  }

  .skjee-typing-mini-description {
    margin-top: 4px;
    font-size: 10px;
  }

  .skjee-typing-mini-action {
    padding-top: 8px;
  }

  .skjee-typing-mini-button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .skjee-typing-mini-banner {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
    padding: 7px 9px;
  }

  .skjee-typing-mini-visual {
    display: none;
  }

  .skjee-typing-mini-title {
    font-size: 15px;
  }

  .skjee-typing-mini-description {
    margin-top: 3px;
    font-size: 8px;
  }

  .skjee-typing-mini-action {
    padding-top: 7px;
  }

  .skjee-typing-mini-button {
    min-height: 42px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .skjee-typing-ad-label {
    top: 4px;
    right: 6px;
    min-width: 20px;
    min-height: 13px;
    padding: 2px 4px;
    font-size: 6px;
  }

  .skjee-vidyom-ad-label {
    top: 8px;
    right: 8px;
    min-width: 24px;
    min-height: 16px;
    padding: 2px 6px;
    font-size: 8px;
  }
}

/* Small mobile */

@media (max-width: 420px) {
  .skjee-typing-mini-banner {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 6px;
    padding: 6px 7px;
  }

  .skjee-typing-mini-title {
    font-size: 13px;
  }

  .skjee-typing-mini-description {
    font-size: 7px;
  }

  .skjee-typing-mini-button {
    min-height: 40px;
    font-size: 10px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .skjee-promo-button,
  .skjee-typing-mini-button {
    transition: none !important;
  }

  .skjee-promo-button:hover,
  .skjee-typing-mini-button:hover {
    transform: none !important;
  }
}

@media print {
  .skjee-promo {
    display: none !important;
  }
}