.dg-hidden { display: none !important; }

#dg-root {
  font-family: Outfit, system-ui, sans-serif;
  color: #ece8df;
}

#dg-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99980;
  border: 1px solid #2a5c52;
  background: #14161c;
  color: #7ee0c8;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 13px Outfit, system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#dg-fab[data-unlocked="true"] {
  color: #ece8df;
  border-color: #2a2e38;
}

.dg-gate {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(10px);
}

.dg-card {
  width: min(100%, 400px);
  background: #14161c;
  border: 1px solid #2a2e38;
  border-radius: 22px;
  padding: 28px 22px 24px;
  text-align: center;
}

.dg-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7ee0c8;
}

.dg-card h2 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 28px;
}

.dg-card p {
  margin: 0;
  color: #9a9488;
  font-size: 14px;
  line-height: 1.5;
}

#dg-pin-form {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

#dg-pin-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 28px;
  letter-spacing: 0.45em;
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid #2a2e38;
  background: #0b0c0f;
  color: #ece8df;
  font-family: Outfit, system-ui, sans-serif;
}

.dg-actions {
  display: flex;
  gap: 8px;
}

.dg-actions button,
.unlock-btn {
  flex: 1;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  font: 600 14px Outfit, system-ui, sans-serif;
}

.dg-primary,
.unlock-btn {
  background: #2a5c52;
  color: #ece8df;
}

.dg-ghost {
  background: transparent;
  color: #ece8df;
  border: 1px solid #2a2e38 !important;
}

.dg-error { color: #e08a7a; font-size: 13px; margin-top: 12px; }
.dg-lock { color: #c4b48a; font-size: 13px; margin-top: 12px; }

.dg-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99985;
  width: min(100%, 420px);
  height: 100%;
  background: #14161c;
  border-left: 1px solid #2a2e38;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.dg-drawer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid #2a2e38;
}

.dg-drawer header h2 {
  margin: 4px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 22px;
}

.dg-drawer header button {
  border: 0;
  background: transparent;
  color: #9a9488;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dg-body {
  overflow: auto;
  padding: 16px 20px 32px;
}

.dg-summary {
  color: #9a9488;
  line-height: 1.55;
  margin: 0 0 16px;
}

.dg-field {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #2a2e38;
}

.dg-field span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ee0c8;
}

.dg-field strong {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dg-links { display: grid; gap: 8px; margin-top: 18px; }
.dg-links a {
  color: #7ee0c8;
  text-decoration: none;
  border: 1px solid #2a5c52;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.unlock-btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

header .header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 640px) {
  header .header-row { flex-direction: column; }
  .unlock-btn { width: 100%; }
  #dg-fab { right: 12px; bottom: 12px; }
}
