.vvat-et-wrap,
.vvat-et-public {
  --vvat-bg: #f4f6f8;
  --vvat-card: #ffffff;
  --vvat-border: #d7dde4;
  --vvat-text: #112031;
  --vvat-muted: #5b6b79;
  --vvat-primary: #183a6b;
  --vvat-success: #0f8a42;
  --vvat-danger: #c73737;
}

.vvat-et-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
  border: 1px solid var(--vvat-border);
  border-radius: 18px;
  color: var(--vvat-text);
}

.vvat-et-shell.is-public {
  box-shadow: 0 20px 50px rgba(17, 32, 49, 0.08);
}

.vvat-et-topbar h2,
.vvat-et-wrap h1 {
  margin: 0 0 8px;
}

.vvat-et-topbar p {
  margin: 0 0 12px;
  color: var(--vvat-muted);
}

.vvat-et-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vvat-et-card,
.vvat-et-login-card {
  background: var(--vvat-card);
  border: 1px solid var(--vvat-border);
  border-radius: 16px;
  padding: 12px;
}

.vvat-et-login-card {
  margin-bottom: 16px;
}

.vvat-et-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

#vvat-et-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
  border-radius: 14px;
  max-height: 240px;
}

.vvat-et-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#vvat-et-code,
#vvat-et-password {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--vvat-border);
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

.vvat-et-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.vvat-et-btn {
  appearance: none;
  border: 1px solid var(--vvat-border);
  background: #fff;
  color: var(--vvat-text);
  border-radius: 12px;
  min-height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.vvat-et-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vvat-et-btn-primary {
  background: var(--vvat-primary);
  border-color: var(--vvat-primary);
  color: #fff;
}

.vvat-et-btn-full {
  width: 100%;
}

.vvat-et-result {
  margin-top: 14px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--vvat-border);
  background: #fff;
  box-sizing: border-box;
}

.vvat-et-result.ok {
  border-color: #94d3aa;
  background: #eefaf2;
}

.vvat-et-result.bad {
  border-color: #efb0b0;
  background: #fff3f3;
}

.vvat-et-login-note,
.vvat-et-footnote {
  margin-top: 10px;
  color: var(--vvat-muted);
  font-size: 14px;
}

.vvat-et-shell.is-locked .vvat-et-grid {
  opacity: 0.45;
  pointer-events: none;
}

.vvat-et-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 32, 49, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.vvat-et-modal[hidden] {
  display: none;
}

.vvat-et-modal-dialog {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(17, 32, 49, 0.18);
}

.vvat-et-modal.ok .vvat-et-modal-dialog {
  border: 2px solid #94d3aa;
}

.vvat-et-modal.bad .vvat-et-modal-dialog {
  border: 2px solid #efb0b0;
}

.vvat-et-modal-dialog h3 {
  margin: 0 0 10px;
}

#vvat-et-modal-body {
  margin-bottom: 14px;
  line-height: 1.5;
}

@media (max-width: 782px) {
  .vvat-et-shell {
    padding: 10px;
    border-radius: 14px;
  }

  .vvat-et-grid {
    grid-template-columns: 1fr;
  }

  .vvat-et-card,
  .vvat-et-login-card {
    padding: 12px;
  }

  .vvat-et-actions {
    flex-direction: column;
  }

  .vvat-et-btn {
    width: 100%;
  }
}
