/* Sample portal additions */
.demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 36px; background: var(--gold-soft); border-bottom: 1px solid #E8D3A6; font-size: 13.5px; color: #5E4414; }
.demo-banner a { color: var(--plum-900); font-weight: 600; white-space: nowrap; }
.btn-cta { background: var(--gold); color: #fff; border-radius: var(--radius-s); padding: 8px 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-cta:hover { background: #A3752A; }
.rail-cta { display: block; margin-top: 12px; text-align: center; background: var(--gold-bright); color: var(--plum-900); font-weight: 600;
  border-radius: var(--radius-s); padding: 8px 10px; text-decoration: none; font-size: 13.5px; }
.rail-cta:hover { background: #E6C573; }
.rail-back { display: block; margin-top: 10px; font-size: 12.5px; color: #CFC3D6; }
.demo-note { margin-top: 10px !important; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

.demo-modal { position: fixed; inset: 0; background: rgba(42, 23, 51, 0.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.demo-modal[hidden] { display: none; }
.demo-modal-card { background: var(--surface); border-radius: 14px; max-width: 540px; padding: 28px 30px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.demo-eyebrow { font-size: 12.5px; color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }
.demo-modal-card h2 { font-size: 28px; margin: 6px 0 10px; }
.demo-modal-card p { color: var(--muted); margin: 0 0 12px; }
.demo-modal-card ol { margin: 0 0 18px; padding-left: 20px; color: var(--ink); }
.demo-modal-card li { margin-bottom: 6px; }
.demo-modal-actions { display: flex; gap: 18px; align-items: center; }
.demo-modal-actions .btn-primary { padding: 10px 18px; font-size: 15px; }

.demo-nudge { position: fixed; left: calc(var(--rail-w) + 20px); bottom: 20px; width: 300px; z-index: 60; background: var(--plum-900); color: #EDE4F2;
  border-radius: 12px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(42, 23, 51, 0.35); transform: translateY(20px); opacity: 0; transition: transform 250ms ease, opacity 250ms ease; }
.demo-nudge.show { transform: none; opacity: 1; }
.demo-nudge strong { font-family: var(--serif); font-size: 18px; font-weight: 500; color: #fff; display: block; margin-bottom: 4px; }
.demo-nudge p { font-size: 13.5px; margin: 0 0 12px; }
.demo-nudge .btn-close { position: absolute; top: 6px; right: 8px; color: #CFC3D6; }

.demo-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; max-width: 560px;
  background: var(--plum-900); color: #fff; border-radius: 10px; padding: 12px 16px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); transition: transform 200ms ease, opacity 200ms ease; }
.demo-toast.show { transform: translate(-50%, 0); opacity: 1; }
.demo-toast a { color: var(--gold-bright); font-weight: 600; margin-left: 6px; white-space: nowrap; }
@media (max-width: 760px) { .demo-nudge { left: 12px; right: 12px; width: auto; } .demo-banner { padding: 8px 16px; } }
