/* Sky VPN — поддержка (Atlas / cyan) */
.sup-body {
  background: #101113 !important;
  color: #e8ecff;
  min-height: 100dvh;
}

.sup-app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 32rem;
  margin: 0 auto;
}

.sup-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.85rem 0.65rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(16, 17, 19, 0.97) 0%, rgba(16, 17, 19, 0.82) 70%, transparent 100%);
  backdrop-filter: blur(10px);
}

.sup-topbar__back,
.sup-topbar__refresh {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: #16181c;
  color: #a5f3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sup-topbar__title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f6ff;
}

.sup-main {
  flex: 1;
  padding: 0 0.85rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.sup-screen {
  animation: sup-fade-in 0.22s ease;
}

@keyframes sup-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.sup-hero {
  text-align: center;
  padding: 0.35rem 0 1rem;
}

.sup-hero__ic {
  margin: 0 auto 0.65rem;
}

.sup-hero__lead {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sv-muted, #8b9cb8);
  max-width: 18rem;
  margin-inline: auto;
}

.sup-cta-new {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem !important;
  font-weight: 700;
  border-radius: 12px !important;
}

.sup-cta-new__plus {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
}

.sup-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.sup-quick__btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: #16181c;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.sup-quick__text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.sup-quick__lbl {
  font-size: 0.68rem;
  color: var(--sv-muted, #8b9cb8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sup-quick__val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8ecff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sup-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sup-list-head__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv-muted, #8b9cb8);
}

.sup-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sup-list-loading {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.sup-ticket-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.16);
  background: #16181c;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sup-ticket-row.is-active {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.08);
}

.sup-ticket-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.sup-ticket-row__subject {
  font-weight: 600;
  font-size: 0.875rem;
  color: #f4f6ff;
  line-height: 1.35;
}

.sup-ticket-row__meta {
  font-size: 0.72rem;
  color: var(--sv-muted, #8b9cb8);
}

.sup-ticket-row__preview {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(232, 236, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sup-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
}

.sup-badge--open {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.sup-badge--answered {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.sup-badge--closed {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.sup-empty {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(6, 182, 212, 0.22);
  background: rgba(6, 182, 212, 0.04);
}

.sup-empty__ic {
  color: rgba(6, 182, 212, 0.45);
  margin-bottom: 0.65rem;
}

.sup-empty__title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #e8ecff;
}

.sup-empty__sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--sv-muted, #8b9cb8);
}

/* Форма */
.sup-form-card {
  border-radius: 14px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: #16181c;
  padding: 1.1rem 1rem 1rem;
}

.sup-form-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4f6ff;
}

.sup-form-card__sub {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--sv-muted, #8b9cb8);
}

.sup-field {
  display: block;
  margin-bottom: 0.85rem;
}

.sup-field__lbl {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sv-muted, #8b9cb8);
}

.sup-field__input,
.sup-field__textarea,
.sup-chat-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: #101113;
  color: #e8ecff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

.sup-field__textarea {
  min-height: 6.5rem;
}

.sup-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.sup-form-submit {
  border-radius: 10px !important;
}

/* Чат */
.sup-screen--chat {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 4.5rem);
}

.sup-chat-head {
  padding: 0.35rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--sv-muted, #8b9cb8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.sup-chat-meta__id {
  font-family: var(--sv-font-mono, monospace);
  font-weight: 600;
  color: #a5f3fc;
}

.sup-chat-log {
  flex: 1;
  min-height: 12rem;
  max-height: calc(100dvh - 13rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.5rem 0 0.75rem;
}

.sup-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.sup-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}

.sup-msg--admin {
  align-self: flex-start;
  align-items: flex-start;
}

.sup-msg__who {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sv-muted, #8b9cb8);
  margin-bottom: 0.2rem;
}

.sup-msg__bubble {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.sup-msg--user .sup-msg__bubble {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #0a0a0c;
  border-bottom-right-radius: 4px;
}

.sup-msg--admin .sup-msg__bubble {
  background: #16181c;
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #e8ecff;
  border-bottom-left-radius: 4px;
}

.sup-msg__time {
  font-size: 0.65rem;
  color: var(--sv-muted, #8b9cb8);
  margin-top: 0.2rem;
}

.sup-chat-closed {
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fcd34d;
}

.sup-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(6, 182, 212, 0.12);
}

.sup-chat-input {
  flex: 1;
  min-height: 2.75rem;
  max-height: 6rem;
  margin: 0;
}

.sup-chat-send {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.28);
}

.sup-chat-empty {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
}

.sup-preview-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  font-family: var(--sv-font-mono, monospace);
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.12);
  border-top: 1px solid rgba(6, 182, 212, 0.25);
  text-align: center;
}
