/* =====================
   SHABIX — PREMIUM CSS
   ===================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --shabix-gold:    #b8922a;
  --shabix-gold2:   #d4aa4e;
  --shabix-gold3:   #f0d080;
  --shabix-dark:    #0f1117;
  --shabix-dark2:   #161b25;
  --shabix-dark3:   #1e2535;
  --shabix-border:  rgba(184,146,42,0.18);
  --shabix-border2: rgba(255,255,255,0.06);
  --shabix-text:    #e2e4ea;
  --shabix-muted:   #6b7589;
  --shabix-radius:  18px;
  --shabix-shadow:  0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(184,146,42,0.1);
  --f-display:      'Cormorant Garamond', Georgia, serif;
  --f-body:         'DM Sans', system-ui, sans-serif;
}

/* ---- OVERLAY ---- */
.shabix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,6,10,0.75);
  backdrop-filter: blur(8px) saturate(0.8);
  -webkit-backdrop-filter: blur(8px) saturate(0.8);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 16px;
}
.shabix-overlay.shabix-visible {
  opacity: 1;
  pointer-events: all;
}

/* ---- POPUP ---- */
.shabix-popup {
  background: var(--shabix-dark2);
  border-radius: var(--shabix-radius);
  box-shadow: var(--shabix-shadow);
  max-width: 452px;
  width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
  border: 1px solid var(--shabix-border);
  font-family: var(--f-body);
}
/* Gold top line */
.shabix-popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shabix-gold2), transparent);
}
.shabix-overlay.shabix-visible .shabix-popup {
  transform: translateY(0) scale(1);
}
.shabix-popup-inner {
  padding: 32px 28px 24px;
}

/* Close */
.shabix-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--shabix-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
  letter-spacing: 0;
  font-family: var(--f-body);
}
.shabix-close:hover {
  background: rgba(255,255,255,0.09);
  color: var(--shabix-text);
  border-color: rgba(255,255,255,0.14);
}

/* Badge */
.shabix-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,146,42,0.07);
  border: 1px solid rgba(184,146,42,0.22);
  border-radius: 4px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.shabix-badge-dot {
  width: 6px; height: 6px;
  background: #3ecf6e;
  border-radius: 50%;
  animation: shabixPulse 2s infinite;
  flex-shrink: 0;
}
.shabix-badge span:last-child {
  color: var(--shabix-gold2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-family: var(--f-body);
}
@keyframes shabixPulse {
  0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(62,207,110,0.4); }
  50%      { opacity:0.8; box-shadow: 0 0 0 4px rgba(62,207,110,0); }
}

/* Title */
.shabix-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.2;
  font-family: var(--f-display);
  letter-spacing: -0.3px;
}
.shabix-subtitle {
  background: linear-gradient(135deg, var(--shabix-gold2), var(--shabix-gold3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  font-family: var(--f-display);
  letter-spacing: -0.3px;
}
.shabix-desc {
  color: var(--shabix-muted);
  font-size: 13px;
  margin: 0 0 22px;
  line-height: 1.65;
  font-family: var(--f-body);
  font-weight: 400;
}

/* Section labels */
.shabix-packages-label,
.shabix-expert-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shabix-muted);
  margin-bottom: 10px;
  font-family: var(--f-body);
}
.shabix-expert-label {
  margin-top: 22px;
  margin-bottom: 12px;
}

/* Divider line for expert label */
.shabix-expert-label {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.shabix-expert-label::before,
.shabix-expert-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--shabix-border2);
}

