:root {
  --bg: #040b16;
  --bg-soft: #071427;
  --card: rgba(7, 18, 38, 0.72);
  --card-2: rgba(10, 24, 44, 0.82);
  --line: rgba(125, 216, 255, 0.14);
  --line-strong: rgba(125, 216, 255, 0.22);
  --text: #eaf6ff;
  --muted: #a8bfd7;
  --primary: #22c6ff;
  --primary-2: #4f8cff;
  --accent: #8b5cf6;
  --success: #1ec97b;
  --danger: #ff5b7d;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 22px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(34,198,255,.14), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(139,92,246,.12), transparent 24%),
    linear-gradient(180deg, #030817 0%, #04101d 50%, #030916 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.site-bg-grid,
.site-bg-glow,
.site-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-bg-grid {
  background-image:
    linear-gradient(rgba(80,120,180,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,120,180,.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 96%);
  opacity: .42;
}

.site-bg-glow::before,
.site-bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .18;
}

.site-bg-glow::before {
  width: 360px;
  height: 360px;
  left: 6%;
  top: 10%;
  background: #00d2ff;
}

.site-bg-glow::after {
  width: 320px;
  height: 320px;
  right: 8%;
  top: 14%;
  background: #8b5cf6;
}

.site-bubbles span {
  position: absolute;
  bottom: -100px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.75), rgba(255,255,255,.12) 34%, rgba(34,198,255,.08) 70%, transparent 100%);
  box-shadow: inset 0 0 10px rgba(255,255,255,.06), 0 0 18px rgba(34,198,255,.10);
  animation: bubbleRise linear infinite;
}

.site-bubbles span:nth-child(1){left:6%;animation-duration:18s;animation-delay:-1s}
.site-bubbles span:nth-child(2){left:14%;width:22px;height:22px;animation-duration:24s;animation-delay:-6s}
.site-bubbles span:nth-child(3){left:24%;width:16px;height:16px;animation-duration:20s;animation-delay:-3s}
.site-bubbles span:nth-child(4){left:37%;width:28px;height:28px;animation-duration:27s;animation-delay:-8s}
.site-bubbles span:nth-child(5){left:48%;width:18px;height:18px;animation-duration:22s;animation-delay:-12s}
.site-bubbles span:nth-child(6){left:59%;width:30px;height:30px;animation-duration:26s;animation-delay:-7s}
.site-bubbles span:nth-child(7){left:70%;width:17px;height:17px;animation-duration:19s;animation-delay:-10s}
.site-bubbles span:nth-child(8){left:82%;width:26px;height:26px;animation-duration:25s;animation-delay:-4s}
.site-bubbles span:nth-child(9){left:90%;width:14px;height:14px;animation-duration:17s;animation-delay:-9s}
.site-bubbles span:nth-child(10){left:95%;width:20px;height:20px;animation-duration:23s;animation-delay:-13s}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: .65; }
  100% { transform: translateY(-115vh) scale(1.1); opacity: 0; }
}

.container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 9, 20, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125,216,255,.12);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,24,40,.55);
  border: 1px solid rgba(93,218,255,.16);
  box-shadow: 0 0 0 1px rgba(93,218,255,.08) inset, 0 0 28px rgba(57,199,255,.20), 0 10px 40px rgba(0,0,0,.35);
  overflow: visible;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.04);
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(125,216,255,.12);
  background: rgba(7,18,38,.52);
  color: #dff5ff;
  font-weight: 700;
  transition: .2s ease;
}

.nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(125,216,255,.28);
}

.main-content {
  padding: 24px 0 16px;
  position: relative;
  z-index: 2;
}

.card,
.subcard,
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(25,194,255,.12), rgba(139,92,246,.12)), var(--card);
}

.card.narrow { max-width: 520px; }

.center {
  text-align: center;
  margin: 0 auto;
}

h1, h2, h3 {
  margin: 0 0 10px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 12px; }

.muted { color: var(--muted); }

