.dashboard-wrap{display:flex;flex-direction:column;gap:14px;margin-bottom:24px}
.dash-hero{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.dash-hero h1{margin:0;font-size:30px;font-weight:800}
.dash-hero p{margin:0;color:#3e4655;max-width:720px}
.dashboard-panel{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.dashboard-tabs-shell .token-panel-stack{
  margin-top:-6px;
  padding-top:16px;
}
.dashboard-tabs-pad{
  padding-bottom:12px;
}
.automation-console{margin-top:16px;border:1px solid rgba(16,58,100,0.12);border-radius:18px;padding:18px;background:var(--card);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:14px}
.automation-console h2{margin:0;font-size:22px;font-weight:800;color:#102a43}
.automation-form{display:flex;flex-direction:column;gap:18px}
.automation-group{display:flex;flex-wrap:wrap;gap:16px}
.automation-group.grid-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.automation-field{flex:1;min-width:220px;display:flex;flex-direction:column;gap:8px}
.automation-field.inline{min-width:0}
.automation-field select{padding:10px 12px;border:1px solid rgba(16,58,100,0.16);border-radius:10px;background:#fff;font-size:14px;color:#102a43}
.automation-field input[type=range]{width:100%}
.label-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;color:#1f5f89}
.allocation-total{font-size:12px;color:#5b6577;font-weight:600}
.automation-group .allocation-total{margin-top:4px}
.automation-checkboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;font-size:13px;color:#102a43}
.automation-checkboxes label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(16,58,100,0.12);border-radius:10px;background:rgba(16,58,100,0.02)}
.automation-checkboxes input{width:16px;height:16px}
.automation-feedback{font-size:12px;color:#1f5f89}
.automation-feedback.error{color:#d73d4a}
.automation-feedback.success{color:#0a6e4b}
.automation-actions{display:flex;flex-wrap:wrap;gap:12px}
.missions-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.missions-head h2{margin:0;font-size:22px;font-weight:800;color:#102a43}
.missions-head p{margin:4px 0 0;color:#3e4655;font-size:14px;max-width:460px}
.missions-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.mission-card{border:1px solid rgba(16,58,100,0.08);border-radius:16px;padding:16px;background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,rgba(110,94,255,0.10),rgba(27,210,162,0.10)) border-box;display:flex;flex-direction:column;gap:12px;position:relative}
.mission-card.completed{box-shadow:0 12px 28px rgba(15,110,80,0.18);border-color:rgba(27,210,162,0.25)}
.mission-card.in_progress{box-shadow:0 10px 24px rgba(16,58,100,0.12)}
.mission-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 10px;border-radius:999px;background:rgba(110,94,255,0.14);color:#2c1fa5;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.mission-card.completed .mission-badge{background:rgba(27,210,162,0.14);color:#096546}
.mission-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#5b6577}
.mission-meta span{display:flex;align-items:center;gap:4px}
.mission-title{font-size:18px;font-weight:700;color:#102a43;margin:0}
.mission-desc{margin:0;color:#3e4655;font-size:13px;line-height:1.5}
.mission-progress{width:100%;height:12px;border-radius:999px;background:rgba(16,58,100,0.08);overflow:hidden;position:relative}
.mission-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(110,94,255,0.85),rgba(27,210,162,0.85));transition:width .4s ease}
.mission-stats{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#1f5f89}
.mission-actions{margin:0;padding-left:18px;color:#3e4655;font-size:12px;line-height:1.5}
.mission-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#5b6577;margin-top:auto}
.mission-empty{padding:20px;border:1px dashed rgba(16,58,100,0.18);border-radius:14px;text-align:center;color:#5b6577;font-size:13px}
.dashboard-panel iframe{
  width:100%;
  border:0;
  min-height:520px;
  background:transparent;
}
.social-copy-card .social-copy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-top:12px;}
.social-copy-card .social-copy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap;}
.social-copy-card .social-copy-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.social-copy-card .social-copy-block{display:flex;flex-direction:column;gap:8px;height:100%;}
.social-copy-card .social-copy-text{margin:0;padding:14px;border:1px solid rgba(16,58,100,0.12);border-radius:12px;background:#f8f9ff;min-height:150px;white-space:pre-wrap;font-family:var(--mono,monospace);font-size:13px;flex:1;}
.social-copy-card .social-label{margin:0;font-weight:700;font-size:14px;color:#0f172a;}
.social-copy-card .social-sub{display:block;font-size:12px;color:#4b5a72;}
@media (max-width: 720px){
  .social-copy-card .social-copy-grid{grid-template-columns:1fr;}
}

#futuresDbStatus{margin-top:6px;}
.micro.success{color:#0a7f3f;}
.micro.error{color:#b00020;}
.alert-box{margin:8px 0 14px;border:1px solid rgba(16,58,100,0.12);background:#f8f9ff;color:#0f172a;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:600;display:flex;gap:8px;align-items:center;}
.alert-box.warning{border-color:rgba(176,0,32,0.25);background:#fff5f5;color:#b00020;}
.alert-box.info{border-color:rgba(16,58,100,0.18);background:#f0f5ff;color:#0f172a;}
.alert-icon{font-size:16px;}
.btn[disabled]{opacity:0.6;cursor:not-allowed;}

/* Futures bot layout */
.futures-card{
  background:linear-gradient(135deg,rgba(74,95,211,0.08),rgba(255,255,255,0.96));
  border:1px solid var(--border-soft,#e5e9f6);
  box-shadow:0 16px 38px rgba(17,24,39,0.08);
}
.futures-card h2,.futures-card h3{
  display:flex;
  align-items:center;
  gap:10px;
}
.futures-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px 18px;
}
.futures-grid .form-field{margin-bottom:10px;}
.futures-grid .compact-input{
  max-width:220px;
  min-width:140px;
  padding:8px 12px;
  border-radius:10px;
}
.futures-grid .pill-select{
  background:linear-gradient(90deg,rgba(110,94,255,0.08),rgba(27,210,162,0.08));
  border:1px solid rgba(16,58,100,0.12);
  font-weight:700;
}
.futures-grid .compact-input:focus{
  outline:2px solid rgba(72,80,255,0.35);
  border-color:rgba(72,80,255,0.35);
}
.futures-card .stat-card{background:var(--card-soft,#f8f9ff);}
.futures-conn-card{
  border:1px solid rgba(16,58,100,0.08);
  border-radius:14px;
  padding:14px;
  background:var(--card,#fff);
  box-shadow:0 12px 24px rgba(15,23,42,0.06);
}
.futures-conn-card h4{margin:0 0 10px;font-size:16px;font-weight:800;color:#0f172a;}
@media (max-width: 720px){
  .futures-grid{grid-template-columns:1fr;}
}
.profile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.profile-card{
  border:1px solid rgba(16,58,100,0.08);
  border-radius:14px;
  padding:18px;
  background:linear-gradient(var(--card),var(--card)) padding-box,
    linear-gradient(135deg,rgba(110,94,255,0.08),rgba(27,210,162,0.08)) border-box;
}
.profile-card h3{margin:0;font-size:18px;font-weight:700;color:#102a43}
.profile-card p{margin:6px 0 0;color:#3e4655;font-size:13px;line-height:1.5}
.profile-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:420px;
}
.profile-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:#1f5f89;
  font-weight:600;
}
.profile-form input{
  padding:11px 12px;
  border-radius:10px;
  border:1px solid rgba(16,58,100,0.16);
  font-size:14px;
}
.profile-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.profile-feedback{
  font-size:13px;
  color:#1f5f89;
}
.profile-feedback.error{color:#d73d4a}
.profile-feedback.success{color:#0a6e4b}
.support-card .support-thread{
  border:1px solid rgba(16,58,100,0.12);
  border-radius:12px;
  padding:12px;
  max-height:260px;
  overflow:auto;
  background:rgba(247,249,255,0.7);
}
.support-card .support-msg{
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:10px;
  background:#fff;
  border:1px solid rgba(16,58,100,0.08);
}
.support-card .support-msg.user{border-color:rgba(27,210,162,0.25);background:rgba(27,210,162,0.06);}
.support-card .support-msg.support{border-color:rgba(110,94,255,0.25);background:rgba(110,94,255,0.06);}
.support-card .support-meta{font-size:11px;color:#6b738d;margin-bottom:4px;}
.support-card .support-text{font-size:14px;color:#0f172a;white-space:pre-wrap;}
.support-card .support-form{margin-top:10px;display:flex;flex-direction:column;gap:8px;}
.support-card textarea{
  width:100%;
  border:1px solid rgba(16,58,100,0.14);
  border-radius:12px;
  padding:10px;
  font-size:14px;
  min-height:70px;
  resize:vertical;
}
.support-card .support-actions{display:flex;align-items:center;gap:12px;}
.support-emoji-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0;
  position:relative;
}
.emoji-panel{
  position:absolute;
  top:auto;
  bottom:calc(100% + 6px);
  left:0;
  z-index:5;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  padding:8px;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:12px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,0.14);
  min-width:200px;
  max-width:240px;
  max-height:130px;
  overflow:auto;
}
[hidden]{display:none!important;}
.emoji-panel button{
  font-size:18px;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:6px;
  border-radius:10px;
  transition:background .15s ease, transform .15s ease;
}
.emoji-panel button:hover{background:rgba(0,0,0,0.06); transform:translateY(-1px);}
.support-empty{font-size:13px;color:#6b7280;}
.support-conversations{
  max-height:320px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.support-convo{
  padding:10px 12px;
  border:1px solid rgba(16,58,100,0.12);
  border-radius:10px;
  background:#f8fafc;
  cursor:pointer;
}
.support-convo.active{
  border-color:rgba(110,94,255,0.5);
  background:#eef2ff;
}
.support-convo .meta{
  font-size:12px;
  color:#475569;
}
.support-convo .title{
  font-weight:700;
  color:#0f172a;
  font-size:14px;
}
.support-panel .support-thread{
  border:1px solid rgba(16,58,100,0.12);
  border-radius:12px;
  padding:12px;
  max-height:360px;
  overflow:auto;
  background:rgba(247,249,255,0.7);
  margin-bottom:10px;
}
.support-panel .support-msg{
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:10px;
  background:#fff;
  border:1px solid rgba(16,58,100,0.08);
}
.support-panel .support-msg.user{
  border-color:rgba(27,210,162,0.25);
  background:rgba(27,210,162,0.06);
}
.support-panel .support-msg.support{
  border-color:rgba(110,94,255,0.25);
  background:rgba(110,94,255,0.06);
}
.support-panel .support-meta{
  font-size:11px;
  color:#6b738d;
  margin-bottom:4px;
}
.support-panel .support-text{
  font-size:14px;
  color:#0f172a;
  white-space:pre-wrap;
}
.support-panel .support-form{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.support-panel textarea{
  width:100%;
  border:1px solid rgba(16,58,100,0.14);
  border-radius:12px;
  padding:10px;
  font-size:14px;
  min-height:70px;
  resize:vertical;
}
.support-panel .support-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.support-panel .support-emoji-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0;
}
.support-meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:6px 0;
}
.support-attachments{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.support-attachments a{
  font-size:12px;
  color:#1f5f89;
  text-decoration:underline;
  word-break:break-all;
}
.support-new-select{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}
.support-select-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.support-select-row select{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(16,58,100,0.14);
  background:#fff;
}
.delivery-health-note{
  font-size:12px;
  color:#5b6577;
  margin-top:4px;
}
.badge-health{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  margin-left:6px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.heading-with-icon{
  display:flex;
  align-items:center;
  gap:8px;
}
.heading-with-icon::before{
  content:"";
  width:24px;
  height:24px;
  border-radius:10px;
  background:var(--heading-icon-color,#6e5eff);
  mask:var(--heading-icon) center/14px no-repeat;
}
.heading-with-icon.hicon-free{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l3 6 7 .8-5 4.9 1.3 7.3L12 18l-6.3 3.9L7 14.7 2 9.8 9 9z' fill='white'/%3E%3C/svg%3E");--heading-icon-color:#1bd2a2;}
.heading-with-icon.hicon-telegram{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l6 2 7-7M10 14l2 4 3-8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");--heading-icon-color:#2aabee;}
.heading-with-icon.hicon-discord{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5s-3 1-4 2.5V17c0 1.5 3 2.5 3 2.5l1-2s2 1 4 1s4-1 4-1l1 2s3-1 3-2.5V7.5C19 6 16 5 16 5l-.7 1.4M9 10.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2Zm6 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2Z' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");--heading-icon-color:#5865f2;}
.heading-with-icon.hicon-x{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4l12 16M18 4L6 20' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");--heading-icon-color:#1d9bf0;}
.heading-with-icon.hicon-api{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 8h10M7 12h6M7 16h10' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");--heading-icon-color:#0ac5ff;}
.heading-with-icon.hicon-embed{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4-4m-4 4l4 4m10-4-4-4m4 4-4 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");--heading-icon-color:#ff9f43;}
.heading-with-icon.hicon-premium{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 16l1.5-8L9 12l3-6 3 6 3.5-5 1.5 9z' fill='white'/%3E%3C/svg%3E");--heading-icon-color:#ff6fb5;}
.heading-with-icon.hicon-referral{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='7' cy='7' r='3' fill='white'/><circle cx='17' cy='7' r='3' fill='white'/><path d='M4 19c0-2.2 2-4 5-4s5 1.8 5 4' stroke='white' stroke-width='2' stroke-linecap='round' fill='none'/><path d='M14 19c0-1.7 1.6-3 3.5-3S21 17.3 21 19' stroke='white' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");--heading-icon-color:#ff9a5a;}
.heading-with-icon.hicon-delivery{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h13l5 5v5h-4m-14 0h14m-14 0v-5m14 5V7m-9 8h4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");--heading-icon-color:#0a6e4b;}
.heading-with-icon.hicon-profile{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='white'/><path d='M5 20a7 7 0 0 1 14 0' stroke='white' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");--heading-icon-color:#8896ff;}
.heading-with-icon.hicon-whatsapp{--heading-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-9 9c0 1.7.5 3.3 1.5 4.7L3 21l4.5-1.2A9 9 0 1 0 12 3Zm-4 7.5c0 3.1 3.4 6.5 6.5 6.5.8 0 1.6-.3 2.2-.8l-2.1-1.7c-.6.3-1.2.4-1.8.1-1.1-.5-2.3-1.7-2.8-2.9-.3-.7-.2-1.2.2-1.8L9.2 8.3C8.7 8.9 8 9.7 8 10.5Z' fill='white'/%3E%3C/svg%3E");--heading-icon-color:#25d366;}
.badge-health.status-healthy{background:rgba(27,210,162,0.15);color:#0a6e4b}
.badge-health.status-failing{background:rgba(220,53,69,0.18);color:#7d1a1f}
.badge-health.status-stale{background:rgba(255,193,7,0.18);color:#8a5b00}
.badge-health.status-pending{background:rgba(110,94,255,0.18);color:#2c1fa5}
.badge-health.status-missing{background:rgba(16,58,100,0.12);color:#5b6577}
.automation-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.automation-card{
  border:1px solid rgba(16,58,100,0.08);
  border-radius:14px;
  padding:18px;
  background:linear-gradient(var(--card),var(--card)) padding-box,
    linear-gradient(135deg,rgba(27,210,162,0.12),rgba(110,94,255,0.12)) border-box;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.automation-card h3{margin:0;font-size:18px;font-weight:700;color:#102a43}
.automation-card ul{margin:0;padding-left:18px;color:#3e4655;font-size:13px;line-height:1.5}
.automation-card .metric{
  font-size:28px;
  font-weight:800;
  color:#102a43;
}
.automation-card .metric-sub{
  font-size:12px;
  color:#5b6577;
}
.subscription-console{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.freesignal-console{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.freesignal-console .onboarding-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.freesignal-steps{
  margin:6px 0 0;
  padding-left:18px;
  color:#3e4655;
  font-size:13px;
  line-height:1.5;
}
.freesignal-steps li{
  margin-bottom:4px;
}
.freesignal-steps li:last-child{
  margin-bottom:0;
}
.developer-card code{
  font-family:var(--mono, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace);
  font-size:12px;
  color:#0f3a64;
}
.dev-use-cases{
  margin:0;
  padding-left:18px;
  color:#3e4655;
  font-size:13px;
  line-height:1.5;
}
.dev-use-cases li{
  margin-bottom:4px;
}
.social-highlights{
  margin:12px 0;
  padding-left:18px;
  color:#3e4655;
  font-size:13px;
  line-height:1.5;
}
.dev-snippets{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.snippet-card{
  border:1px solid rgba(16,58,100,0.12);
  border-radius:12px;
  padding:12px;
  background:rgba(16,58,100,0.02);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.snippet-label{
  font-size:12px;
  font-weight:700;
  color:#1f5f89;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.dev-snippets pre{
  margin:0;
  background:#fff;
  border-radius:10px;
  padding:10px;
  font-size:12px;
  overflow:auto;
  border:1px solid rgba(16,58,100,0.08);
}
.embed-card .embed-header{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.embed-preview{
  border:1px solid rgba(16,58,100,0.1);
  border-radius:16px;
  overflow:hidden;
  background:#050b1a;
}
.embed-preview iframe{
  width:100%;
  min-height:280px;
  border:0;
  background:#000;
}
.embed-controls{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin-bottom:12px;
}
.embed-controls label{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  font-weight:600;
  color:#1f5f89;
}
.embed-controls input,
.embed-controls select{
  border:1px solid rgba(16,58,100,0.16);
  border-radius:10px;
  padding:8px 10px;
  font-size:14px;
}
.embed-preview{
  min-height:260px;
  position:relative;
}
.embed-preview-state{
  padding:24px;
  color:#cbd5ff;
  font-size:14px;
}
.embed-status{
  margin-top:6px;
  color:#3e4655;
}
.embed-preview[data-theme="dark"]{
  background:radial-gradient(circle at top,#151c3a,#050b1a);
}
.embed-preview[data-theme="light"]{
  background:#f4f7ff;
  border-color:rgba(16,58,100,0.15);
}
.embed-widget{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  font-size:13px;
}
.embed-widget-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.embed-widget-head .embed-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:4px 10px;
  border-radius:999px;
}
.embed-widget-head a{
  font-size:12px;
  text-decoration:none;
  font-weight:600;
  color:inherit;
}
.embed-widget-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.embed-widget-item{
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  border:1px solid rgba(255,255,255,0.18);
  background:linear-gradient(135deg,rgba(17,32,61,0.85),rgba(7,16,38,0.85));
  box-shadow:0 10px 26px rgba(5,12,24,0.4);
}
.embed-preview[data-theme="light"] .embed-widget-item{
  border:1px solid rgba(16,58,100,0.12);
  background:linear-gradient(135deg,#ffffff,#f4f7ff);
  box-shadow:0 12px 28px rgba(15,23,42,0.08);
}
.embed-widget-item.direction-buy{
  border-color:rgba(27,210,162,0.45);
  background:linear-gradient(135deg,rgba(27,210,162,0.35),rgba(110,94,255,0.18));
}
.embed-widget-item.direction-sell{
  border-color:rgba(246,70,93,0.4);
  background:linear-gradient(135deg,rgba(246,70,93,0.32),rgba(110,94,255,0.15));
}
.embed-preview[data-theme="light"] .embed-widget-item.direction-buy{
  background:linear-gradient(135deg,rgba(206,255,238,0.95),rgba(244,247,255,0.95));
}
.embed-preview[data-theme="light"] .embed-widget-item.direction-sell{
  background:linear-gradient(135deg,rgba(255,232,234,0.95),rgba(248,244,255,0.95));
}
.embed-widget-item h4{
  margin:0;
  font-size:14px;
}
.embed-widget-item .meta{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:rgba(255,255,255,0.85);
}
.embed-preview[data-theme="light"] .embed-widget-item .meta{
  color:#3e4655;
}
.embed-widget-item .price{
  font-weight:700;
  font-size:16px;
}
.embed-widget-foot{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  display:flex;
  justify-content:space-between;
  color:rgba(255,255,255,0.65);
}
.embed-preview[data-theme="light"] .embed-widget-foot{
  color:#5b6577;
}
.subscription-card{
  border:1px solid rgba(16,58,100,0.12);
  border-radius:18px;
  padding:24px;
  background:linear-gradient(var(--card),var(--card)) padding-box,
    linear-gradient(135deg,rgba(110,94,255,0.10),rgba(27,210,162,0.10)) border-box;
  box-shadow:var(--shadow-md);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.subscription-card h2{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:#102a43;
}
.subscription-card p{
  margin:0;
  color:#3e4655;
  font-size:14px;
  line-height:1.6;
}
.subscription-highlights{
  margin:0;
  padding-left:20px;
  color:#3e4655;
  font-size:13px;
  line-height:1.6;
}
.subscription-status{
  font-size:13px;
  color:#1f5f89;
}
.subscription-status.error{color:#d73d4a;}
.subscription-status.success{color:#0a6e4b;}
.subscription-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;
}
.subscription-stats .stat-card{
  gap:8px;
  min-height:130px;
}
.subscription-stats .stat-card .label{
  font-size:11px;
  letter-spacing:.08em;
  color:#5b6577;
}
.subscription-stats .stat-card .val{
  margin-top:4px;
  font-size:clamp(1.1rem,1.5vw,1.5rem);
}
.subscription-stats .stat-card .sub{
  font-size:12px;
  color:#7d8699;
}
.stat-card.delivery-health-card{
  background:
    linear-gradient(var(--card,#fff),var(--card,#fff)) padding-box,
    linear-gradient(135deg,rgba(27,210,162,0.18),rgba(110,94,255,0.18)) border-box;
  box-shadow:0 18px 36px rgba(15,23,42,0.12);
}
.subscription-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.subscription-actions button{
  border:none;
  border-radius:12px;
  padding:10px 18px;
  font-weight:700;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease;
}
.subscription-actions .primary{
  background:#4850ff;
  color:#fff;
  box-shadow:0 12px 24px rgba(72,80,255,0.28);
}
.subscription-actions .primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(72,80,255,0.34);
}
.subscription-actions .ghost{
  background:rgba(16,58,100,0.05);
  color:#1b2f4a;
}
.subscription-actions .danger{
  background:rgba(215,61,74,0.12);
  color:#a4152c;
}
.subscription-actions .danger:hover{
  background:rgba(215,61,74,0.18);
}
.delivery-health-section{
  border-top:1px solid rgba(16,58,100,0.08);
  padding-top:16px;
  margin-top:4px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.delivery-health-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.delivery-health-head strong{font-size:14px;color:#102a43}
.delivery-health-summary{font-size:12px;color:#5b6577}
.delivery-health-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:10px;
}
.delivery-health-item{
  display:flex;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(16,58,100,0.12);
  border-radius:12px;
  align-items:center;
  background:var(--card);
}
.delivery-health-icon{font-size:18px}
.delivery-health-meta{font-size:12px;color:#5b6577}
.delivery-health-item.status-healthy{border-color:rgba(27,210,162,0.45);background:rgba(27,210,162,0.08)}
.delivery-health-item.status-failing{border-color:rgba(220,53,69,0.5);background:rgba(220,53,69,0.08)}
.delivery-health-item.status-stale{border-color:rgba(255,193,7,0.4);background:rgba(255,193,7,0.08)}
.delivery-health-item.status-pending{border-color:rgba(110,94,255,0.4);background:rgba(110,94,255,0.08)}
.delivery-health-item.status-missing{border-style:dashed;border-color:rgba(16,58,100,0.2)}
.delivery-health-empty{font-size:12px;color:#7d8699}
.renewal-reminder{
  display:none;
  border:1px solid rgba(255,193,7,0.6);
  border-radius:14px;
  padding:14px;
  background:rgba(255,193,7,0.12);
  align-items:center;
  gap:12px;
}
.renewal-reminder strong{display:block;font-size:14px;color:#8a5b00}
.renewal-reminder p{margin:4px 0 0;font-size:13px;color:#5b3d00}
.referral-performance-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
}
.referral-stat{
  padding:12px;
  border:1px solid rgba(16,58,100,0.12);
  border-radius:12px;
  background:rgba(16,58,100,0.02);
}
.referral-stat .label{
  font-size:12px;
  color:#5b6577;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.referral-stat .value{
  font-size:22px;
  font-weight:700;
  color:#102a43;
}
.referral-stat .sub{
  font-size:12px;
  color:#7d8699;
}
.page-shell.tight-spacing{
  margin:var(--layout-tight-space-top) auto var(--layout-tight-space-bottom);
}
.free-compact{
  gap:16px;
  padding:16px;
}
.free-compact .subscription-card{
  padding:16px;
}
.free-compact .social-copy-grid{
  grid-template-columns:1fr;
  gap:12px;
}
.free-compact .social-copy-text{
  min-height: auto;
  padding:12px;
}
