* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
.ka-site-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 0, 51, 0.16), transparent 31%),
    radial-gradient(circle at 80% 16%, rgba(255, 0, 51, 0.10), transparent 28%),
    linear-gradient(180deg, #050507 0%, #090009 52%, #050507 100%);
  color: #f6f6f6;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.ka-main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 7, 0.82);
  border-bottom: 1px solid rgba(255, 0, 51, 0.42);
  backdrop-filter: blur(14px);
}

.ka-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ff0033;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 5px;
  user-select: none;
  cursor: pointer;
}

.ka-brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 0, 51, 0.75);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ff0033;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.24);
}

.ka-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ka-nav-links button,
.ka-nav-login {
  border: 0;
  background: transparent;
  color: #ff4b6b;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 12px 14px;
  border-radius: 999px;
}

.ka-nav-links button:hover,
.ka-nav-login:hover {
  background: rgba(255, 0, 51, 0.10);
}

.ka-nav-login {
  border: 1px solid rgba(255, 0, 51, 0.38);
  background: rgba(255, 0, 51, 0.08);
}

.ka-landing,
.ka-content-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 70px;
}

.ka-landing-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.ka-eyebrow {
  color: #ff4b6b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ka-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -2px;
  color: #fff;
}

.ka-hero-copy h1 span {
  display: block;
  color: #ff4b6b;
  text-shadow: 0 0 22px rgba(255, 0, 51, 0.25);
}

.ka-hero-text {
  max-width: 720px;
  margin: 26px 0 0;
  color: #d47d8d;
  font-size: 19px;
  line-height: 1.65;
}

.ka-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ka-primary-cta,
.ka-secondary-cta {
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  min-height: 54px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ka-primary-cta {
  background: #ff0033;
  color: #050507;
  box-shadow: 0 0 22px rgba(255, 0, 51, 0.34);
}

.ka-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 0, 51, 0.46);
}

.ka-secondary-cta {
  color: #ff4b6b;
  border: 1px solid rgba(255, 0, 51, 0.40);
  background: rgba(255, 0, 51, 0.06);
}

.ka-secondary-cta:hover {
  background: rgba(255, 0, 51, 0.12);
}

.wide {
  width: 100%;
}

.ka-session-chip {
  display: inline-flex;
  margin-top: 22px;
  color: #ff9aae;
  border: 1px solid rgba(255, 0, 51, 0.28);
  background: rgba(255, 0, 51, 0.05);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.ka-session-chip.active {
  color: #75ff9f;
  border-color: rgba(117, 255, 159, 0.35);
  background: rgba(117, 255, 159, 0.07);
}

.ka-hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.ka-orbit {
  position: absolute;
  border: 1px solid rgba(255, 0, 51, 0.22);
  border-radius: 999px;
  box-shadow: 0 0 44px rgba(255, 0, 51, 0.10);
}

.ka-orbit-one {
  width: 440px;
  height: 440px;
}

.ka-orbit-two {
  width: 310px;
  height: 310px;
  transform: rotate(18deg);
}

.ka-phone-card {
  position: relative;
  width: 280px;
  min-height: 420px;
  border: 1px solid rgba(255, 0, 51, 0.50);
  background:
    linear-gradient(180deg, rgba(255, 0, 51, 0.12), transparent 48%),
    #0b0c10;
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 0 42px rgba(255, 0, 51, 0.22);
}

.ka-phone-top {
  display: flex;
  gap: 8px;
}

.ka-phone-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff0033;
}

.ka-phone-logo {
  width: 98px;
  height: 98px;
  margin: 54px auto 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ff0033;
  border-radius: 28px;
  color: #ff0033;
  font-size: 30px;
  font-weight: 900;
}

.ka-phone-lines {
  display: grid;
  gap: 12px;
}

.ka-phone-lines div {
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 0, 51, 0.65), rgba(255, 0, 51, 0.05));
}

.ka-phone-lines div:nth-child(2) {
  width: 78%;
}

.ka-phone-lines div:nth-child(3) {
  width: 54%;
}

.ka-phone-code {
  margin-top: 34px;
  border: 1px solid rgba(255, 0, 51, 0.34);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  color: #ff8fa0;
}

.ka-phone-code strong {
  color: #fff;
}

.ka-floating-card {
  position: absolute;
  border: 1px solid rgba(255, 0, 51, 0.45);
  background: rgba(8, 8, 12, 0.88);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 0 28px rgba(255, 0, 51, 0.17);
}

.ka-floating-card span {
  display: block;
  color: #ff7d91;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.ka-floating-card strong {
  color: #fff;
  font-size: 24px;
}

.ka-floating-card-left {
  left: 4%;
  bottom: 18%;
}

.ka-floating-card-right {
  right: 0;
  top: 18%;
}

.ka-landing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.ka-landing-stats article,
.ka-flow-card,
.ka-dashboard-preview,
.ka-feature-grid article,
.ka-forum-box,
.ka-post,
.ka-empty-post {
  border: 1px solid rgba(255, 0, 51, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 0, 51, 0.05), transparent),
    #0b0c10;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 0 24px rgba(255, 0, 51, 0.08);
}

.ka-landing-stats span,
.ka-flow-number {
  color: #ff0033;
  font-weight: 900;
}

.ka-landing-stats strong {
  display: block;
  color: #fff;
  font-size: 21px;
  margin: 8px 0;
}

.ka-landing-stats p,
.ka-flow-card p,
.ka-feature-grid p,
.ka-dashboard-preview p,
.ka-section-heading p {
  color: #c87583;
  line-height: 1.6;
}

.ka-flow-section,
.ka-dashboard-preview {
  margin-top: 54px;
}

.ka-section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.ka-section-heading h2,
.ka-dashboard-preview h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.ka-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ka-flow-card.featured {
  border-color: rgba(255, 0, 51, 0.55);
  box-shadow: 0 0 34px rgba(255, 0, 51, 0.16);
}