.stack { display: grid; gap: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1.18fr .92fr;
  gap: 18px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.wrap-actions { flex-wrap: wrap; }

label {
  display: grid;
  gap: 8px;
  color: #dff5ff;
  font-weight: 600;
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(2, 11, 26, .78);
  border: 1px solid rgba(104,131,173,.22);
  border-radius: 16px;
  outline: none;
  transition: .18s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(57,199,255,.48);
  box-shadow: 0 0 0 4px rgba(57,199,255,.10);
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input[type="color"] {
  min-height: 48px;
  padding: 6px;
}

input[type="checkbox"] { width: auto; }

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(125,216,255,.18);
  background: rgba(7,18,38,.56);
  color: #ecf8ff;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125,216,255,.32);
}

.btn-primary {
  background: linear-gradient(90deg, #28c8ff 0%, #5898ff 50%, #8b5cf6 100%);
  color: #06111f;
  border: 0;
}

.btn-danger {
  background: rgba(255,91,125,.12);
  color: #ffd7df;
  border-color: rgba(255,91,125,.25);
}

.alert {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(24,198,122,0.12);
  color: #d9ffeb;
  border-color: rgba(24,198,122,0.22);
}

.alert-error {
  background: rgba(255,91,125,0.13);
  color: #ffd5df;
  border-color: rgba(255,91,125,0.22);
}

.alert-info {
  background: rgba(57,199,255,.10);
  color: #d7f5ff;
  border-color: rgba(57,199,255,.24);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(125,216,255,0.10);
  text-align: left;
  vertical-align: top;
}

th {
  color: #9fc8f1;
  font-size: .92rem;
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 20px 0;
}

.stat {
  display: grid;
  gap: 8px;
}

.stat strong { font-size: 2rem; }

.preview-card { text-align: center; }

.qr-preview {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fefefe, #eef2ff);
  border: 1px dashed rgba(11, 18, 33, .2);
  border-radius: 18px;
  padding: 18px;
}

code {
  background: rgba(125,216,255,0.14);
  padding: 2px 6px;
  border-radius: 8px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.eyebrow,
.pill-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(25,194,255,0.12);
  color: #bfeeff;
  border: 1px solid rgba(125,216,255,0.18);
  font-size: .85rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 18px rgba(34,211,238,.8);
}

.metric-row,
.mini-bars div,
.plan-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(125,216,255,0.08);
}

.plan-box div { flex-direction: column; }

.heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.heat {
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(125,216,255,0.08);
  border: 1px solid rgba(125,216,255,0.12);
  text-align: center;
  display: grid;
  gap: 6px;
}

.tip {
  padding: 12px 14px;
  background: rgba(25,194,255,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
}

.public-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.public-card {
  width: min(920px, 100%);
  background: white;
  color: #0f172a;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, .18);
}

.public-body img,
.public-body iframe,
.public-body video {
  max-width: 100%;
}

.public-card-marketing .eyebrow {
  color: #0c4a6e;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.login-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.login-page-grid { align-items: stretch; }

.login-panel {
  padding: 30px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-branding {
  background: linear-gradient(135deg, rgba(25,194,255,0.18), rgba(139,92,246,0.20)), var(--card);
}

.login-title-hero {
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: .92;
}

.login-card-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.old-login-card {
  background: rgba(3, 10, 22, 0.72);
  border: 1px solid rgba(125,216,255,.14);
  box-shadow: none;
}

.old-login-card-tight { max-width: 460px; }

.feature-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: #d7ecff;
}

.feature-grid-boxed {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(4,15,30,.34);
  border: 1px solid rgba(57,199,255,.09);
}

.feature-box span {
  font-size: 1.35rem;
  line-height: 1;
}

.feature-box strong {
  display: block;
  margin-bottom: 6px;
}

.feature-box small {
  color: #bdd2e8;
  line-height: 1.5;
}

.link-inline { color: #96dcff; }

.quick-links .btn { width: 100%; }

.compact-head { align-items: center; }

.plans-hero {
  margin-bottom: 22px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 290px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(8,22,42,.96), rgba(6,16,32,.90)),
    rgba(7, 18, 38, 0.72);
  border: 1px solid rgba(125,216,255,.16);
  box-shadow:
    0 22px 60px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.03);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(34,198,255,.12), transparent 40%);
  pointer-events: none;
}

.plan-card-featured {
  border-color: rgba(125,216,255,.35);
  box-shadow:
    0 24px 70px rgba(0,0,0,.42),
    0 0 0 1px rgba(125,216,255,.12) inset,
    0 0 36px rgba(34,198,255,.10);
}

.plan-card-top,
.plan-card-bottom {
  position: relative;
  z-index: 1;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34,198,255,.10);
  border: 1px solid rgba(125,216,255,.20);
  color: #bfeeff;
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.plan-title {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.plan-subtitle {
  min-height: 72px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.plan-feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: #eaf6ff;
}

.plan-feature-list li {
  line-height: 1.45;
}

.plan-card-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.16);
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-cta {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
}

.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 25;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}

.floating-wa img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
  filter: none !important;
}

#dm-premium-footer {
  width: 100%;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 195, 255, 0.35);
  padding: 32px 20px;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dm-footer-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  color: #dceaff;
  font-family: Inter, sans-serif;
}

.dm-footer-logo img {
  width: 155px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.55));
  display:block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius:0 !important;
  padding:0 !important;
}

.dm-footer-text {
  font-size: 15px;
  opacity: 0.85;
  margin: 6px 0;
}

.dm-footer-links a {
  color: #7dd8ff;
  text-decoration: none;
  margin: 0 6px;
  font-size: 14px;
  transition: 0.25s;
}

.dm-footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #4dd0ff;
}

@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(250px, 290px));
  }
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .builder-grid,
  .login-shell,
  .feature-grid-boxed {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .plan-card {
    width: min(100%, 360px);
    min-height: auto;
  }

  .topbar-inner,
  .hero-card,
  .section-head,
  .compact-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-wa {
    bottom: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 16px, 1180px);
  }

  .brand-logo {
    width: 72px;
    height: 72px;
    padding: 7px;
    border-radius: 20px;
  }

  .brand-copy small {
    white-space: normal;
  }

  .card,
  .subcard,
  .hero-card,
  .login-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .dm-footer-logo img {
    width: 118px;
  }

  .dm-footer-text {
    font-size: 14px;
  }

  .dm-footer-links a {
    font-size: 13px;
  }

  .floating-wa {
    right: 12px;
    bottom: 20px;
  }

  .floating-wa img {
    width: 62px !important;
    height: 62px !important;
  }
}

.qr-preview {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:360px;
}

.qr-preview canvas,
.qr-preview svg {
  width:320px !important;
  height:320px !important;
  max-width:100%;
  max-height:100%;
}

.login-ambient-off .site-bg-grid,
.login-ambient-off .site-bg-glow,
.login-ambient-off .site-bubbles { display: none !important; }
