/* ============================================================================
   LIVEpro Software Solutions - Master Stylesheet
   Complete Multipage CMS Portal - Harmonized LP Geometric Logo Theme
   Colors: Tech Blue (#1a85e8), Crimson Red (#c92020), Emerald Green (#22a316), Gold (#f2c10d)
   Typography: Arial Black ("LIVE"), Times New Roman ("pro"), Cursive Script ("Software Solutions")
   ============================================================================ */

:root {
  /* HARMONIZED LP GEOMETRIC LOGO PALETTE */
  --primary: #1a85e8;
  /* Bright Tech Blue from L stroke & "LIVE" text */
  --primary-hover: #1060b0;
  /* Hover Blue */
  --accent: #22a316;
  /* Vibrant Emerald Green from square frame & "Software Solutions" */
  --accent-hover: #198010;
  /* Hover Green */
  --danger: #c92020;
  /* Crimson Red from triangular p loop & "pro" text */
  --danger-hover: #9e1717;
  /* Hover Red */
  --warning: #f2c10d;
  /* Sunny Gold Yellow from center diamond dot */

  --bg-main: #090d16;
  /* Deep Black / Dark Navy from logo.png background */
  --bg-surface: #ffffff;
  /* Pure white surface */
  --bg-card: #ffffff;
  /* Clean white cards */
  --bg-light: #f3f6fa;
  /* Soft modern glassmorphic background */

  --text-main: #0f172a;
  /* Deep primary text */
  --text-muted: #64748b;
  /* Secondary muted text */
  --text-light: #ffffff;
  /* Pure white text */
  --text-light-muted: #cbd5e1;
  /* Light muted text */

  --border-color: #e2e8f0;
  /* Card border / divider */
  --border: #e2e8f0;
  /* Alias for border */
  --border-dark: #334155;
  /* Dark border */

  /* SHADOWS & RADII */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(26, 133, 232, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px 0 rgba(15, 23, 42, 0.15), 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* UTILITIES */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

/* MATCHING TYPOGRAPHY CLASSES FROM LOGO.PNG */
.font-live {
  font-family: "Arial Black", "Impact", "Trebuchet MS", sans-serif;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.font-pro {
  font-family: "Times New Roman", Georgia, serif;
  color: var(--danger);
  font-weight: bold;
  font-style: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.font-software-solutions {
  font-family: "Monotype Corsiva", "Apple Chancery", "Lucida Calligraphy", "Brush Script MT", cursive, italic;
  color: var(--accent);
  font-size: 0.9rem;
  font-style: italic;
  display: block;
  letter-spacing: 0.5px;
  margin-top: -5px;
}

.font-tagline-script {
  font-family: "Brush Script MT", "Monotype Corsiva", "Lucida Calligraphy", cursive;
  color: var(--danger);
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1a85e8, #1060b0);
  color: white;
  box-shadow: 0 4px 12px rgba(26, 133, 232, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #156bcb, #0d4e90);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 133, 232, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, #22a316, #167a0e);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 163, 22, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #198010, #11610a);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(34, 163, 22, 0.45);
}

.btn-danger {
  background: linear-gradient(135deg, #c92020, #961616);
  color: white;
  box-shadow: 0 4px 12px rgba(201, 32, 32, 0.35);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #9e1717, #781010);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(201, 32, 32, 0.45);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--bg-main);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: rgba(26, 133, 232, 0.12);
  color: var(--primary);
  border: 1px solid rgba(26, 133, 232, 0.25);
}

.badge-accent {
  background-color: rgba(34, 163, 22, 0.15);
  color: #198010;
  border: 1px solid rgba(34, 163, 22, 0.3);
}

.badge-warning {
  background-color: rgba(242, 193, 13, 0.2);
  color: #a88406;
  border: 1px solid rgba(242, 193, 13, 0.4);
}

.badge-danger {
  background-color: rgba(201, 32, 32, 0.12);
  color: var(--danger);
  border: 1px solid rgba(201, 32, 32, 0.25);
}

/* SECTIONS */
section {
  padding: 75px 0;
}

.section-header {
  margin-bottom: 45px;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--warning), var(--danger), var(--accent));
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* TOP ANNOUNCEMENT TICKER */
.news-ticker {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.news-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* TOP CONTACT & SOCIAL BAR */
.top-bar {
  background: #090d16;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  z-index: 101;
  position: relative;
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-bar-contact a,
.top-bar-contact span {
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.top-bar-contact a:hover {
  color: var(--primary);
}

.top-bar-divider {
  color: #334155;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-social span {
  color: #94a3b8;
  font-size: 0.8rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(26, 133, 232, 0.4);
}

.social-icon-btn.whatsapp:hover {
  background: #22a316;
  border-color: #22a316;
  box-shadow: 0 4px 10px rgba(34, 163, 22, 0.4);
}

@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .top-bar-contact {
    justify-content: center;
    gap: 8px;
  }

  .top-bar-divider {
    display: none;
  }
}

/* NAVBAR (MODERN WHITE WITH UPLOADED LOGO-LP.PNG AND MATCHING TYPOGRAPHY) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569;
  transition: var(--transition);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  text-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: rgba(26, 133, 232, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-toggle-btn {
  background: linear-gradient(135deg, #1a85e8, #22a316);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(26, 133, 232, 0.3);
  transition: var(--transition);
}

.cms-toggle-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 15px rgba(34, 163, 22, 0.4);
}

.hamburger {
  display: none;
  background: rgba(26, 133, 232, 0.1);
  border: 1px solid rgba(26, 133, 232, 0.3);
  color: var(--primary);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
}

.hamburger:hover,
.hamburger:focus {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(26, 133, 232, 0.3);
  outline: none;
}

/* HERO CAROUSEL (100% COMPLETE WIDTH BACKGROUND IMAGES) */
.hero-section-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.hero-slide {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  display: inline-block;
  background: rgba(26, 133, 232, 0.2);
  border: 1px solid rgba(26, 133, 232, 0.4);
  padding: 6px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #60a5fa;
  margin-bottom: 22px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(26, 133, 232, 0.2);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 25px;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin: 0 auto 40px;
  max-width: 850px;
  line-height: 1.8;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: var(--radius);
}

.stat-value {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(90deg, #60a5fa, #46ba28);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
  text-align: center;
}

/* CARDS */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ESTIMATOR CALCULATOR WIDGET */
.estimator-widget {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 35px;
  box-shadow: var(--shadow-lg);
  max-width: 850px;
  margin: 0 auto;
}

.estimator-step {
  margin-bottom: 25px;
}

.estimator-step h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.option-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-pill {
  padding: 10px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  transition: 0.2s;
  background: white;
}

.option-pill:hover,
.option-pill.active {
  border-color: var(--primary);
  background: rgba(26, 133, 232, 0.1);
  color: var(--primary);
  font-weight: 800;
  transform: scale(1.02);
}

.estimate-result-box {
  background: linear-gradient(135deg, #090d16, #182235);
  color: white;
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* LIVE SEARCH */
.live-search-box {
  max-width: 500px;
  margin: 0 auto 35px;
  position: relative;
}

.live-search-input {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border: 2px solid var(--border-color);
  border-radius: 99px;
  font-size: 1rem;
  transition: 0.2s;
  background: white;
  box-shadow: var(--shadow-sm);
}

.live-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 133, 232, 0.15);
}

.live-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* FOOTER (DEEP BLACK / NAVY BACKGROUND MATCHING LOGO.PNG) */
footer {
  background-color: #05080e;
  color: #94a3b8;
  padding: 65px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
  position: relative;
  color: var(--text-main);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* TOASTS */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease forwards;
}

.toast-success {
  background: var(--accent);
}

.toast-error {
  background: var(--danger);
}

.toast-info {
  background: var(--primary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* CMS ADMIN DASHBOARD STYLES */
.cms-container {
  display: none;
  min-height: calc(100vh - 76px);
  background: #f1f5f9;
}

.cms-container.active {
  display: flex;
}

.cms-sidebar {
  width: 270px;
  background: #090d16;
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.cms-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cms-nav {
  padding: 15px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

.cms-nav-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.cms-nav-item:hover,
.cms-nav-item.active {
  background: var(--primary);
  color: white;
}

.cms-main {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  max-height: calc(100vh - 76px);
}

.cms-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 25px;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cms-table th {
  padding: 12px 14px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
}

.cms-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  vertical-align: middle;
}

.cms-table tr:hover {
  background: #f1f5f9;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 133, 232, 0.15);
}

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cms-container.active {
    flex-direction: column;
  }

  .cms-sidebar {
    width: 100%;
    max-height: 250px;
  }

  .cms-main {
    max-height: none;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
    border-bottom: 3px solid var(--primary);
    z-index: 999999 !important;
    gap: 8px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    text-align: left;
    border-left: 3px solid transparent;
    color: var(--text-main);
    text-decoration: none;
    box-sizing: border-box;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: rgba(26, 133, 232, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 20px;
  }

  .hamburger,
  #mobileHamburger {
    display: inline-flex !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .logo-sub-script {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .nav-container {
    padding: 0 10px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONSOLIDATED ON-PAGE STYLES (MOVED FROM HTML/PHP FILES)
   ========================================================================== */

/* 1. PUBLIC HEADER TYPOGRAPHY & LOGO WRAPPERS */
.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-main-text {
  line-height: 1;
}

.logo-live {
  font-family: "Arial Black", "Impact", "Trebuchet MS", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
  background: #080E5F;
  background: linear-gradient(to right, #080E5F 0%, #1567FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-pro {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 2.5rem;
  font-weight: bold;
  font-style: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
  background: #790000;
  background: linear-gradient(to right, #790000 0%, #FF0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.logo-software-solutions {
  font-family: "Monotype Corsiva", "Apple Chancery", "Lucida Calligraphy", "Brush Script MT", cursive, italic;
  font-size: 1.4rem;
  font-style: italic;
  display: block;
  letter-spacing: 0.5px;
  margin-top: -5px;
  font-weight: 600;
  background: #115A00;
  background: linear-gradient(to bottom, #115A00 0%, #00DB12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.logo-tag
{
    font-family: "Monotype Corsiva", "Apple Chancery", "Lucida Calligraphy", "Brush Script MT", cursive, italic;
  font-size: 0.8rem;
  font-style: italic;
  display: block;
  letter-spacing: 0.2px;
  margin-top: -5px;
  font-weight: 600;
  background: #5a0053;
  background: linear-gradient(to bottom, #5a0053 0%, #8B008B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 2. ADMIN SUITE SPECIFIC LAYOUT & COMPONENTS */
body.admin-body,
body:has(.admin-sidebar) {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f3f6fa;
}

.admin-sidebar {
  width: 270px;
  background: #090d16;
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 100vh;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav {
  padding: 15px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  overflow-y: auto;
}

.admin-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary);
  color: white;
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow-y: auto;
  width: calc(100% - 270px);
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-content {
  padding: 35px;
  flex-grow: 1;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 12px 14px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f1f5f9;
}

/* 3. ADMIN LOGIN PAGE STYLES */
body.login-body {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #090d16;
  margin: 0;
  padding: 20px;
}

.login-card {
  background: #182235;
  border: 1px solid #334155;
  padding: 40px;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.demo-box {
  background: rgba(26, 133, 232, 0.15);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.error-msg {
  background: rgba(201, 32, 32, 0.15);
  border: 1px solid #f87171;
  color: #fca5a5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

/* 4. INSTALLER & SETUP WIZARD STYLES */
body.installer-body,
body.setup-body {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f4f7fb;
  margin: 0;
  padding: 30px 15px;
}

body.setup-body {
  background: #0f172a;
}

.installer-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
}

.installer-header {
  background: #ffffff;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.logo-text span {
  color: var(--primary);
}

.steps-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.step-item {
  flex: 1;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  border-right: 1px solid var(--border-color);
}

.step-item:last-child {
  border-right: none;
}

.step-item.active {
  background: rgba(26, 133, 232, 0.1);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.step-item.completed {
  color: #3a8a1a;
}

.installer-body {
  padding: 35px;
}

.subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.alert-error {
  background: #ffebe9;
  border: 1px solid #fa383e;
  color: #c2070e;
}

.alert-success {
  background: #e6f4ea;
  border: 1px solid #58b32e;
  color: #137333;
}

.alert-info {
  background: #e8f0fe;
  border: 1px solid var(--primary);
  color: #185abc;
}

.req-list {
  list-style: none;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.req-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.req-item:last-child {
  border-bottom: none;
}

.badge-ok {
  background: #e6f4ea;
  color: #137333;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-err {
  background: #ffebe9;
  color: #c2070e;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.stats-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.stat-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}

.stat-lbl {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.setup-card {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 40px;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #059669);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
}

.btn-success {
  background: #059669;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
}

@media (max-width: 1024px) {

  body.admin-body,
  body:has(.admin-sidebar) {
    flex-direction: column !important;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
  }

  .admin-main {
    width: 100%;
    max-height: none;
  }
}