/* ═══════════════════════════════════════════════════
   DIVS B DEMOS — divs-b-demos.css
   Selector prefix: dm-dvb-
   Scope: .demo-dvb-glass | .demo-dvb-gradborder | .demo-dvb-flex
═══════════════════════════════════════════════════ */

/* ── SHARED INTRO/META ── */
.demo-dvb-glass,
.demo-dvb-gradborder,
.demo-dvb-flex {
  background: #080d18;
  min-height: 100%;
}
.dm-dvb-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-align: center;
}
.dm-dvb-intro h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .6rem;
}
.dm-dvb-intro p {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.dm-dvb-intro p code {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .82em;
  background: rgba(37,99,235,.16);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
}
.dm-dvb-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green, #10b981);
  margin-bottom: .6rem;
}

/* ══════════════════════════════════════
   1. GLASS CARD — iOS Lock Screen
══════════════════════════════════════ */
.demo-dvb-glass .dm-dvb-glass-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2rem;
}
.dm-dvb-glass-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    0 0 0 6px #1a1f2c,
    0 0 0 7px rgba(255,255,255,.08);
  padding: 0 14px 26px;
}
.dm-dvb-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
}
.dm-dvb-lock-time {
  text-align: center;
  padding: 22px 0 26px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.dm-dvb-lock-day {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .92;
  margin-bottom: 2px;
}
.dm-dvb-lock-hour {
  font-family: 'Oswald', sans-serif;
  font-size: 4.4rem;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .95;
}

/* Notification stack */
.dm-dvb-notif-stack {
  position: relative;
  perspective: 1200px;
  padding: 0 4px;
}
.dm-dvb-notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px 12px;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: 'Inter', sans-serif;
  transform-origin: top center;
  transition: transform .5s cubic-bezier(.22,.68,0,1.2), opacity .5s, margin-top .5s;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
/* Stagger: each subsequent card is slightly smaller + tilted */
.dm-dvb-notif:nth-child(1) { transform: scale(1) translateY(0); }
.dm-dvb-notif:nth-child(2) { transform: scale(.965) translateY(-3px); opacity: .94; }
.dm-dvb-notif:nth-child(3) { transform: scale(.93) translateY(-6px);  opacity: .82; }
.dm-dvb-notif:nth-child(4) { transform: scale(.895) translateY(-9px); opacity: .68; }
.dm-dvb-notif:nth-child(n+5) { transform: scale(.86) translateY(-12px); opacity: .5; }

.dm-dvb-notif.is-entering {
  transform: translateY(-40px) scale(1.02);
  opacity: 0;
  margin-top: -42px;
}

.dm-dvb-notif-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.dm-dvb-notif-text { flex: 1; min-width: 0; }
.dm-dvb-notif-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1px;
}
.dm-dvb-notif-app {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}
.dm-dvb-notif-stamp {
  font-size: .62rem;
  opacity: .7;
}
.dm-dvb-notif-title {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1px;
}
.dm-dvb-notif-body {
  font-size: .76rem;
  line-height: 1.35;
  opacity: .9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════
   2. GRADIENT BORDER CARD — Pricing trio
══════════════════════════════════════ */
.demo-dvb-gradborder .dm-dvb-gb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
}
.dm-dvb-gb-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .dm-dvb-gb-trio { grid-template-columns: 1fr; max-width: 420px; }
}

/* Plain card (Starter / Team) */
.dm-dvb-gb-card,
.dm-dvb-gb-inner {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: 12.5px;
  background: #0f1626;
  color: #fff;
  font-family: 'Inter', sans-serif;
  height: 100%;
}
.dm-dvb-gb-plain {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #0d1322;
}

/* Pro: animated gradient border via two divs */
.dm-dvb-gb-outer {
  position: relative;
  padding: 1.5px;
  border-radius: 14px;
  background: conic-gradient(from 0deg, #3b82f6, #10b981, #f59e0b, #ef4444, #3b82f6);
  animation: dm-dvb-gb-rotate 4s linear infinite;
  display: flex;
}
.dm-dvb-gb-outer::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, #3b82f6, #10b981, #f59e0b, #ef4444, #3b82f6);
  filter: blur(22px);
  opacity: .35;
  z-index: -1;
  animation: dm-dvb-gb-rotate 4s linear infinite;
}
.dm-dvb-gb-outer { z-index: 0; }
@keyframes dm-dvb-gb-rotate {
  to { transform: rotate(360deg); }
}
/* The conic background rotates by animating the gradient angle via filter trick:
   Use background that doesn't itself rotate visually but cycles colors. */
