@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

/* ===== SHARED.CSS - Global Styles for Class Orbit ===== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4F46E5;
  --secondary: #7C3AED;
  --accent: #06B6D4;
  --background: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --primary-soft: #EEF2FF;
  --accent-soft: #ECFEFF;
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #F59E0B;
  --dark: #0F172A;
  --light-bg: #F8FAFC;
  --cyan: #06B6D4;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
}

::selection { background: rgba(79,70,229,.16); color: var(--text); }
:focus-visible {
  outline: 3px solid rgba(6,182,212,.35);
  outline-offset: 3px;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6%;
  background: #fff;
  box-shadow: 0 1px 0 var(--border), 0 12px 28px rgba(15, 23, 42, .04);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 1px 0 var(--border), 0 18px 40px rgba(15,23,42,.09); }

.logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar nav a {
  padding: 9px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-radius: 999px;
  transition: 0.25s;
  white-space: nowrap;
}
.navbar nav a:hover,
.navbar nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.navbar nav a.login-btn {
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  margin-left: 10px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(79,70,229,.22);
}
.navbar nav a.login-btn:hover { background: #4338CA; color: #fff; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 3px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== FOOTER ===== */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 50px 5% 0;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 -1px 0 rgba(255,255,255,.04);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-newsletter h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0,0,0,.16);
}
.newsletter-form input {
  padding: 12px 18px;
  width: 230px;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
}
.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 0;
}
.newsletter-form button:hover { background: #4338CA; }

.footer-contact-info span { font-size: 13px; color: #9a9a9a; }
.footer-contact-info h3 { color: var(--accent); margin-top: 5px; font-size: 20px; }
.footer-contact-info h3 a { color: var(--cyan); }

.footer-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 20px 0 35px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h3 { color: #fff; margin-bottom: 14px; font-size: 17px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-col p { margin-bottom: 8px; font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #a0a0a0; font-size: 14px; transition: 0.3s; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-col p a { color: #dcdcdc; transition: 0.3s; }
.footer-col p a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  transition: 0.3s;
}
.social-icons a:hover { background: var(--accent); color: #06202A; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8a8a8a;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left img { width: 36px; border-radius: 6px; }
.footer-left span { color: #fff; font-weight: 600; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  width: 56px; height: 56px;
  bottom: 100px;
  right: 25px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 12px 26px rgba(22,163,74,0.28);
  z-index: 900;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); color: #fff; }

/* ===== CHATBOT ===== */
.chatbot-bubble {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 16px 32px rgba(79,70,229,.28);
}

.chatbot-box {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  max-height: 480px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(15,23,42,0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 901;
  animation: slideUp 0.3s ease;
}
.chatbot-box.open { display: flex; }

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-avatar { font-size: 28px; }
.chatbot-header strong { display: block; font-size: 15px; }
.chatbot-header small { font-size: 11px; opacity: 0.8; }
.chatbot-close {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.chatbot-close:hover { background: rgba(255,255,255,0.4); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--background);
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.bot {
  background: #fff;
  color: var(--text);
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 4px 14px 14px 14px;
}
.chat-msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 4px 14px 14px;
}
.chat-msg a { color: var(--primary); text-decoration: underline; }
.chat-msg.bot a { color: var(--primary); }

.quick-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-btns button {
  font-size: 11px;
  padding: 5px 10px;
  background: var(--primary-soft);
  border: 1px solid #C7D2FE;
  color: var(--primary);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.quick-btns button:hover { background: var(--primary); color: #fff; }

.chatbot-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
  gap: 8px;
}
.chatbot-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.chatbot-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.chatbot-input button {
  width: 36px; height: 36px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.chatbot-input button:hover { transform: scale(1.1); }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,102,204,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(0,102,204,0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}
.animate.show { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    padding: 20px 6%;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    gap: 4px;
  }
  .navbar nav.open { display: flex; }
  .navbar nav a { font-size: 16px; padding: 10px 14px; border-radius: 8px; }
  .navbar nav a.login-btn { margin: 8px 0 0; text-align: center; }

  .chatbot-box { width: calc(100vw - 30px); right: 15px; bottom: 90px; }

  .footer-top { flex-direction: column; }
  .newsletter-form input { width: 180px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .newsletter-form input { width: 140px; }
}

/* ===== PREMIUM SAAS UI REFRESH ===== */
.page-hero,
.about-hero,
.team-hero,
.demo-hero,
.payment-hero,
.legal-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(6,182,212,.18), transparent 30%),
    linear-gradient(135deg, #312E81, #4F46E5 52%, #7C3AED) !important;
  color: #fff !important;
  padding: clamp(52px, 8vw, 86px) 20px !important;
}

.page-hero h1,
.about-hero h1,
.team-hero h1,
.demo-hero h1,
.payment-hero h1,
.legal-hero h1 {
  color: #fff !important;
  font-size: clamp(30px, 5vw, 46px) !important;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p,
.about-hero p,
.team-hero p,
.demo-hero p,
.payment-hero p {
  color: rgba(255,255,255,.86) !important;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.card,
.pricing-card,
.stat-card,
.value-card,
.benefit-card,
.review-card,
.team-card,
.contact-card,
.dash-card,
.dash-section,
.dash-header,
.admin-table-box,
.payment-form-box,
.plan-card,
.demo-box,
.form-box,
.contact-form-inner,
.reg-card,
.login-card,
.legal-content,
.modal-box {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-soft) !important;
}

.card:hover,
.pricing-card:hover,
.stat-card:hover,
.value-card:hover,
.benefit-card:hover,
.review-card:hover,
.team-card:hover,
.contact-card:hover,
.dash-card:hover,
.plan-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow) !important;
}

.stats,
.values-section,
.benefits-section,
.reviews-section,
.features,
.pricing-section,
.demo-section,
.form-section,
.contact-section,
.contact-form-section,
.payment-section,
.team-section,
.team-intro,
.dash-page,
.reg-page,
.legal-content {
  background: var(--background) !important;
}

.section-title,
.features h2,
.values-section h2,
.benefits-section h2,
.reviews-section h2,
.contact-section h2,
.team-intro h2,
.demo-box h2,
.form-box h2,
.payment-form-box h3,
.dash-header h2,
.dash-section h3,
.admin-header h2,
.admin-table-box h3,
.legal-content h2,
.reg-card h2,
.login-card h2 {
  color: var(--text) !important;
}

.section-subtitle,
.contact-section > p,
.team-intro p,
.demo-box p.sub,
.dash-header p,
.dash-card p,
.info-row span:first-child,
.legal-content p,
.reg-card p.sub {
  color: var(--muted) !important;
}

.btn,
.plan-btn,
.submit-btn,
.demo-btn,
.cta-btn,
.dash-btn,
.modal-btn,
.upgrade-btn,
.logout-btn,
.action-btn,
.login-card button,
.reg-card .submit-btn,
.payment-form-box button,
.contact-form-inner .submit-btn {
  border-radius: 12px !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease !important;
}

.primary,
.plan-btn,
.submit-btn,
.modal-btn,
.dash-btn.primary,
.cta-btn,
.payment-form-box button,
.contact-form-inner .submit-btn,
.reg-card .submit-btn,
.login-card button {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(79,70,229,.22) !important;
}

.primary:hover,
.plan-btn:hover,
.submit-btn:hover,
.modal-btn:hover,
.dash-btn.primary:hover,
.cta-btn:hover,
.payment-form-box button:hover,
.contact-form-inner .submit-btn:hover,
.reg-card .submit-btn:hover,
.login-card button:hover {
  background: #4338CA !important;
  transform: translateY(-2px) !important;
}

.secondary,
.dash-btn.secondary,
.cancel-btn {
  background: #fff !important;
  color: var(--primary) !important;
  border: 1px solid #C7D2FE !important;
}

.dash-btn.danger,
.logout-btn {
  background: #FEF2F2 !important;
  color: var(--danger) !important;
  border: 1px solid #FECACA !important;
  box-shadow: none !important;
}

input,
select,
textarea {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  background: #fff !important;
  max-width: 100% !important;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(79,70,229,.12) !important;
}

button:disabled,
.submit-btn:disabled,
.dash-btn:disabled {
  cursor: wait !important;
  opacity: .72 !important;
  transform: none !important;
}

.err-msg,
.form-error {
  color: var(--danger) !important;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 10px 12px;
}

.form-success,
.success-card,
.success-msg {
  background: #F0FDF4 !important;
  border: 1px solid #BBF7D0 !important;
  color: #166534 !important;
}

.empty-state {
  color: var(--muted) !important;
  background: #F8FAFC !important;
  border: 1px dashed #CBD5E1 !important;
  border-radius: 12px !important;
  padding: 18px !important;
}

.badge,
.plan-badge {
  border-radius: 999px !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  border: 1px solid #C7D2FE !important;
}

.badge.active {
  background: #DCFCE7 !important;
  color: #166534 !important;
  border-color: #BBF7D0 !important;
}

.badge.pending {
  background: #FFFBEB !important;
  color: #92400E !important;
  border-color: #FDE68A !important;
}

.ico,
.stat-ico,
.icon-wrap {
  color: var(--primary) !important;
}

.dash-page {
  padding: clamp(18px, 4vw, 36px) 5% !important;
}

.dash-grid,
.stats,
.values-grid,
.benefits-grid,
.reviews-grid,
.pricing-grid,
.contact-grid,
.payment-plans {
  gap: 18px !important;
}

.info-row {
  gap: 16px;
}

.admin-layout {
  background: #F8FAFC !important;
}

.admin-layout .sidebar,
.admin-layout .main-content,
.admin-table-box {
  background: #fff !important;
  color: var(--text) !important;
}

.admin-layout .sidebar {
  border-right: 1px solid var(--border) !important;
}

.admin-layout .sidebar h3,
.admin-layout .sidebar a,
.admin-layout .nav-btn,
.admin-layout table,
.admin-layout th,
.admin-layout td,
.admin-header h2,
.admin-table-box h3 {
  color: var(--text) !important;
}

.admin-layout .nav-btn.active,
.admin-layout .nav-btn:hover,
.admin-layout .sidebar a:hover {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.admin-layout table {
  min-width: 720px;
}

.admin-layout th {
  background: #F8FAFC !important;
  color: var(--muted) !important;
}

.login-page {
  background:
    linear-gradient(135deg, rgba(15,23,42,.78), rgba(79,70,229,.62)),
    url('bck.jpg') center/cover !important;
}

.login-card {
  background: rgba(255,255,255,.96) !important;
}

.login-card h2,
.login-card p,
.login-card .register-link,
.demo-creds {
  color: var(--text) !important;
}

.login-card .forgot,
.login-card .register-link a,
.login-link a,
.team-card .role,
.contact-card a {
  color: var(--primary) !important;
}

.demo-creds {
  background: #F8FAFC !important;
  border: 1px solid var(--border);
}

.reg-page {
  background:
    radial-gradient(circle at top left, rgba(6,182,212,.18), transparent 32%),
    linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%) !important;
}

.upgrade-box,
.cta {
  background: linear-gradient(135deg, #312E81, var(--primary), var(--secondary)) !important;
}

.upgrade-box h3,
.upgrade-box p,
.cta h2,
.cta p {
  color: #fff !important;
}

.demo-btn,
.upgrade-btn {
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: 0 16px 30px rgba(15,23,42,.16) !important;
  animation: none !important;
}

.modal-overlay {
  backdrop-filter: blur(6px);
}

@media (max-width: 1024px) {
  .navbar { padding-left: 4%; padding-right: 4%; }
  .admin-layout { flex-direction: column !important; }
  .admin-layout .sidebar { width: 100% !important; border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
}

@media (max-width: 768px) {
  .navbar nav {
    top: 70px;
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .navbar nav a,
  .navbar nav button {
    width: 100%;
    text-align: left;
  }
  .navbar nav a.login-btn {
    text-align: center;
  }
  .field-row,
  .form-row,
  .contact-grid,
  .payment-plans {
    grid-template-columns: 1fr !important;
  }
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .btn-row,
  .hero-buttons {
    width: 100%;
  }
  .dash-btn,
  .btn-row a,
  .btn-row button {
    width: 100%;
    text-align: center;
  }
  .newsletter-form {
    width: 100%;
  }
  .newsletter-form input {
    width: 100%;
    min-width: 0;
  }
  .newsletter-form button {
    flex: 0 0 auto;
  }
}

@media (max-width: 425px) {
  .navbar { padding: 10px 16px; }
  .logo img { height: 40px; }
  .card,
  .pricing-card,
  .stat-card,
  .value-card,
  .benefit-card,
  .review-card,
  .team-card,
  .contact-card,
  .dash-card,
  .dash-section,
  .dash-header,
  .payment-form-box,
  .demo-box,
  .form-box,
  .contact-form-inner,
  .reg-card,
  .login-card,
  .legal-content {
    padding: 20px !important;
  }
  .chatbot-box {
    width: calc(100vw - 24px);
    right: 12px;
  }
  .whatsapp-float,
  .chatbot-bubble {
    width: 50px;
    height: 50px;
    right: 16px;
    font-size: 24px;
  }
  .whatsapp-float {
    bottom: 88px;
  }
  .chatbot-bubble {
    bottom: 24px;
  }
}

@media (max-width: 375px) {
  .newsletter-form {
    border-radius: 16px;
    flex-direction: column;
  }
  .newsletter-form button {
    width: 100%;
    border-radius: 0;
  }
  .navbar nav {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* ===== BACKGROUND PATTERN ===== */
body{
  background-color:#f5f6fa;

  background-image:

  linear-gradient(
    rgba(79,70,229,0.08) 1px,
    transparent 1px
  ),

  linear-gradient(
    90deg,
    rgba(79,70,229,0.08) 1px,
    transparent 1px
  ),

  radial-gradient(
    circle at 0% 0%,
    rgba(124,58,237,0.18),
    transparent 35%
  ),

  radial-gradient(
    circle at 100% 100%,
    rgba(6,182,212,0.15),
    transparent 35%
  );

  background-size:
    36px 36px,
    36px 36px,
    auto,
    auto;

  background-attachment: fixed;
}