.ringa-ad-card{
  width:100%;
  max-width:100%;
  margin:12px 0;
  padding:10px 12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(17,21,33,.72);
  overflow:hidden;
}
.ringa-ad-label{
  margin:0 0 8px;
  color:rgba(255,255,255,.52);
  font-size:10px;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
}
.ringa-ad-stage{
  position:relative;
  width:100%;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.ringa-adsense-unit{width:100%;min-height:90px}
.ringa-ad-preview{
  width:100%;
  min-height:120px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:18px;
  border:1px dashed rgba(255,122,26,.55);
  border-radius:12px;
  background:rgba(255,122,26,.06);
  text-align:center;
  color:rgba(255,255,255,.9);
}
.ringa-ad-preview span,.ringa-ad-preview small{color:rgba(255,255,255,.58)}
.ringa-reel-ad{display:flex!important;align-items:center;justify-content:center;background:#0b0d12}
.ringa-reel-ad-inner{width:min(100%,620px);padding:18px 14px calc(var(--ringa-footer-h,64px) + 18px)}
.ringa-reel-ad .ringa-ad-stage{min-height:250px;background:rgba(255,255,255,.025);border-radius:16px}
@media (prefers-color-scheme: light){
  body.ringa-mode-light .ringa-ad-card{background:#fff;border-color:rgba(0,0,0,.08)}
  body.ringa-mode-light .ringa-ad-label,body.ringa-mode-light .ringa-ad-preview span,body.ringa-mode-light .ringa-ad-preview small{color:rgba(0,0,0,.54)}
  body.ringa-mode-light .ringa-ad-preview{color:#111;background:rgba(255,122,26,.05)}
}

/* v0.70: dedicated Story ad frames. Ads never overlay member Story media or controls. */
.ringa-story-viewer.is-ad-frame .ringa-story-viewer-progress,
.ringa-story-viewer.is-ad-frame .ringa-story-viewer-foot,
.ringa-story-viewer.is-ad-frame .ringa-story-viewer-caption,
.ringa-story-viewer.is-ad-frame .ringa-story-nav,
.ringa-story-viewer.is-ad-frame .ringa-story-pause-indicator,
.ringa-story-viewer.is-ad-frame .ringa-story-viewer-author,
.ringa-story-viewer.is-ad-frame .ringa-story-follow,
.ringa-story-viewer.is-ad-frame .ringa-story-sound{display:none!important}
.ringa-story-viewer.is-ad-frame .ringa-story-viewer-media:before{opacity:0!important;background-image:none!important}
.ringa-story-viewer.is-ad-frame .ringa-story-viewer-media:after{background:linear-gradient(180deg,rgba(0,0,0,.42),transparent 24%,transparent 78%,rgba(0,0,0,.34))!important}
.ringa-story-ad-media-layer{z-index:10!important;background:#0b0d12!important}
.ringa-story-ad-frame{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 84px) 18px calc(env(safe-area-inset-bottom,0px) + 28px);background:#0b0d12;color:#fff}
.ringa-story-ad-shell{width:min(100%,620px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:100%}
.ringa-story-ad-stage{width:100%;min-height:260px;display:flex;align-items:center;justify-content:center;padding:12px;border-radius:18px;background:rgba(255,255,255,.025);overflow:hidden}
.ringa-story-ad-stage .ringa-adsense-unit{width:100%;min-height:250px}
.ringa-story-ad-controls{display:grid;grid-template-columns:minmax(96px,.65fr) minmax(160px,1.35fr);gap:12px;margin-top:42px}
.ringa-story-ad-controls button{appearance:none;min-height:50px;border-radius:999px;border:1px solid rgba(255,255,255,.18);font:inherit;font-weight:800;cursor:pointer}
.ringa-story-ad-back{background:rgba(255,255,255,.06);color:#fff}
.ringa-story-ad-next{border-color:transparent!important;background:linear-gradient(135deg,#ff6120,#ff8a48);color:#fff;box-shadow:0 10px 30px rgba(255,97,32,.2)}
@media(max-width:430px){.ringa-story-ad-frame{padding-left:14px;padding-right:14px}.ringa-story-ad-stage{min-height:230px}.ringa-story-ad-stage .ringa-adsense-unit{min-height:220px}.ringa-story-ad-controls{margin-top:38px;grid-template-columns:104px 1fr}}

/* v0.72 unified Ringa inventory: private campaigns + Boosted Posts */
.ringa-sponsored-strip{padding:7px 14px 0;font-size:11px;font-weight:800;letter-spacing:.04em;color:var(--ringa-accent,#ff7127)}
.ringa-card.is-sponsored{outline:1px solid rgba(255,113,39,.18)}
.ringa-direct-ad-card{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.ringa-direct-ad-media{width:100%;overflow:hidden;border-radius:14px;background:#080a0f;aspect-ratio:16/9}
.ringa-direct-ad-media img,.ringa-direct-ad-media video{width:100%;height:100%;object-fit:cover;display:block}
.ringa-direct-ad-copy{display:flex;flex-direction:column;gap:7px;padding:2px 2px 4px;color:#fff}
.ringa-direct-ad-copy>span,.ringa-paid-advertiser{font-size:12px;color:rgba(255,255,255,.62)}
.ringa-direct-ad-copy>strong,.ringa-paid-copy>strong{font-size:18px;line-height:1.18}
.ringa-direct-ad-copy p,.ringa-paid-copy p{margin:0;color:rgba(255,255,255,.78);line-height:1.45}
.ringa-paid-cta{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-height:42px;padding:0 18px;margin-top:4px;border-radius:999px;background:linear-gradient(135deg,#ff6120,#ff8a48);color:#fff!important;text-decoration:none!important;font-weight:850}
.ringa-paid-creative{position:relative;width:100%;height:100%;min-height:320px;display:flex;flex-direction:column;background:#090b10;color:#fff;overflow:hidden;border-radius:18px}
.ringa-paid-badge{position:absolute;z-index:4;top:14px;left:14px;padding:6px 10px;border-radius:999px;background:rgba(5,7,10,.76);backdrop-filter:blur(8px);font-size:10px;font-weight:850;letter-spacing:.04em}
.ringa-paid-media{position:relative;flex:1;min-height:220px;background:#050609;overflow:hidden}
.ringa-paid-media img,.ringa-paid-media video,.ringa-paid-media iframe{width:100%;height:100%;object-fit:contain;display:block;border:0}
.ringa-paid-copy{display:flex;flex-direction:column;gap:8px;padding:16px 16px 18px;background:linear-gradient(180deg,rgba(11,13,18,.96),#0b0d12)}
.ringa-reel-paid .ringa-reel-ad-inner{height:100%;display:flex;align-items:stretch}
.ringa-reel-paid .ringa-paid-creative{min-height:calc(100vh - var(--ringa-footer-h,64px) - 36px)}
.ringa-story-ad-shell>.ringa-paid-creative{min-height:70vh}
.ringa-story-ad-shell>.ringa-paid-creative+.ringa-story-ad-controls{margin-top:14px}
.ringa-boost-modal[hidden]{display:none!important}.ringa-boost-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center}.ringa-boost-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(4px)}
.ringa-boost-dialog{position:relative;z-index:1;width:min(100%,560px);max-height:min(88vh,760px);overflow:auto;padding:24px 20px calc(20px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;background:#11151f;color:#fff;box-shadow:0 -18px 70px rgba(0,0,0,.46)}
.ringa-boost-dialog h2{margin:0 38px 6px 0}.ringa-boost-x{position:absolute;right:15px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:26px;cursor:pointer}
.ringa-boost-field{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center;margin:14px 0}.ringa-boost-field input,.ringa-boost-field select{width:100%;min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#0b0e15;color:#fff;padding:0 12px}
.ringa-boost-surfaces,.ringa-boost-pay{margin:16px 0;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:14px}.ringa-boost-surfaces legend,.ringa-boost-pay legend{padding:0 6px;font-weight:850}.ringa-boost-surfaces label,.ringa-boost-pay label{display:block;margin:8px 0}.ringa-boost-status{min-height:24px;margin:8px 0;color:#ffb287}.ringa-boost-submit{width:100%;justify-content:center;min-height:48px}
body.ringa-boost-open{overflow:hidden}
@media(min-width:720px){.ringa-boost-modal{align-items:center}.ringa-boost-dialog{border-radius:22px}.ringa-direct-ad-card{grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);align-items:center}.ringa-direct-ad-media{aspect-ratio:4/3}}
body.ringa-mode-light .ringa-direct-ad-copy{color:#111}body.ringa-mode-light .ringa-direct-ad-copy>span{color:rgba(0,0,0,.58)}body.ringa-mode-light .ringa-direct-ad-copy p{color:rgba(0,0,0,.72)}
.ringa-story-ad-variants{width:100%;display:flex;align-items:stretch;justify-content:center;flex:1;min-height:0}
.ringa-story-ad-variant{display:none;width:100%;min-height:0}
.ringa-story-ad-variant.is-active{display:flex;flex-direction:column;justify-content:center}
.ringa-story-ad-variant.is-active>.ringa-paid-creative{flex:1}
