/* ========== Panic Widget ========== */
.panic-widget {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  background: radial-gradient(circle at top left, rgba(148, 163, 253, 0.18), transparent 55%)
              , #050b12;
  border-radius: 24px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(148, 163, 253, 0.25);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
}

.panic-header {
  margin-bottom: 16px;
}

.panic-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a5b4fc;
  margin-bottom: 6px;
}

.panic-title {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.panic-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9ca3af;
}

/* Live badge upgrade */
.panic-live {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.65);
  gap: 8px;
  font-size: 11px;
  color: #bbf7d0;
  position: relative;
  overflow: hidden;
}

/* Pulse dot */
.panic-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

/* Shimmer animation */
.panic-live::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 60%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  animation: liveShine 2.8s ease infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes liveShine {
  0% { left: -100%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

.panic-cards {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panic-card {
  width: 100%;
  border: none;
  padding: 10px 11px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(148, 163, 253, 0.14), transparent 55%)
              , #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.panic-card:hover {
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.08), transparent 60%)
              , #020617;
  border-color: rgba(148, 163, 253, 0.8);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.panic-card.active {
  border-color: rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.6);
}

.panic-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.8);
}

/* Different gradients */
.panic-icon-gold   { background: linear-gradient(145deg, #f97316, #facc15); }
.panic-icon-pink   { background: linear-gradient(145deg, #ec4899, #a855f7); }
.panic-icon-blue   { background: linear-gradient(145deg, #38bdf8, #6366f1); }
.panic-icon-violet { background: linear-gradient(145deg, #8b5cf6, #4f46e5); }
.panic-icon-green  { background: linear-gradient(145deg, #22c55e, #a3e635); }
.panic-icon-cyan   { background: linear-gradient(145deg, #06b6d4, #0ea5e9); }

.panic-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panic-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.panic-card-sub {
  font-size: 11px;
  color: #9ca3af;
}

.panic-brutal-btn {
  margin-top: 14px;
  width: 100%;
  border: none;
  padding: 11px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, #4f46e5, #ec4899, #f97316);
  background-size: 180% 180%;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: panicGradientMove 8s ease infinite;
}

.panic-brutal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 1);
}

@keyframes panicGradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Drawer + Overlay */

.panic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9980;
}

.panic-overlay.active {
  opacity: 1;
  visibility: visible;
}

.panic-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.08), transparent 60%)
              , #020617;
  border-left: 1px solid rgba(148, 163, 253, 0.35);
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.9);
  padding: 22px 20px 26px;
  color: #f9fafb;
  z-index: 9990;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.panic-panel.active {
  right: 0;
}

.panic-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.panic-panel-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.panic-panel-title {
  margin: 0 0 4px;
  font-size: 20px;
}

.panic-panel-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: #9ca3af;
}

.panic-panel-close {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  width: 30px;
  height: 30px;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}

.panic-panel-close:hover {
  background: rgba(31, 41, 55, 1);
}

.panic-selected-wrap {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 253, 0.6);
}

.panic-selected-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.panic-selected-text {
  font-size: 13px;
  color: #e5e7eb;
}

/* Form */
.panic-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panic-label {
  font-size: 12px;
  color: #cbd5e1;
  display: block;
}

.panic-input {
  margin-top: 4px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  padding: 10px 11px;
  color: #f9fafb;
  font-size: 13px;
  box-sizing: border-box;
}

.panic-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
}

.panic-textarea {
  resize: vertical;
  min-height: 72px;
}

.panic-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panic-phone-code {
  padding: 9px 10px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid #1f2937;
  font-size: 13px;
  color: #e5e7eb;
  flex-shrink: 0;
}

.panic-submit {
  margin-top: 4px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 12px 14px;
  background: linear-gradient(120deg, #4f46e5, #ec4899, #f97316);
  background-size: 170% 170%;
  color: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
  animation: panicGradientMove 7s ease infinite;
}

.panic-submit:hover {
  transform: translateY(-1px);
}

.panic-trust {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 12px;
  color: #9ca3af;
}

.panic-trust div {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .panic-widget {
    max-width: 100%;
  }
}

/* <-- THE BAD RESET BLOCK HAS BEEN REMOVED HERE --> */

.sm-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 35px rgba(0,0,0,0.12);
    width: 100%;
    font-family: system-ui, sans-serif;
}

.sm-header .sm-tag {
    font-size: 12px;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 6px;
}

.sm-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.sm-header p {
    color: #475569;
    font-size: 14px;
    margin: 6px 0 14px;
}

.sm-live {
    background: #ecfdf5;
    color: #047857;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid #a7f3d0;
    margin-bottom: 20px;
}

.sm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: .2s;
    align-items: flex-start;
}

.sm-item:hover {
    background: #f1f5f9;
}

.sm-item.active {
    border-color: #ff4dbf;
    background: #fff0fa;
}

.sm-ico {
    font-size: 22px;
    margin-top: 2px;
}

.sm-item strong {
    font-size: 15px;
    color: #1e293b;
}

.sm-item p {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.sm-cta {
    margin-top: 22px;
    background: linear-gradient(45deg, #ff5c8a, #ff985f);
    color: #fff;
    padding: 16px;
    width: 100%;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    text-align: center;
}

.sm-cta:hover {
    opacity: .9;
    transform: translateY(-2px);
}

/* Fix sidebar container */
.smart-match-box {
    width: 100 percent;
    max-width: 100 percent;
    overflow: hidden;
    box-sizing: border-box;
}

/* Fix CTA button width */
.match-final-btn {
    display: block;
    width: 100 percent;
    padding: 18px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(90deg,#ff8b8b,#ff6f48);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 20px;
    box-sizing: border-box;
}

#advisorPanel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 360px;
    max-width: 90%;
    height: 100vh;
    background: #111827;
    color: #fff;
    padding: 22px;
    transition: right .35s ease;
    z-index: 99999;
    overflow-y: auto;
}

#advisorPanel.active {
    right: 0;
}

#advisorOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 99998;
}

#advisorOverlay.active {
    opacity: 1;
    visibility: visible;
}
/* Advisor Toast */
.advisor-toast {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
    opacity: 0;
    transition: 0.4s ease;
    z-index: 999999;
}

/* Show animation */
.advisor-toast.show {
    bottom: 30px;
    opacity: 1;
}

/* Avatar circle */
.advisor-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff7a7a,#ffb36b);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typing dots */
.advisor-typing {
    font-size: 18px;
    letter-spacing: 3px;
    animation: typingBlink 1s infinite;
    color: #a5b4fc;
}

@keyframes typingBlink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.advisor-msg p {
    font-size: 13px;
    margin: 0;
}
/* LIVE SIGNAL — Premium V2 */
.sm-live-premium {
    position: relative;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 22px;

    background: linear-gradient(135deg, #0f172a, #0a1a3a, #082a44);
    border: 2px solid transparent;

    /* Animated gradient border */
    background-image: 
        linear-gradient(#0f172a, #0f172a),
        linear-gradient(120deg, #22d3ee, #818cf8, #34d399, #f472b6);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    animation: smBorderMove 6s linear infinite;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Border animation */
@keyframes smBorderMove {
    0% { background-position: 0% 50%, 0% 50%; }
    50% { background-position: 100% 50%, 100% 50%; }
    100% { background-position: 0% 50%, 0% 50%; }
}

/* GLOW DOT — premium circle */
.sm-live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    background: #4ade80;
    box-shadow: 0 0 14px 4px rgba(74, 222, 128, 0.9);
    animation: pulseDot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

/* Realistic pulse */
@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.55); opacity: 0.55; }
    100% { transform: scale(1); opacity: 1; }
}

.sm-live-row {
    display: flex;
    align-items: center;
}
.sm-live-premium {
    animation: smBorderMove 6s linear infinite, smGlow 3s ease-in-out infinite;
}

@keyframes smGlow {
    0% { box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 10px 38px rgba(129,140,248,0.35); }
    100% { box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
}