/* =========================================
   SDN Hostinger — Main CSS
   ========================================= */

/* Custom Properties */
:root {
  --bg-primary:   #0f1117;
  --bg-secondary: #1a1d2e;
  --bg-card:      #1e2235;
  --accent:       #7b5cfa;
  --accent-hover: #6344e8;
  --cyan:         #00c2ff;
  --text:         #f0f0f5;
  --muted:        #8a8fa8;
  --border:       rgba(123,92,250,0.25);
}

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* Selection */
::selection { background: rgba(123,92,250,0.35); color: #fff; }

/* ---- Gradient Text ---- */
.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #00c2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-warm {
  background: linear-gradient(135deg, #f472b6 0%, #7b5cfa 60%, #00c2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Backgrounds ---- */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(123,92,250,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(0,194,255,0.10) 0%, transparent 55%),
    #0f1117;
}
.section-alt { background: #1a1d2e; }
.grid-dots {
  background-image: radial-gradient(rgba(123,92,250,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-gradient {
  background: linear-gradient(135deg, #3b1fa8 0%, #7b5cfa 50%, #00c2ff 100%);
}

/* ---- Glow / Shadow ---- */
.glow-purple { box-shadow: 0 0 40px rgba(123,92,250,0.30), 0 4px 20px rgba(0,0,0,0.4); }
.glow-card   { box-shadow: 0 8px 32px rgba(123,92,250,0.12), 0 2px 8px rgba(0,0,0,0.3); }
.btn-glow    { box-shadow: 0 4px 20px rgba(123,92,250,0.40); }

/* ---- Cards ---- */
.card {
  background: #1e2235;
  border: 1px solid rgba(123,92,250,0.18);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(123,92,250,0.45);
  box-shadow: 0 16px 40px rgba(123,92,250,0.18);
}
.card-popular {
  background: linear-gradient(160deg, rgba(123,92,250,0.12) 0%, rgba(0,194,255,0.06) 100%);
  border-color: rgba(123,92,250,0.55) !important;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7b5cfa;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 4px 18px rgba(123,92,250,0.35);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #6344e8;
  box-shadow: 0 6px 24px rgba(123,92,250,0.50);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #7b5cfa;
  color: #7b5cfa;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 999px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background: #7b5cfa;
  color: #fff;
  box-shadow: 0 4px 18px rgba(123,92,250,0.30);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00c2ff;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 10px; }

/* ---- Header ---- */
.header-blur {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(15,17,23,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---- Section divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(123,92,250,0.25), transparent);
}

/* ---- Stats ---- */
.stat-card {
  background: linear-gradient(135deg, rgba(123,92,250,0.08) 0%, rgba(0,194,255,0.04) 100%);
  border: 1px solid rgba(123,92,250,0.18);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123,92,250,0.12);
  border: 1px solid rgba(123,92,250,0.25);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
}
.badge-cyan {
  background: rgba(0,194,255,0.10);
  border-color: rgba(0,194,255,0.22);
  color: #00c2ff;
}
.badge-green {
  background: rgba(52,211,153,0.10);
  border-color: rgba(52,211,153,0.22);
  color: #34d399;
}

/* ---- Pricing ---- */
.pricing-popular-badge {
  background: linear-gradient(90deg, #7b5cfa, #00c2ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Feature check ---- */
.check-item { color: #7b5cfa; }
.dash-item  { color: #4b5563; }

/* ---- Testimonials ---- */
.testimonials-wrapper { overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card { min-width: 100%; }

/* ---- FAQ ---- */
.faq-icon { transition: transform 0.25s ease; }
.faq-icon.open { transform: rotate(180deg); }

/* ---- Floating CTA (Zalo) ---- */
.zalo-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0068ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,104,255,0.45);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: zaloFloat 3s ease-in-out infinite;
}
.zalo-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(0,104,255,0.60);
}
.zalo-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e2235;
  border: 1px solid rgba(123,92,250,0.2);
  color: #f0f0f5;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.zalo-btn:hover .zalo-tooltip { opacity: 1; }

/* ---- Animations ---- */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes zaloFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.02); }
}
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes pulseRing {
  0%   { transform:scale(0.95); box-shadow:0 0 0 0 rgba(123,92,250,0.5); }
  70%  { transform:scale(1);    box-shadow:0 0 0 12px rgba(123,92,250,0); }
  100% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(123,92,250,0); }
}
.animate-float    { animation: float 4s ease-in-out infinite; }
.animate-fade-up  { animation: fadeSlideUp 0.7s ease-out both; }
.animate-pulse-ring { animation: pulseRing 2s infinite; }

/* ---- Progress bars (Dashboard) ---- */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Form ---- */
.form-field {
  width: 100%;
  background: #1e2235;
  border: 1px solid rgba(123,92,250,0.2);
  color: #f0f0f5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-field::placeholder { color: #5a5f78; }
.form-field:focus {
  outline: none;
  border-color: #7b5cfa;
  box-shadow: 0 0 0 3px rgba(123,92,250,0.18);
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 6px;
}

/* ---- Logos strip ---- */
.logo-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-item {
  font-size: 18px;
  font-weight: 700;
  color: #3f4460;
  letter-spacing: -0.5px;
  transition: color 0.2s;
  cursor: default;
}
.logo-item:hover { color: #7b5cfa; }

/* ---- Table ---- */
.feature-table th {
  background: rgba(123,92,250,0.08);
  color: #c4b5fd;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(123,92,250,0.15);
}
.feature-table td {
  padding: 13px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #8a8fa8;
}
.feature-table td:first-child {
  text-align: left;
  color: #e0e0ea;
  font-weight: 500;
}
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:hover td { background: rgba(123,92,250,0.04); }

/* ---- Step connector ---- */
.step-line {
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 1px;
  background: linear-gradient(to right, rgba(123,92,250,0.5), rgba(123,92,250,0.1));
}

/* ---- Mobile nav overlay ---- */
.mobile-nav {
  background: rgba(15,17,23,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ---- Responsive helpers ---- */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