/* Packages grid */
.shabix-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shabix-pkg-item {
  background: var(--shabix-dark3);
  border: 1px solid var(--shabix-border2);
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
  color: var(--shabix-text);
  position: relative;
  overflow: hidden;
}
.shabix-pkg-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,146,42,0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.shabix-pkg-item:hover {
  border-color: rgba(184,146,42,0.35);
  background: var(--shabix-dark3);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.shabix-pkg-item:hover::after { opacity: 1; }

.shabix-pkg-icon {
  width: 32px; height: 32px;
  background: rgba(184,146,42,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.shabix-pkg-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  font-family: var(--f-body);
}

/* Expert buttons */
.shabix-expert-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.shabix-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.2s;
  color: white;
  font-family: var(--f-body);
}
.shabix-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}
.shabix-call-btn {
  background: var(--shabix-dark3);
  border: 1px solid var(--shabix-border2);
}
.shabix-call-btn:hover {
  background: #242d40;
  border-color: rgba(255,255,255,0.1);
}
.shabix-wa-btn {
  background: #054c43;
  border: 1px solid rgba(37,211,102,0.15);
}
.shabix-wa-btn:hover {
  background: #0a6358;
  box-shadow: 0 6px 24px rgba(37,211,102,0.15);
}
.shabix-btn svg { flex-shrink: 0; opacity: 0.85; }
.shabix-btn-label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.1px;
}
.shabix-btn-sub {
  display: block;
  font-size: 11px;
  opacity: 0.5;
  margin-top: 2px;
  font-weight: 400;
}

/* Footer */
.shabix-nospam {
  text-align: center;
  color: rgba(107,117,137,0.6);
  font-size: 11px;
  margin: 20px 0 5px;
  font-family: var(--f-body);
  letter-spacing: 0.2px;
}
.shabix-powered {
  text-align: center;
  color: rgba(255,255,255,0.12);
  font-size: 10px;
  margin: 0;
  font-family: var(--f-body);
}

/* ==============================
   FLOATING BAR
   ============================== */
.shabix-bar {
  position: fixed;
  z-index: 999997;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  font-family: var(--f-body);
}
.shabix-bar.shabix-bar-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.shabix-bar.shabix-bar-left {
  left: 20px;
  transform: translateX(0) translateY(110px);
}
.shabix-bar.shabix-bar-left.shabix-bar-visible {
  transform: translateX(0) translateY(0);
}
.shabix-bar.shabix-bar-right {
  left: auto; right: 20px;
  transform: translateX(0) translateY(110px);
}
.shabix-bar.shabix-bar-right.shabix-bar-visible {
  transform: translateX(0) translateY(0);
}

.shabix-bar-online {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,17,23,0.92);
  border: 1px solid rgba(184,146,42,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  color: var(--shabix-text);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(184,146,42,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.2px;
}
.shabix-bar-dot {
  width: 7px; height: 7px;
  background: #3ecf6e;
  border-radius: 50%;
  animation: shabixPulse 2s infinite;
  flex-shrink: 0;
}

.shabix-bar-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.shabix-bar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.18s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.15px;
}
.shabix-bar-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}
.shabix-bar-call {
  background: rgba(22,27,37,0.95);
  border: 1px solid rgba(255,255,255,0.09);
}
.shabix-bar-call:hover { background: rgba(36,45,64,0.98); }

.shabix-bar-wa {
  background: #1a7a4a;
  border: 1px solid rgba(37,211,102,0.2);
  color: white;
}
.shabix-bar-wa:hover {
  background: #1e8f55;
  box-shadow: 0 6px 24px rgba(37,211,102,0.2);
}
.shabix-bar-contact {
  background: rgba(22,27,37,0.95);
  border: 1px solid rgba(255,255,255,0.09);
}
.shabix-bar-contact:hover { background: rgba(36,45,64,0.98); }

/* Responsive */
@media (max-width: 520px) {
  .shabix-popup { border-radius: 14px; }
  .shabix-popup-inner { padding: 24px 18px 20px; }
  .shabix-title { font-size: 22px; }
  .shabix-subtitle { font-size: 20px; }
  .shabix-packages { gap: 7px; }
  .shabix-expert-btns { grid-template-columns: 1fr 1fr; }
  .shabix-bar-btn { padding: 11px 14px; font-size: 12px; }
  .shabix-bar-btn span { display: none; }
  .shabix-bar-btn { padding: 13px 16px; }
  .shabix-bar-online { font-size: 11px; padding: 5px 13px; }
}