.ka-flow-card h3,
.ka-feature-grid h3 {
  color: #fff;
  font-size: 25px;
  margin: 10px 0 12px;
}

.ka-flow-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #ff8fa0;
  line-height: 1.8;
  font-weight: 700;
}

.ka-dashboard-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.ka-preview-grid,
.ka-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ka-preview-tile {
  min-height: 130px;
  border: 1px solid rgba(255, 0, 51, 0.26);
  border-radius: 22px;
  background: #111219;
  padding: 18px;
}

.ka-preview-tile span {
  color: #ff8fa0;
}

.ka-preview-tile strong {
  display: block;
  color: #fff;
  font-size: 32px;
  margin-top: 16px;
}

.ka-preview-tile.danger {
  border-color: rgba(255, 0, 51, 0.64);
}

.ka-content-page {
  min-height: calc(100vh - 76px);
}

.ka-feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ka-forum-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: #111219;
  border: 1px solid rgba(255, 0, 51, 0.30);
  border-radius: 18px;
  color: #fff;
  padding: 16px;
  margin-bottom: 14px;
}

.ka-posts {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.post-author {
  color: #ff4b6b;
  font-weight: 900;
  margin-bottom: 8px;
}

.post-date {
  color: #8d5662;
  margin-top: 10px;
  font-size: 13px;
}

/* MODAL */

.ka-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.ka-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px);
}

.ka-modal-card {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid rgba(255, 0, 51, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 0, 51, 0.08), transparent),
    #0b0c10;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 0 44px rgba(255, 0, 51, 0.20);
}

.ka-modal-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 32px;
}

.ka-modal-hint {
  color: #c87583;
  line-height: 1.55;
}

.ka-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #ff4b6b;
  font-size: 34px;
}

.ka-modal-card input,
.ka-password-line input,
#siteOtpInput {
  width: 100%;
  background: #111219;
  border: 1px solid rgba(255, 0, 51, 0.32);
  border-radius: 16px;
  color: #fff;
  padding: 15px;
  margin-top: 12px;
  outline: none;
}

.ka-modal-card input:focus,
#siteOtpInput:focus {
  border-color: #ff0033;
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.12);
}

.ka-password-line {
  position: relative;
}

.ka-password-line button {
  position: absolute;
  right: 10px;
  top: 21px;
  border: 0;
  color: #ff4b6b;
  background: transparent;
  font-weight: 900;
}

.ka-auth-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.ka-auth-split button {
  border: 1px solid rgba(255, 0, 51, 0.28);
  background: rgba(255, 0, 51, 0.05);
  color: #ff4b6b;
  border-radius: 14px;
  padding: 12px 8px;
  font-weight: 900;
}

.ka-qr-frame {
  border: 1px solid rgba(255, 0, 51, 0.34);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  margin: 18px auto;
  width: min(290px, 100%);
}

.ka-qr-frame img {
  display: block;
  width: 100%;
}

.ka-qr-status {
  color: #ff8fa0;
  text-align: center;
  font-weight: 800;
}

.ka-site-otp-box {
  display: none;
  margin-top: 16px;
  border: 1px solid rgba(255, 0, 51, 0.45);
  padding: 14px;
  background: #090909;
  border-radius: 18px;
}

.ka-site-otp-title {
  color: #ff0033;
  font-weight: 900;
  margin-bottom: 8px;
}

.ka-site-otp-hint {
  color: #ff8888;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.45;
}

#siteOtpInput {
  text-align: center;
  letter-spacing: 8px;
  font-size: 24px;
  color: #ff0033;
}

#siteOtpSubmit {
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  background: #ff0033;
  color: #050505;
  border: none;
  border-radius: 14px;
  font-weight: 900;
}

#siteOtpError {
  display: none;
  color: #ff3333;
  margin-top: 10px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .ka-main-nav {
    height: auto;
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .ka-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .ka-landing-hero,
  .ka-landing-stats,
  .ka-flow-grid,
  .ka-dashboard-preview,
  .ka-feature-grid {
    grid-template-columns: 1fr;
  }

  .ka-hero-visual {
    min-height: 430px;
  }

  .ka-orbit-one {
    width: 340px;
    height: 340px;
  }

  .ka-orbit-two {
    width: 240px;
    height: 240px;
  }

  .ka-phone-card {
    width: 240px;
    min-height: 360px;
  }

  .ka-floating-card-left {
    left: 0;
    bottom: 10%;
  }

  .ka-floating-card-right {
    right: 0;
    top: 8%;
  }

  .ka-auth-split {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MAIN UI V2 HOTFIX
   ========================= */

.ka-toast-root {
  position: fixed;
  right: 22px;
  top: 92px;
  z-index: 200;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.ka-toast {
  transform: translateX(24px);
  opacity: 0;
  transition: 0.24s ease;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 0, 51, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 0, 51, 0.13), transparent),
    rgba(8, 8, 12, 0.96);
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 0 28px rgba(255, 0, 51, 0.22);
  backdrop-filter: blur(10px);
}

.ka-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.ka-toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #75ff9f;
  box-shadow: 0 0 14px rgba(117, 255, 159, 0.75);
}

.ka-toast.error .ka-toast-dot {
  background: #ff0033;
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.85);
}

.ka-toast.info .ka-toast-dot {
  background: #8ea2ff;
  box-shadow: 0 0 14px rgba(142, 162, 255, 0.75);
}

.ka-toast-text {
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}

/* Keep QR/TOTP modal usable on small screens */
.ka-modal {
  align-items: center;
  overflow: auto;
}

.ka-modal-card {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff0033 #111219;
}

.ka-modal-card::-webkit-scrollbar {
  width: 8px;
}

