/* ==========================================================================
   Souch dlc — cabinet (1:1 with the reference layout)
   The structure mirrors the reference account page: a 300px identity column
   with the profile card and the license-key card, and a 776px information
   column with the account tiles, email, help and launcher panels.
   Class names are prefixed with "sk-" so they never collide with the site.
   ========================================================================== */

.sk-cabinet {
  --sk-bg-900: #0a0b0c;
  --sk-bg-800: #0d0e0f;
  --sk-bg-600: #141516;
  --sk-outline-900: #141516;
  --sk-outline-500: #242527;
  --sk-text-900: #4f4f51;
  --sk-text-800: #606062;
  --sk-text-700: #707073;
  --sk-text-600: #808083;
  --sk-text-500: #909093;
  --sk-text-400: #a3a3a4;
  --sk-text-300: #b6b6b8;
  --sk-text-200: #c7c7ca;
  --sk-text-100: #dddddf;
  --sk-text-50: #f4f4f6;
  --sk-accent: var(--client-color, #ffffff);
  --sk-accent-ink: var(--c-accent-ink, #0a0a0a);
  --sk-accent-soft: color-mix(in srgb, var(--sk-accent), transparent 90%);
  --sk-accent-line: color-mix(in srgb, var(--sk-accent), transparent 72%);

  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 16px var(--pad-x) 80px;
}

.sk-cabinet__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* ------------------------------- header --------------------------------- */

.sk-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-header__page {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sk-text-500);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.sk-header__page .sd-i {
  color: var(--sk-text-500);
}

.sk-header__hello {
  color: var(--sk-text-100);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sk-header__signature {
  color: var(--sk-text-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

/* -------------------------------- body ---------------------------------- */

.sk-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.sk-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.sk-col--user {
  gap: 12px;
  max-width: 300px;
  /* Pull the sidebar (tabs + key + password) a touch left of the content. */
  margin-left: -18px;
  align-self: flex-start;
}

/* On narrow screens the pull would clip the column. */
@media (max-width: 1179px) {
  .sk-col--user {
    margin-left: 0;
  }
}

.sk-col--info {
  max-width: 776px;
  min-width: 0;
}

.sk-col--info.is-wide {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

.sk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sk-row--account {
  align-items: stretch;
}

.sk-row--other {
  flex: 1;
  align-items: stretch;
  gap: 16px;
}

.sk-other {
  display: flex;
  flex: 0 1 314px;
  flex-direction: column;
  gap: 16px;
  width: auto;
  min-width: 0;
}

.sk-other--launcher {
  flex: 1 1 320px;
  min-width: 0;
}

/* ------------------------------ surfaces -------------------------------- */

.sk-panel {
  position: relative;
  border: 1px solid var(--sk-outline-900);
  border-radius: 16px;
  background: rgba(13, 14, 15, 0.74);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.sk-panel--user {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  z-index: 6;
}

.sk-panel--activate {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
}

/* The key field is a fixed-size control: it must not stretch with the
   column, otherwise the input grows with the panel height. */
.sk-panel--activate .sk-field {
  flex: 0 0 auto;
}

.sk-panel--activate .sk-field input {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

.sk-panel--activate .sk-btn {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

.sk-panel--password {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px;
}

.sk-panel--password .sk-field {
  flex: 0 0 auto;
}

.sk-panel--password .sk-field input,
.sk-panel--password .sk-btn {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

.sk-panel--email {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.sk-panel--faq {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.sk-panel--launcher {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 16px;
}

.sk-panel--plain {
  padding: 18px;
}

/* ------------------------------ user card ------------------------------- */

.sk-user__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sk-user__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sk-user__ava-slot {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.sk-user__ava {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  overflow: hidden;
}

.sk-user__ava.is-editable {
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}

.sk-user__ava.is-editable:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.sk-user__ava.is-editable:focus-visible {
  outline: 2px solid #c9c9c9;
  outline-offset: 2px;
}

/* Subtle "change photo" cue on hover only — the camera button is gone. */
.sk-user__ava.is-editable::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(4, 8, 14, 0.5);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sk-user__ava.is-editable:hover::after {
  opacity: 1;
}

.sk-user__ava img {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.sk-user__dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 3;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #45e08a;
  outline: 2px solid var(--sk-bg-800);
  box-shadow: 0 0 10px rgba(69, 224, 138, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sk-user__dot:hover {
  transform: scale(1.18);
}

.sk-user__dot:focus-visible {
  outline: 2px solid #c9c9c9;
  outline-offset: 2px;
}

/* Presence palette: online / idle / dnd / invisible. */
.sk-status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45e08a;
  box-shadow: 0 0 8px rgba(69, 224, 138, 0.5);
}

.sk-user__dot.is-online,
.sk-status-dot.is-online {
  background: #45e08a;
  box-shadow: 0 0 9px rgba(69, 224, 138, 0.6);
}

.sk-user__dot.is-idle,
.sk-status-dot.is-idle {
  background: #f5b942;
  box-shadow: 0 0 9px rgba(245, 185, 66, 0.5);
}

.sk-user__dot.is-dnd,
.sk-status-dot.is-dnd {
  background: #ff5c5c;
  box-shadow: 0 0 9px rgba(255, 92, 92, 0.55);
}

.sk-user__dot.is-invisible,
.sk-status-dot.is-invisible {
  background: #7a7a7a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.sk-user__dot.is-invisible::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--sk-bg-800);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sk-status-menu {
  display: none;
  position: absolute;
  top: 48px;
  left: -4px;
  z-index: 900;
  min-width: 186px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.sk-status-menu__title {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sk-text-600);
}

.sk-status-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sk-text-200, #e8eef8);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sk-status-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sk-status-item.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #c9c9c9;
}

.sk-user__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sk-user__sub {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--sk-text-600);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sk-user__sub-label {
  color: var(--sk-text-600);
  font-size: 12px;
  font-weight: 600;
}

.sk-user__sub-date {
  color: var(--sk-text-50);
  font-size: 12px;
  font-weight: 650;
}

.sk-user__name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--sk-text-50);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.01em;
  min-width: 0;
}

.sk-user__nick {
  color: var(--sk-text-50);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.05;
}

.sk-user__uid {
  color: var(--sk-text-600);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.sk-user__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--sk-text-600);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sk-user__edit:hover {
  color: var(--sk-accent);
  border-color: var(--sk-accent-line);
  background: var(--sk-accent-soft);
}

.sk-user__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.sk-user__panel,
.sk-panel--user {
  z-index: 40;
}

.sk-user__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--sk-text-600);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sk-user__logout:hover {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.10);
}

.sk-user__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--sk-bg-600);
  color: var(--sk-text-600);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    filter 0.18s ease, box-shadow 0.18s ease;
}

.sk-tab .sd-i {
  color: inherit;
  font-size: 14px;
}

.sk-tab:hover {
  filter: brightness(1.35);
}

.sk-tab.is-active {
  border-color: var(--sk-accent);
  background: var(--sk-accent-soft);
  color: var(--sk-accent);
  box-shadow: 0 0 0 1px var(--sk-accent-line), 0 8px 22px -16px var(--sk-accent);
}

.sk-tab.is-active .sd-i {
  color: var(--sk-accent);
}

.sk-tab--admin {
  margin-top: 4px;
}

.sk-tab__badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sk-accent);
  color: var(--sk-accent-ink);
  font-size: 10px;
  font-weight: 700;
}

/* ------------------------------- fields --------------------------------- */

.sk-cabinet .sk-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.sk-cabinet .sk-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sk-text-600);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sk-cabinet .sk-field label .sd-i {
  color: var(--sk-text-600);
}

.sk-cabinet .sk-field input {
  display: flex;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border: 0.75px solid var(--sk-outline-500);
  border-radius: 1000px;
  background: transparent;
  color: var(--sk-text-400);
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  outline: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sk-cabinet .sk-field input::placeholder {
  color: var(--sk-text-800);
  font-size: 13px;
  font-weight: 550;
}

.sk-cabinet .sk-field input:focus {
  border-color: var(--sk-accent-line);
  background: var(--sk-accent-soft);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.sk-cabinet .sk-field input:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ------------------------------- buttons -------------------------------- */

.sk-cabinet .sk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  padding: 9px 14px;
  border: 0;
  border-radius: 1000px;
  background: var(--sk-accent-soft);
  color: var(--sk-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease,
    background 0.18s ease;
}

.sk-cabinet .sk-btn:hover {
  filter: brightness(1.25);
  box-shadow: 0 8px 22px -12px rgba(255, 255, 255, 0.7);
}

.sk-cabinet .sk-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.sk-cabinet .sk-btn--primary {
  background: var(--sk-accent);
  color: var(--sk-accent-ink);
}

.sk-cabinet .sk-btn--primary:hover {
  filter: brightness(1.08);
}

.sk-cabinet .sk-btn--muted {
  background: var(--sk-bg-600);
  color: var(--sk-text-600);
}

.sk-cabinet .sk-btn--muted:hover {
  filter: brightness(1.4);
  box-shadow: none;
}

/* --------------------------- account tiles ------------------------------ */

.sk-info {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 16px 20px;
  border: 1px solid var(--sk-outline-900);
  border-radius: 16px;
  background: rgba(13, 14, 15, 0.74);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.sk-info__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sk-text-600);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.05;
}

.sk-info__title .sd-i {
  color: var(--sk-text-600);
}

.sk-info__data {
  color: var(--sk-text-400);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-info__data .sd-key {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
}

/* -------------------------------- help ---------------------------------- */

.sk-faq__title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sk-faq__title strong {
  color: var(--sk-text-500);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
}

.sk-faq__title span {
  color: var(--sk-text-700);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
}

.sk-faq__socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sk-faq__social {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 1000px;
  background: var(--sk-accent-soft);
  color: var(--sk-accent);
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.sk-faq__social:hover {
  filter: brightness(1.25);
  box-shadow: 0 8px 20px -12px rgba(255, 255, 255, 0.8);
}

/* ------------------------------ launcher -------------------------------- */

.sk-launcher__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-launcher__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sk-text-600);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sk-launcher__title .sd-i {
  color: var(--sk-text-600);
}

.sk-launcher__desc {
  color: var(--sk-text-700);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
}

.sk-launcher__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.sk-spec {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid var(--sk-outline-900);
  border-radius: 16px;
}

.sk-spec__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sk-text-200);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.05;
}

.sk-spec__title .sd-i {
  color: var(--sk-text-200);
}

.sk-spec__value {
  color: var(--sk-text-400);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
}

.sk-launcher__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-launcher__buttons .sk-btn {
  height: auto;
  padding: 10px 14px;
}

/* ------------------------------ tab content ----------------------------- */

.sk-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.sk-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sk-block__title {
  color: var(--sk-text-200);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.sk-block__hint {
  color: var(--sk-text-700);
  font-size: 12.5px;
}

.sk-block__desc {
  color: var(--sk-text-700);
  font-size: 13px;
  line-height: 1.6;
}

/* The activity card gets its own frosted backdrop, like the feed surfaces. */
.sk-block--activity {
  padding: 18px;
  border: 1px solid var(--sk-outline-900);
  border-radius: 16px;
  background: rgba(13, 14, 15, 0.6);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
}

.sk-block .sd-table {
  border: 1px solid var(--sk-outline-900);
  border-radius: 12px;
  overflow: hidden;
}

/* Friends reuses the shop headings — tame them inside the cabinet. */
.sk-col--info .sd-buy__title {
  color: var(--sk-text-200);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.sk-col--info .sd-buy__sub {
  color: var(--sk-text-700);
  font-size: 13px;
  font-weight: 450;
}

/* Chat/friends fill the wide information column. */
.sk-col--info.is-wide .sd-chat {
  height: calc(100vh - 280px);
  min-height: 480px;
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1080px) {
  .sk-col--user {
    max-width: 260px;
  }

  .sk-col--info {
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 900px) {
  .sk-body {
    flex-direction: column;
  }

  .sk-col--user {
    max-width: none;
    gap: 12px;
  }

  .sk-user__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sk-tab--admin {
    margin-top: 0;
    grid-column: 1 / -1;
  }

  .sk-col--info,
  .sk-col--info.is-wide {
    max-width: none;
  }

  .sk-row--other {
    flex-direction: column;
  }

  .sk-other {
    flex: 1 1 auto;
    width: 100%;
  }

  .sk-col--info.is-wide .sd-chat {
    height: auto;
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .sk-cabinet {
    padding-top: 8px;
    padding-bottom: 48px;
  }

  .sk-header__hello {
    font-size: 24px;
  }

  .sk-row--account {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .sk-info {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .sk-launcher__specs {
    flex-direction: column;
  }

  .sk-spec {
    flex-direction: row;
    justify-content: space-between;
  }

  .sk-user__tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .sk-faq__socials {
    flex-wrap: wrap;
  }
}

.sk-block__hint--ok {
  color: #4ade80;
}