@property --dm-dvb-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.dm-dvb-gb-outer {
  --dm-dvb-angle: 0deg;
  background: conic-gradient(from var(--dm-dvb-angle), #3b82f6, #10b981, #f59e0b, #ef4444, #3b82f6);
  animation: dm-dvb-angle-spin 4s linear infinite;
  transform: none;
}
.dm-dvb-gb-outer::after { animation: dm-dvb-angle-spin 4s linear infinite; transform: none; }
@keyframes dm-dvb-angle-spin {
  to { --dm-dvb-angle: 360deg; }
}

.dm-dvb-gb-inner {
  width: 100%;
  border-radius: 12.5px;
  background: #0f1626;
  position: relative;
}
.dm-dvb-gb-pro { background: linear-gradient(180deg, #131c30 0%, #0d1322 100%); }

.dm-dvb-gb-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
}

.dm-dvb-gb-tier {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.dm-dvb-gb-pro .dm-dvb-gb-tier { color: #93c5fd; }
.dm-dvb-gb-price {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
}
.dm-dvb-gb-currency {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 2px;
  color: rgba(255,255,255,.6);
}
.dm-dvb-gb-period {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  margin-left: 4px;
}
.dm-dvb-gb-desc {
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.dm-dvb-gb-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.dm-dvb-gb-features li {
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  padding-left: 20px;
}
.dm-dvb-gb-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: #10b981;
  font-weight: 700;
  font-size: .8rem;
}
.dm-dvb-gb-features li:last-child { border-bottom: none; }

.dm-dvb-gb-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.dm-dvb-gb-btn:hover { transform: translateY(-1px); }
.dm-dvb-gb-btn-ghost {
  background: rgba(255,255,255,.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.dm-dvb-gb-btn-ghost:hover { background: rgba(255,255,255,.1); }
.dm-dvb-gb-btn-primary {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59,130,246,.3);
}

/* ══════════════════════════════════════
   3. FLEX ROW — Nav + Card-Footer
══════════════════════════════════════ */
.demo-dvb-flex .dm-dvb-flex-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
}
.dm-dvb-flex-example {
  margin-bottom: 2rem;
}
.dm-dvb-flex-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
  padding-left: .25rem;
}
.dm-dvb-flex-card {
  background: #f5f6f8;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* Nav row */
.dm-dvb-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  outline: 1px dashed rgba(59,130,246,.45);
  outline-offset: 4px;
}
.dm-dvb-nav-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  outline: 1px dashed rgba(16,185,129,.55);
  outline-offset: 4px;
  padding: 4px 6px;
  border-radius: 4px;
}
.dm-dvb-nav-logo-mark {
  color: #3b82f6;
  font-size: 1.1rem;
}
.dm-dvb-nav-links {
  list-style: none;
  margin: 0;
  padding: 4px 6px;
  display: flex;
  gap: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  outline: 1px dashed rgba(245,158,11,.55);
  outline-offset: 4px;
  border-radius: 4px;
}
.dm-dvb-nav-links li {
  color: #475569;
  cursor: pointer;
  font-weight: 500;
  transition: color .15s;
}
.dm-dvb-nav-links li.active,
.dm-dvb-nav-links li:hover { color: #0f172a; font-weight: 600; }
.dm-dvb-nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  outline: 1px dashed rgba(239,68,68,.55);
  outline-offset: 4px;
  transition: background .15s;
}
.dm-dvb-nav-cta:hover { background: #1f2937; }

/* Annotation tags */
.dm-dvb-flex-anno {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .9rem;
  padding-left: 4px;
}
.dm-dvb-flex-anno-tag {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .68rem;
  background: rgba(15,23,42,.06);
  color: #334155;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(15,23,42,.08);
}

/* Card-footer example */
.dm-dvb-foot-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 22px 16px;
  border: 1px solid rgba(15,23,42,.06);
}
.dm-dvb-foot-card-head h3 {
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #0f172a;
}
.dm-dvb-foot-card-head p {
  margin: 0 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  line-height: 1.55;
  color: #475569;
}
.dm-dvb-foot-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 12px 8px 10px;
  border-top: 1px solid rgba(15,23,42,.07);
  outline: 1px dashed rgba(59,130,246,.4);
  outline-offset: 3px;
  border-radius: 4px;
}
.dm-dvb-foot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: 0 0 40px;
  outline: 1px dashed rgba(16,185,129,.6);
  outline-offset: 2px;
}
.dm-dvb-foot-stack {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}
.dm-dvb-foot-name {
  font-size: .85rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}
.dm-dvb-foot-role {
  font-size: .72rem;
  color: #64748b;
  line-height: 1.2;
}
.dm-dvb-foot-meta {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: #64748b;
  margin-left: 14px;
}
.dm-dvb-foot-action {
  margin-left: auto;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  outline: 1px dashed rgba(239,68,68,.5);
  outline-offset: 3px;
  transition: background .15s;
}
.dm-dvb-foot-action:hover { background: #2563eb; }

@media (max-width: 640px) {
  .dm-dvb-nav-row { flex-wrap: wrap; gap: .75rem; }
  .dm-dvb-nav-links { order: 3; width: 100%; justify-content: space-between; }
  .dm-dvb-foot-row { flex-wrap: wrap; }
  .dm-dvb-foot-meta { margin-left: 54px; width: 100%; }
  .dm-dvb-foot-action { margin-left: 54px; }
}

/* Code-note shared with grids-b is fine, but include a fallback in case
   stylesheets are loaded out of order. */
.demo-dvb-glass .dm-la-code-note,
.demo-dvb-gradborder .dm-la-code-note,
.demo-dvb-flex .dm-la-code-note {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
}
.demo-dvb-glass .dm-la-code-note code,
.demo-dvb-gradborder .dm-la-code-note code,
.demo-dvb-flex .dm-la-code-note code {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .72rem;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  line-height: 1.55;
  text-align: left;
}