.ka-modal-card::-webkit-scrollbar-thumb {
  background: #ff0033;
  border-radius: 999px;
}

.ka-modal-card::-webkit-scrollbar-track {
  background: #111219;
}

#qrLoginBox h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.ka-qr-frame {
  width: min(250px, 100%);
  padding: 10px;
  margin: 14px auto;
}

.ka-site-otp-box {
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 14px;
}

.ka-site-otp-title {
  font-size: 16px;
}

.ka-site-otp-hint {
  font-size: 13px;
}

#siteOtpInput {
  height: 56px;
  font-size: 26px;
  letter-spacing: 10px;
  font-weight: 900;
}

#siteOtpSubmit {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 52px;
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.28);
}

@media (max-width: 620px) {
  .ka-toast-root {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .ka-modal {
    padding: 10px;
    align-items: flex-start;
  }

  .ka-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px;
    border-radius: 22px;
  }

  .ka-modal-card h2 {
    font-size: 30px;
  }

  .ka-qr-frame {
    width: min(220px, 100%);
  }

  #siteOtpInput {
    font-size: 24px;
    letter-spacing: 8px;
  }
}

/* =========================
   KALEN AUTH PROFILE REWORK
   ========================= */

.ka-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 5%, rgba(255, 0, 51, 0.12), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 0, 51, 0.08), transparent 30%),
    #050507;
}

.ka-nav {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.ka-logo {
  font-weight: 900;
  color: #ff0033;
}

.ka-profile-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 56px;
}

.ka-hero {
  border: 1px solid rgba(255, 0, 51, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 0, 51, 0.13), rgba(0, 0, 0, 0.18)),
    #09090d;
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 0 32px rgba(255, 0, 51, 0.12);
}

.ka-kicker,
.ka-card-label {
  color: #ff4b6b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.ka-hero h1 {
  color: #fff;
  font-size: 42px;
  margin: 8px 0 10px;
}

.ka-hero p,
.ka-card p,
.ka-section-line p {
  color: #c87583;
  line-height: 1.6;
  margin: 0;
}

.ka-hero-status {
  border: 1px solid rgba(255, 0, 51, 0.42);
  background: rgba(255, 0, 51, 0.08);
  color: #ff4b6b;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  min-width: 150px;
  text-align: center;
}

.ka-hero-status.ok {
  color: #75ff9f;
  border-color: rgba(117, 255, 159, 0.42);
  background: rgba(117, 255, 159, 0.08);
}

.ka-hero-status.warn {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.08);
}

.ka-tabs {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  border: 1px solid rgba(255, 0, 51, 0.18);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 20px;
  padding: 8px;
}

.ka-tab {
  width: auto;
  flex: 1;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #ff7d91;
  box-shadow: none;
  font-weight: 900;
}

.ka-tab:hover {
  background: rgba(255, 0, 51, 0.08);
  box-shadow: none;
}

.ka-tab.active {
  background: #ff0033;
  color: #050507;
  border-color: #ff0033;
}

.ka-tab-panel {
  display: none;
}

.ka-tab-panel.active {
  display: block;
}

.ka-grid {
  display: grid;
  gap: 18px;
}

.ka-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ka-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ka-card,
.ka-stat-card {
  border: 1px solid rgba(255, 0, 51, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 0, 51, 0.045), transparent),
    #0b0c10;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 0 24px rgba(255, 0, 51, 0.08);
}

.ka-card h2 {
  color: #fff;
  font-size: 26px;
  margin: 8px 0 12px;
}

.ka-card-head,
.ka-section-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.ka-avatar {
  width: 62px;
  height: 62px;
  border: 1px solid #ff0033;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #ff0033;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.25);
}

.ka-info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ka-info-row {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #111219;
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ka-info-row span {
  color: #b66b78;
}

.ka-info-row strong {
  color: #fff;
  text-align: right;
}

.ka-security-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ka-security-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #111219;
  border-radius: 16px;
  padding: 14px;
}

.ka-security-item strong {
  color: #fff;
}

.ka-security-item p {
  margin-top: 4px;
  font-size: 14px;
}

.ka-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: #ff0033;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.7);
}

.ka-dot.ok {
  background: #75ff9f;
  box-shadow: 0 0 12px rgba(117, 255, 159, 0.7);
}

.ka-dot.warn {
  background: #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.7);
}

.ka-stat-row {
  margin-top: 18px;
}

.ka-stat-card span {
  color: #b66b78;
  font-size: 14px;
}

.ka-stat-card strong {
  display: block;
  color: #fff;
  font-size: 36px;
  margin-top: 8px;
}

.ka-btn {
  width: auto;
  margin: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
}

.ka-btn-ghost {
  background: rgba(255, 0, 51, 0.05);
  color: #ff4b6b;
  border: 1px solid rgba(255, 0, 51, 0.35);
  box-shadow: none;
}

.ka-btn-ghost:hover {
  background: rgba(255, 0, 51, 0.12);
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.18);
}

.ka-status-text {
  color: #ff8fa0;
  margin: 18px 0;
  font-weight: 700;
}

.ka-devices-list {
  display: grid;
  gap: 14px;
}

.ka-device-card {
  border: 1px solid rgba(255, 0, 51, 0.24);
  background: #101116;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr auto;
  gap: 16px;
  align-items: center;
}

.ka-device-card.revoked {
  opacity: 0.58;
  border-color: rgba(120, 120, 120, 0.45);
}

.ka-device-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ka-device-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 51, 0.12);
  color: #ff4b6b;
  border: 1px solid rgba(255, 0, 51, 0.35);
  font-weight: 900;
}

.ka-device-title {
  color: #fff;
  font-weight: 900;
  margin-bottom: 5px;
}

.ka-device-id {
  color: #b66b78;
  font-size: 13px;
}

