

.mvc-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;          
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;         
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.mvc-box {
  pointer-events: auto;
  width: min(720px, 100%);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px 22px 18px;
  border: 1px solid rgba(232, 197, 114, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(232, 197, 114, 0.07), transparent 62%),
    linear-gradient(180deg, #16131f 0%, #100e17 100%);
  box-shadow: 0 -2px 0 rgba(232, 197, 114, 0.14) inset,
              0 18px 48px rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.74);
  animation: mvc-rise 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mvc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.mvc-title {
  margin: 0 0 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8c572;
}

.mvc-text {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.mvc-sum {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}
.mvc-sum li { margin-bottom: 4px; }


.mvc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.mvc-btn {
  flex: 1 1 160px;
  min-height: 44px;             
  padding: 11px 18px;
  border-radius: 7px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.mvc-btn-primary {
  border: 1px solid rgba(232, 197, 114, 0.55);
  background: linear-gradient(180deg, rgba(232, 197, 114, 0.17), rgba(232, 197, 114, 0.06));
  color: #f3ddab;
}
.mvc-btn-primary:hover {
  background: linear-gradient(180deg, rgba(232, 197, 114, 0.26), rgba(232, 197, 114, 0.11));
  box-shadow: 0 0 18px rgba(232, 197, 114, 0.22);
}
.mvc-btn-primary:active { transform: translateY(1px); }

.mvc-btn-ghost {
  flex: 0 1 120px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
}
.mvc-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.88);
}

.mvc-btn:focus-visible,
.mvc-link:focus-visible,
.mvc-toggle:focus-visible {
  outline: 2px solid #e8c572;
  outline-offset: 2px;
}

.mvc-link {
  display: inline-block;
  font-size: 0.76rem;
  color: rgba(232, 197, 114, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mvc-link:hover { color: #e8c572; }


.mvc-purposes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mvc-purpose {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.mvc-purpose-locked { background: rgba(255, 255, 255, 0.012); }

.mvc-purpose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.mvc-purpose-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.mvc-purpose-locked .mvc-purpose-name { cursor: default; }

.mvc-always {
  flex: none;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 197, 114, 0.7);
}

.mvc-purpose-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.56);
}

.mvc-ess {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.56);
}
.mvc-ess li { margin-bottom: 3px; }

.mvc-toggle {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: #e8c572;
  cursor: pointer;
}
.mvc-toggle:disabled { cursor: not-allowed; opacity: 0.4; }


button.mvc-open-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.mvc-open-link:hover { color: #e8c572; }

@media (max-width: 560px) {
  .mvc-root { padding: 10px; }
  .mvc-box { padding: 16px 16px 14px; max-height: 86vh; }
  .mvc-btn { flex: 1 1 100%; }
  .mvc-btn-ghost { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mvc-box { animation: none; }
  .mvc-btn { transition: none; }
}
.mvc-nomotion .mvc-box { animation: none; }
