.stonks-consent-banner,
.stonks-privacy-dialog,
.stonks-share-dialog,
.stonks-privacy-button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stonks-consent-banner {
  position: fixed;
  z-index: 2147483000;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: auto;
  padding: 20px;
  color: #eef8ff;
  background: rgba(6, 14, 25, .97);
  border: 1px solid #31516d;
  border-radius: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .65);
  backdrop-filter: blur(18px);
}

.stonks-consent-banner[hidden] { display: none; }
.stonks-consent-banner strong { display: block; color: #62f39c; letter-spacing: .12em; font-size: 13px; }
.stonks-consent-banner p { max-width: 650px; margin: 7px 0 0; color: #b6c7d7; font-size: 14px; line-height: 1.5; }
.stonks-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stonks-consent-actions button,
.stonks-privacy-actions button,
.stonks-share-actions button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #36536e;
  border-radius: 9px;
  color: #eaf5ff;
  background: #132235;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
}
.stonks-consent-actions button:first-child,
.stonks-privacy-actions button:first-child,
.stonks-share-actions button:first-child { color: #04120a; background: #58ef96; border-color: #75ffab; }

.stonks-privacy-button {
  position: fixed;
  z-index: 2147482000;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #2d4962;
  border-radius: 999px;
  color: #b8cad9;
  background: rgba(5, 13, 23, .9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
}
.stonks-consent-banner:not([hidden]) ~ .stonks-privacy-button { display: none; }

.stonks-privacy-dialog,
.stonks-share-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid #2d4b66;
  border-radius: 18px;
  color: #edf7ff;
  background: #091421;
  box-shadow: 0 30px 100px #000c;
}
.stonks-privacy-dialog::backdrop,
.stonks-share-dialog::backdrop { background: rgba(0, 4, 10, .8); backdrop-filter: blur(8px); }
.stonks-privacy-card,
.stonks-share-card { padding: clamp(20px, 5vw, 34px); }
.stonks-privacy-head,
.stonks-share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.stonks-privacy-head span,
.stonks-share-head span { display: block; color: #57ee96; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.stonks-privacy-head strong,
.stonks-share-head strong { display: block; margin-top: 5px; font-size: 25px; }
.stonks-privacy-head > button,
.stonks-share-head > button { border: 0; color: #aec0d1; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.stonks-gpc-note { padding: 12px; color: #ffe6a4; background: #2a220d; border: 1px solid #756024; border-radius: 9px; }
.stonks-consent-toggle { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 12px 0; padding: 16px; background: #0e1c2b; border: 1px solid #233c54; border-radius: 12px; }
.stonks-consent-toggle strong,
.stonks-consent-toggle small { display: block; }
.stonks-consent-toggle small { max-width: 430px; margin-top: 5px; color: #9eb2c5; line-height: 1.45; }
.stonks-consent-toggle input { width: 24px; height: 24px; accent-color: #55ed94; }
.stonks-privacy-actions,
.stonks-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.stonks-privacy-fine,
.stonks-share-card > small { display: block; margin: 18px 0 0; color: #8499ad; font-size: 12px; line-height: 1.5; }
.stonks-privacy-fine a { color: #72f2a4; }
.stonks-share-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid #29445f; border-radius: 12px; background: #06101c; }
.stonks-share-card > p { color: #c1d0dd; line-height: 1.55; }

@media (max-width: 720px) {
  .stonks-consent-banner { display: grid; gap: 16px; }
  .stonks-consent-actions { justify-content: stretch; }
  .stonks-consent-actions button { flex: 1 1 140px; }
  .stonks-privacy-actions button,
  .stonks-share-actions button { flex: 1 1 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .stonks-consent-banner,
  .stonks-privacy-dialog,
  .stonks-share-dialog { scroll-behavior: auto; }
}