.ka-device-meta {
  display: grid;
  gap: 6px;
}

.ka-device-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #b66b78;
  font-size: 13px;
}

.ka-device-meta strong {
  color: #fff;
  text-align: right;
}

.ka-device-actions {
  display: flex;
  justify-content: flex-end;
}

.ka-btn-danger {
  background: transparent;
  color: #ff3333;
  border: 1px solid #ff3333;
  box-shadow: none;
}

.ka-btn-danger:hover {
  background: rgba(255, 51, 51, 0.12);
}

.ka-revoked-label {
  color: #888;
  font-weight: 900;
}

.ka-activity-list {
  display: grid;
  gap: 12px;
}

.ka-activity-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  border: 1px solid rgba(255, 0, 51, 0.18);
  background: #101116;
  border-radius: 16px;
  padding: 14px;
}

.ka-activity-icon {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #ff4b6b;
}

.ka-activity-icon.success {
  background: #75ff9f;
}

.ka-activity-icon.failed,
.ka-activity-icon.denied {
  background: #ff3333;
}

.ka-activity-icon.info {
  background: #8ea2ff;
}

.ka-activity-body p {
  color: #b66b78;
  margin: 6px 0 0;
  line-height: 1.5;
}

.ka-activity-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ka-activity-top strong {
  color: #fff;
}

.ka-activity-top span {
  color: #b66b78;
  font-size: 13px;
  white-space: nowrap;
}

.ka-empty {
  color: #b66b78;
  border: 1px dashed rgba(255, 0, 51, 0.25);
  border-radius: 16px;
  padding: 18px;
}

@media (max-width: 900px) {
  .ka-hero,
  .ka-grid-2,
  .ka-grid-3,
  .ka-device-card {
    grid-template-columns: 1fr;
  }

  .ka-hero h1 {
    font-size: 32px;
  }

  .ka-tabs {
    flex-direction: column;
  }

  .ka-card-head,
  .ka-section-line {
    flex-direction: column;
  }

  .ka-device-actions {
    justify-content: flex-start;
  }

  .ka-activity-top,
  .ka-info-row,
  .ka-device-meta div {
    flex-direction: column;
  }
}


.hidden {
  display: none !important;
}

.ka-admin-console-link {
  color: #ff7d91;
  opacity: 0.78;
}

.ka-admin-console-link:hover {
  opacity: 1;
}

/* =========================
   CSS SCOPE FIX V3
   ========================= */

/* Убиваем последствия старого глобального button { width:100% } */
.ka-main-nav button,
.ka-modal-card button,
.ka-hero-actions button,
.ka-dashboard-preview button,
.ka-flow-section button,
.ka-content-page button {
  width: auto;
}

.ka-nav-brand {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: clamp(2px, 0.35vw, 5px);
}

.ka-main-nav {
  gap: 18px;
}

.ka-nav-links {
  flex: 1 1 auto;
  justify-content: center;
}

.ka-nav-login {
  flex: 0 0 auto;
  min-width: 130px;
}

/* Нормальная кнопка show внутри password input */
.ka-password-line button {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ff7d91 !important;
  border: 0 !important;
  right: 12px;
  top: 24px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 12px;
}

/* Чтобы пароль не залезал под show */
.ka-password-line input {
  padding-right: 68px !important;
}

/* Нормальная кнопка закрытия модалки */
.ka-modal-close {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  right: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ff4b6b !important;
  font-size: 36px;
  line-height: 1;
  z-index: 5;
}

/* Заголовок модалки не должен залезать под X */
.ka-modal-card h2 {
  padding-right: 48px;
}

/* Главный экран не должен обрезать огромный заголовок на обычном ноутбуке */
.ka-landing-hero {
  min-height: auto;
  padding: 70px 0 40px;
}

.ka-hero-copy h1 {
  font-size: clamp(44px, 5.2vw, 72px);
}

/* Навигация на средних экранах */
@media (max-width: 1180px) {
  .ka-main-nav {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 14px 22px;
  }

  .ka-nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ka-nav-login {
    margin-left: auto;
  }
}

/* Модалка на маленьких экранах */
@media (max-width: 620px) {
  .ka-modal-card h2 {
    font-size: 30px;
    padding-right: 44px;
  }

  .ka-auth-split {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FRONTEND POLISH V4
   ========================= */

.ka-main-nav {
  min-height: 72px;
  height: 72px;
}

.ka-nav-brand {
  font-size: clamp(20px, 2.1vw, 30px);
}

.ka-nav-links button,
.ka-nav-login {
  letter-spacing: 1.6px;
}

.ka-nav-login.logged {
  border-color: rgba(117, 255, 159, 0.38);
  color: #75ff9f;
  background: rgba(117, 255, 159, 0.055);
}

/* Hero was too huge on 1366/1600px screens */
.ka-landing {
  padding-top: 26px;
}

.ka-landing-hero {
  min-height: calc(100vh - 110px);
  padding: 34px 0 34px;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.84fr);
}

.ka-hero-copy h1 {
  font-size: clamp(42px, 4.45vw, 68px);
  line-height: 1.03;
  max-width: 760px;
}

.ka-hero-text {
  font-size: 18px;
  max-width: 700px;
  margin-top: 22px;
}

.ka-hero-actions {
  margin-top: 24px;
}

.ka-hero-visual {
  min-height: 470px;
}

.ka-phone-card {
  width: 250px;
  min-height: 370px;
}

.ka-phone-logo {
  width: 84px;
  height: 84px;
  margin: 42px auto 28px;
}

.ka-orbit-one {
  width: 380px;
  height: 380px;
}

.ka-orbit-two {
  width: 270px;
  height: 270px;
}

.ka-floating-card-left {
  bottom: 12%;
  left: 2%;
}

.ka-floating-card-right {
  top: 13%;
  right: -2%;
}

.ka-session-chip {
  position: absolute;
  right: 22px;
  top: 92px;
  z-index: 3;
  margin-top: 0;
  max-width: min(460px, calc(100vw - 44px));
}

/* Modal readability */
.ka-modal-card {
  width: min(560px, 100%);
}

.ka-modal-card h2 {
  font-size: clamp(34px, 4vw, 44px);
}

.ka-modal-hint {
  font-size: 18px;
}

.ka-modal-card input,
.ka-password-line input {
  min-height: 62px;
  font-size: 18px;
}

.ka-auth-split button {
  min-height: 58px;
}

.ka-primary-cta,
.ka-secondary-cta {
  min-height: 58px;
}

/* Admin console: keep it wide but less cropped on common screens */
.ka-admin-page {
  padding-top: 24px;
}

.ka-admin-hero {
  padding: 24px 28px;
}

.ka-admin-hero h1 {
  font-size: clamp(36px, 3.4vw, 52px);
}

@media (max-width: 1180px) {
  .ka-main-nav {
    height: auto;
  }

  .ka-session-chip {
    position: static;
    margin-top: 22px;
  }

  .ka-landing-hero {
    grid-template-columns: 1fr;
  }

  .ka-hero-visual {
    min-height: 400px;
  }
}

@media (max-width: 760px) {
  .ka-hero-copy h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .ka-phone-card {
    width: 220px;
    min-height: 330px;
  }

  .ka-floating-card {
    padding: 14px 16px;
  }
}

/* =========================
   FRONTEND UI FIX V5
   ========================= */

/* 1) Session chip should not collide with toast notifications */
.ka-session-chip {
  position: static !important;
  right: auto !important;
  top: auto !important;
  z-index: auto !important;
  display: inline-flex;
  max-width: 720px;
}

.ka-toast-root {
  top: 96px !important;
  right: 22px !important;
}

/* 2) Profile page nav lost its styling after CSS merge; force it back */
.ka-body .ka-nav {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 7, 0.88);
  border-bottom: 1px solid rgba(255, 0, 51, 0.42);
  backdrop-filter: blur(12px);
}

.ka-body .ka-logo {
  color: #ff0033;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ka-body .ka-nav .menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ka-body .ka-nav .menu span {
  color: #ff4b6b;
  border: 1px solid rgba(255, 0, 51, 0.32);
  background: rgba(255, 0, 51, 0.045);
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.18s ease;
}

.ka-body .ka-nav .menu span:hover {
  background: rgba(255, 0, 51, 0.12);
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.18);
}

.ka-body .ka-admin-console-link {
  color: #ffd166 !important;
  border-color: rgba(255, 209, 102, 0.32) !important;
  background: rgba(255, 209, 102, 0.045) !important;
}

/* 3) Profile hero was too wide under fixed browser zoom */
.ka-profile-page {
  padding-top: 34px;
}

.ka-hero {
  overflow: hidden;
}

.ka-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
}

/* 4) Main nav on logged-in state should stay clean */
.ka-nav-login.logged {
  min-width: 140px;
}

/* 5) Keep modal centered and readable */
.ka-modal {
  justify-items: center;
}

.ka-modal-card {
  margin: auto;
}

@media (max-width: 760px) {
  .ka-body .ka-nav {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
  }

  .ka-body .ka-nav .menu {
    width: 100%;
    flex-wrap: wrap;
  }

  .ka-body .ka-nav .menu span {
    flex: 1;
    text-align: center;
  }

  .ka-toast-root {
    top: 14px !important;
    right: 14px !important;
    left: 14px !important;
    width: auto !important;
  }
}




/* =========================
   EMAIL VERIFICATION REGISTRATION V1
   ========================= */

.ka-register-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
}

.ka-register-step {
  border: 1px solid rgba(255, 0, 51, 0.22);
  background: rgba(255, 0, 51, 0.045);
  color: #b86b79;
  border-radius: 999px;
  padding: 9px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ka-register-step.active {
  color: #050507;
  background: #ff0033;
  border-color: #ff0033;
}

.ka-register-step.done {
  color: #75ff9f;
  border-color: rgba(117, 255, 159, 0.38);
  background: rgba(117, 255, 159, 0.055);
}

.ka-register-wait {
  border: 1px solid rgba(255, 0, 51, 0.30);
  background: #101116;
  border-radius: 22px;
  padding: 20px;
  margin: 14px 0;
  text-align: center;
}

.ka-register-wait-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border: 1px solid rgba(117, 255, 159, 0.42);
  color: #75ff9f;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 32px;
}

.ka-register-wait h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.ka-register-wait p {
  color: #d47d8d;
  line-height: 1.5;
}

.ka-register-loader {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.ka-register-loader span {
  width: 9px;
  height: 30px;
  border-radius: 999px;
  background: #ff0033;
  animation: kaLoader 0.9s infinite ease-in-out;
}

.ka-register-loader span:nth-child(2) {
  animation-delay: 0.12s;
}

.ka-register-loader span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes kaLoader {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.55;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.ka-password-strength {
  margin: 10px 0 2px;
  color: #ff8fa0;
  font-weight: 800;
  line-height: 1.35;
}

.ka-password-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #111219;
  border: 1px solid rgba(255, 0, 51, 0.20);
  overflow: hidden;
  margin-bottom: 8px;
}

.ka-password-meter span {
  display: block;
  height: 100%;
  width: 20%;
  transition: 0.2s ease;
  background: #ff0033;
}

.ka-password-strength.medium .ka-password-meter span {
  background: #ffd166;
}

.ka-password-strength.strong .ka-password-meter span {
  background: #75ff9f;
}

.ka-password-strength.strong {
  color: #75ff9f;
}

.ka-password-strength.medium {
  color: #ffd166;
}

#authSubmitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* KA_PROFILE_USERNAME_EDITOR_CSS_V3 */
.ka-main-nav,
.ka-body .ka-nav {
  position: sticky;
  top: 0;
  z-index: 999 !important;
  pointer-events: auto !important;
}

.ka-main-nav *,
.ka-body .ka-nav * {
  pointer-events: auto !important;
}

.ka-nav-brand,
.ka-logo,
.ka-nav-links button,
.ka-nav-login,
.ka-body .ka-nav .menu span {
  cursor: pointer !important;
}

.ka-username-box {
  margin-top: 8px;
}

.ka-username-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ka-username-line h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.ka-profile-email {
  margin: 8px 0 0;
  color: #ff8fa0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.ka-icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 0, 51, 0.42);
  border-radius: 14px;
  background: rgba(255, 0, 51, 0.065);
  color: #ff4b6b;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.12);
}

.ka-icon-button:hover:not(:disabled) {
  background: rgba(255, 0, 51, 0.14);
}

.ka-icon-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ka-username-editor {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 0, 51, 0.24);
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.72);
}

.ka-username-editor input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 0, 51, 0.38);
  border-radius: 14px;
  background: #11131a;
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.ka-username-editor input:focus {
  border-color: #ff4b6b;
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.12);
}

.ka-username-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ka-mini-primary,
.ka-mini-ghost {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.ka-mini-primary {
  border: 1px solid #ff0033;
  background: #ff0033;
  color: #050507;
}

.ka-mini-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ka-mini-ghost {
  border: 1px solid rgba(255, 0, 51, 0.34);
  background: transparent;
  color: #ff8fa0;
}

#usernameEditHint {
  margin: 10px 0 0;
  color: #ff8fa0;
  font-size: 13px;
  line-height: 1.45;
}

#usernameEditHint.error {
  color: #ff4b6b;
}

.ka-toast-root {
  position: fixed;
  top: 96px;
  right: 22px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(440px, calc(100vw - 44px));
  pointer-events: none;
}

.ka-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 0, 51, 0.38);
  border-radius: 20px;
  background: rgba(11, 12, 16, 0.96);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ka-toast.error {
  border-color: rgba(255, 0, 51, 0.58);
}

.ka-toast-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #75ff9f;
  box-shadow: 0 0 18px rgba(117, 255, 159, 0.72);
}

.ka-toast.error .ka-toast-dot {
  background: #ff0033;
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.72);
}


/* KA_NAV_CLICK_CSS_FIX_V1 */
.ka-main-nav {
  position: sticky;
  top: 0;
  z-index: 10050 !important;
  pointer-events: auto !important;
}

.ka-main-nav *,
.ka-nav-brand,
.ka-nav-brand *,
.ka-nav-links,
.ka-nav-links *,
.ka-nav-login {
  pointer-events: auto !important;
}

.ka-nav-brand,
.ka-nav-links button,
.ka-nav-login {
  position: relative;
  z-index: 10060 !important;
  cursor: pointer !important;
}

.ka-toast-root {
  pointer-events: none !important;
}


/* KA_AUTH_FORM_SPACING_FIX_V1 */
.auth-modal input,
.ka-auth-modal input,
.login-modal input,
.register-modal input,
#authModal input,
#loginModal input,
#registerModal input,
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"] {
  margin-bottom: 18px;
}

.auth-modal button,
.ka-auth-modal button,
.login-modal button,
.register-modal button,
#authModal button,
#loginModal button,
#registerModal button {
  margin-top: 6px;
}

.auth-modal .password-strength,
.ka-auth-modal .password-strength,
.register-modal .password-strength,
#registerPasswordStrength,
#passwordStrength {
  margin-top: 4px;
  margin-bottom: 18px;
}

.auth-modal .auth-actions,
.ka-auth-modal .auth-actions,
.login-modal .auth-actions,
.register-modal .auth-actions,
#authModal .auth-actions,
#loginModal .auth-actions,
#registerModal .auth-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.auth-modal .step-tabs,
.ka-auth-modal .step-tabs,
.register-modal .step-tabs,
#authModal .step-tabs,
#registerModal .step-tabs {
  gap: 12px;
  margin-bottom: 22px;
}

.auth-modal h1,
.ka-auth-modal h1,
.login-modal h1,
.register-modal h1,
#authModal h1,
#loginModal h1,
#registerModal h1 {
  margin-bottom: 24px;
}

.auth-modal p,
.ka-auth-modal p,
.login-modal p,
.register-modal p,
#authModal p,
#loginModal p,
#registerModal p {
  margin-bottom: 18px;
  line-height: 1.55;
}


/* KA_DOWNLOAD_NAV_HOME_CSS_V1 */
.ka-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,0,51,.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,0,51,.15), rgba(255,0,51,.04));
  color: #ff8fa0;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(255,0,51,.12);
}

.ka-nav-download:hover {
  color: #fff;
  border-color: rgba(255,0,51,.72);
  transform: translateY(-1px);
}

.ka-nav-download-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #75ff9f;
  box-shadow: 0 0 16px rgba(117,255,159,.85);
}

.ka-mobile-download-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1180px, calc(100% - 28px));
  margin: clamp(28px, 5vw, 58px) auto;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  border: 1px solid rgba(255,0,51,.34);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 46px);
  background:
    radial-gradient(circle at 14% 12%, rgba(255,0,51,.23), transparent 34%),
    radial-gradient(circle at 86% 76%, rgba(255,0,51,.15), transparent 36%),
    linear-gradient(135deg, rgba(13,15,24,.96), rgba(5,5,7,.98));
  box-shadow: 0 35px 90px rgba(0,0,0,.44), inset 0 0 0 1px rgba(255,255,255,.03);
}

.ka-mobile-download-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.055) 34%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255,0,51,.035) 0 1px, transparent 1px 78px);
  z-index: -1;
}

.ka-mobile-download-glow {
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  background: rgba(255,0,51,.13);
  filter: blur(22px);
  z-index: -2;
}

.ka-mobile-download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(117,255,159,.22);
  border-radius: 999px;
  background: rgba(117,255,159,.055);
  color: #75ff9f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.ka-mobile-download-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.ka-mobile-download-content h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .92;
  letter-spacing: -2.5px;
  font-weight: 1000;
  text-transform: uppercase;
}

.ka-mobile-download-content h2 em {
  color: #ff0033;
  font-style: normal;
  text-shadow: 0 0 28px rgba(255,0,51,.32);
}

.ka-mobile-download-content p {
  max-width: 670px;
  margin: 0 0 26px;
  color: #ff9aaa;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.62;
}

.ka-mobile-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.ka-mobile-download-primary,
.ka-mobile-download-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 17px;
  text-decoration: none;
  font-weight: 1000;
  letter-spacing: .7px;
}

.ka-mobile-download-primary {
  background: #ff0033;
  color: #050507;
  box-shadow: 0 0 28px rgba(255,0,51,.34);
}

.ka-mobile-download-secondary {
  border: 1px solid rgba(255,0,51,.34);
  background: rgba(255,0,51,.055);
  color: #ff8fa0;
}

.ka-mobile-download-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ka-mobile-download-features div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255,0,51,.18);
  border-radius: 18px;
  background: rgba(8,11,18,.72);
}

.ka-mobile-download-features strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .8px;
}

.ka-mobile-download-features span {
  display: block;
  color: #b66b78;
  font-size: 13px;
  line-height: 1.45;
}

.ka-mobile-phone-preview {
  position: relative;
  justify-self: center;
  width: 260px;
  min-height: 380px;
  border: 1px solid rgba(255,0,51,.42);
  border-radius: 36px;
  padding: 28px 18px 20px;
  background: radial-gradient(circle at 50% 8%, rgba(255,0,51,.20), transparent 28%), linear-gradient(180deg, #11131a, #07080c);
  box-shadow: 0 0 34px rgba(255,0,51,.20), 0 28px 70px rgba(0,0,0,.48);
  transform: rotate(2deg);
}

.ka-phone-top {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 76px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.ka-phone-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 28px auto 20px;
  border: 1px solid rgba(255,0,51,.62);
  border-radius: 22px;
  background: rgba(255,0,51,.08);
  color: #ff0033;
  font-size: 26px;
  font-weight: 1000;
  box-shadow: 0 0 26px rgba(255,0,51,.24);
}

.ka-phone-title {
  text-align: center;
  color: #75ff9f;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1.1px;
}

.ka-phone-card {
  padding: 14px;
  margin-top: 22px;
  border: 1px solid rgba(255,0,51,.20);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}

.ka-phone-card span {
  display: block;
  margin-bottom: 6px;
  color: #b66b78;
  font-size: 11px;
  font-weight: 900;
}

.ka-phone-card strong {
  color: #fff;
  font-size: 16px;
}

.ka-phone-button {
  margin-top: 18px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ff0033;
  color: #050507;
  font-size: 13px;
  font-weight: 1000;
}

.ka-download-pulse {
  animation: kaDownloadPulse .9s ease;
}

@keyframes kaDownloadPulse {
  0% { box-shadow: 0 35px 90px rgba(0,0,0,.42), 0 0 0 0 rgba(255,0,51,.40); }
  55% { box-shadow: 0 35px 90px rgba(0,0,0,.42), 0 0 0 12px rgba(255,0,51,.08); }
  100% { box-shadow: 0 35px 90px rgba(0,0,0,.42), 0 0 0 0 rgba(255,0,51,0); }
}

@media (max-width: 860px) {
  .ka-mobile-download-card {
    grid-template-columns: 1fr;
  }

  .ka-mobile-phone-preview {
    width: min(260px, 100%);
    transform: none;
  }

  .ka-mobile-download-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ka-nav-download {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .ka-mobile-download-card {
    border-radius: 24px;
    padding: 22px;
  }

  .ka-mobile-download-actions {
    display: grid;
  }

  .ka-mobile-download-primary,
  .ka-mobile-download-secondary {
    width: 100%;
  }
}


/* KA_WEBAUTHN_CSS_V1 */
.ka-passkey-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 160px;
  padding: 0 18px;
  margin: 10px 8px 0 0;
  border-radius: 16px;
  border: 1px solid rgba(117, 255, 159, .28);
  background: linear-gradient(135deg, rgba(117,255,159,.12), rgba(255,0,51,.05));
  color: #75ff9f;
  font-weight: 1000;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(117,255,159,.10);
}

.ka-passkey-login-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(117,255,159,.62);
  color: #fff;
}

.ka-passkey-card {
  position: relative;
  overflow: hidden;
  width: min(1296px, calc(100% - 28px));
  margin: 22px auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(117, 255, 159, .24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 10%, rgba(117,255,159,.12), transparent 32%),
    radial-gradient(circle at 86% 80%, rgba(255,0,51,.12), transparent 34%),
    linear-gradient(135deg, rgba(10,13,20,.96), rgba(5,5,7,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.03);
}

.ka-passkey-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.ka-passkey-kicker {
  color: #75ff9f;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}

.ka-passkey-head h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: .96;
  letter-spacing: -1.4px;
}

.ka-passkey-head p {
  max-width: 760px;
  margin: 0;
  color: #ff9aaa;
  font-size: 17px;
  line-height: 1.55;
}

.ka-passkey-badge {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117,255,159,.36);
  border-radius: 18px;
  background: rgba(117,255,159,.07);
  color: #75ff9f;
  font-weight: 1000;
  letter-spacing: 1px;
}

.ka-passkey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.ka-passkey-actions button {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,0,51,.28);
  background: rgba(255,0,51,.08);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
}

.ka-passkey-actions button:first-child {
  border-color: rgba(117,255,159,.32);
  background: rgba(117,255,159,.08);
  color: #75ff9f;
}

.ka-passkey-list {
  display: grid;
  gap: 10px;
}

.ka-passkey-empty,
.ka-passkey-row {
  padding: 14px 16px;
  border: 1px solid rgba(255,0,51,.18);
  border-radius: 16px;
  background: rgba(10,13,20,.78);
}

.ka-passkey-empty {
  color: #b66b78;
}

.ka-passkey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ka-passkey-row strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.ka-passkey-row span {
  display: block;
  color: #b66b78;
  font-size: 13px;
}

.ka-passkey-row button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,0,51,.32);
  border-radius: 12px;
  background: rgba(255,0,51,.08);
  color: #ff8fa0;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 720px) {
  .ka-passkey-head {
    display: block;
  }

  .ka-passkey-badge {
    width: fit-content;
    margin-top: 16px;
  }

  .ka-passkey-actions {
    display: grid;
  }

  .ka-passkey-row {
    display: block;
  }

  .ka-passkey-row button {
    margin-top: 12px;
  }
}


/* KA_WEBAUTHN_UI_FIX_CSS_V1 */
body > .ka-passkey-login-btn {
  display: none !important;
}

.ka-passkey-login-btn-v2 {
  display: inline-flex !important;
  position: static !important;
  width: auto !important;
  min-width: 160px;
  margin: 0 !important;
}

.ka-passkey-card-v2 {
  scroll-margin-top: 110px;
}

.ka-passkey-badge {
  text-align: center;
}

.ka-passkey-badge span {
  display: block;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 1000;
}

.ka-passkey-badge small {
  display: block;
  margin-top: 6px;
  color: #75ff9f;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 1000;
}


/* KA_WEBAUTHN_PROFILE_VISIBLE_CSS_V2 */
.ka-webauthn-visible-card {
  width: min(1320px, calc(100% - 32px));
  margin: 34px auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(117, 255, 159, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 255, 159, .10), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(255, 0, 51, .13), transparent 30%),
    linear-gradient(135deg, rgba(9, 12, 18, .96), rgba(5, 5, 7, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255,255,255,.025);
  scroll-margin-top: 110px;
}

.ka-webauthn-visible-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.ka-webauthn-visible-kicker {
  margin-bottom: 12px;
  color: #75ff9f;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 3px;
}

.ka-webauthn-visible-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 1000;
}

.ka-webauthn-visible-card p {
  max-width: 900px;
  margin: 0;
  color: #ff9aaa;
  font-size: 17px;
  line-height: 1.6;
}

.ka-webauthn-visible-countbox {
  min-height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117,255,159,.25);
  border-radius: 22px;
  background: rgba(117,255,159,.045);
}

.ka-webauthn-visible-countbox strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
}

.ka-webauthn-visible-countbox span {
  color: #75ff9f;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1px;
}

.ka-webauthn-visible-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.ka-webauthn-visible-actions button,
.ka-webauthn-visible-row button {
  min-height: 54px;
  border: 1px solid rgba(117,255,159,.28);
  border-radius: 17px;
  background: rgba(117,255,159,.075);
  color: #75ff9f;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .6px;
  cursor: pointer;
}

.ka-webauthn-visible-actions button:first-child {
  border-color: rgba(255,0,51,.48);
  background: #ff0033;
  color: #050507;
  box-shadow: 0 0 24px rgba(255,0,51,.28);
}

.ka-webauthn-visible-list {
  display: grid;
  gap: 12px;
}

.ka-webauthn-visible-empty,
.ka-webauthn-visible-row {
  border: 1px solid rgba(255,0,51,.18);
  border-radius: 18px;
  background: rgba(11,15,24,.72);
}

.ka-webauthn-visible-empty {
  padding: 18px;
  color: #ff9aaa;
  line-height: 1.55;
}

.ka-webauthn-visible-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.ka-webauthn-visible-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117,255,159,.28);
  border-radius: 15px;
  color: #75ff9f;
  font-weight: 1000;
  background: rgba(117,255,159,.06);
}

.ka-webauthn-visible-meta strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}

.ka-webauthn-visible-meta span {
  display: block;
  color: #b66b78;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .ka-webauthn-visible-head,
  .ka-webauthn-visible-row {
    grid-template-columns: 1fr;
  }

  .ka-webauthn-visible-countbox {
    min-height: 86px;
  }

  .ka-webauthn-visible-actions {
    display: grid;
  }

  .ka-webauthn-visible-actions button,
  .ka-webauthn-visible-row button {
    width: 100%;
  }
}


/* KA_FRONTEND_USER_TEXTS_CSS_V1 */
.ka-human-copy-card p,
.ka-human-copy-activity p {
  line-height: 1.55;
}

.ka-human-copy-card strong,
.ka-human-copy-card b {
  letter-spacing: .2px;
}

.ka-human-copy-activity {
  word-break: normal;
}

.ka-human-copy-activity code,
.ka-human-copy-activity pre {
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .ka-human-copy-card,
  .ka-human-copy-activity {
    overflow-wrap: anywhere;
  }
}

/* KA_PASSKEY_EMAIL_REGISTER_UI_V1 */
.ka-passkey-register-hint {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(99, 255, 144, 0.32);
  border-radius: 14px;
  background: rgba(99, 255, 144, 0.06);
  color: #ff9aaa;
  font-size: 14px;
  line-height: 1.45;
}

#passkeyRegisterBtn {
  margin-top: 12px;
  border-color: rgba(99, 255, 144, 0.45);
  color: #63ff90;
}

#passkeyRegisterBtn:disabled,
#authSubmitBtn:disabled {
  opacity: 0.55;
  cursor: wait;
}
