:root {
  --bg-base: #f9fbff;
  --bg-surface: rgba(255, 255, 255, 0.95);
  --text-base: #0f172a;
  --text-muted: #475569;
  --accent-strong: #5b21b6;
  --accent-soft: #3b82f6;
  --accent-fade: #a78bfa;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
              radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.14), transparent 22%),
              var(--bg-base);
  color: var(--text-base);
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 2rem;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.navbar-brand span {
  color: var(--accent-strong);
}

.navbar .nav-link {
  color: #334155 !important;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--accent-strong) !important;
  transform: translateY(-1px);
}

.navbar .dropdown:hover .dropdown-menu {
  display: block;
}

.navbar .dropdown-menu {
  border-radius: 1rem;
  border: 0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  color: #0f172a;
  padding: 0.85rem 1.25rem;
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: static;
    display: none;
    margin-top: 0.25rem;
    padding: 0.35rem 0 0.15rem 0.75rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .navbar .dropdown-menu.show,
  .navbar .dropdown.show .dropdown-menu {
    display: block;
  }
}

.navbar .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.08);
}

.header-banner {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(79, 70, 229, 0.08);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.header-banner-text {
  color: #475569;
  font-size: 0.95rem;
}

.header-banner .btn {
  padding: 0.75rem 1.5rem;
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  min-height: 500px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(59, 130, 246, 0.93));
  background-size: cover, cover, cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-attachment: scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-origin: border-box;
  background-clip: border-box;
}

.hero-section::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
              radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.16), transparent 20%);
}

.hero-section .container,
.page-hero .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 100%;
  width: 100%;
}

.hero-section .row,
.page-hero .row {
  width: 100%;
  margin: 0;
}

.hero-section h1,
.page-hero h1 {
  color: #fff;
}

.hero-section p,
.page-hero p,
.hero-section .lead,
.page-hero .lead {
  color: rgba(255, 255, 255, 0.87);
}

.hero-section .btn,
.page-hero .btn {
  min-width: auto;
  width: auto;
}

.hero-video,
.video-preview,
.hero-section img,
.page-hero img {
  border-radius: 1.75rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.section-shell,
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.section-shell .container,
.py-5 .container {
  position: relative;
}

.section-shell h2,
.section-shell h3,
.py-5 h2,
.py-5 h3 {
  color: var(--text-base);
}

.section-intro h2,
.section-intro h3,
.section-intro p {
  text-align: left;
}

/* Section media (images/videos) - center and make visually prominent */
.section-media {
  display: block;
  margin-top: 1.25rem;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: initial;
  border-radius: 1.75rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

/* Slider inside container (not full-bleed) */
.home-slider-section {
  padding: 3rem 0;
  background: transparent;
}
.home-slider-section .slider-media {
  border-radius: 1.75rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  max-height: 480px;
  object-fit: cover;
}

.section-shell p,
.py-5 p {
  color: var(--text-muted);
}

.card,
.admin-card,
.footer-card {
  border: 0;
  border-radius: 1.75rem;
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
}

.card:hover,
.admin-card:hover,
.footer-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}

.card.transition {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.transition:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.3);
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 768px) {
  .hero-section,
  .page-hero {
    padding: 1.5rem 0 !important;
    min-height: 520px !important;
    height: auto !important;
    background-size: cover, cover, cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  
  .hero-section .container,
  .page-hero .container {
    min-height: 520px !important;
    height: auto !important;
  }
  
  .hero-section .row,
  .page-hero .row {
    min-height: 520px !important;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .hero-section,
  .page-hero {
    padding: 1rem 0 !important;
    min-height: 480px !important;
    height: auto !important;
    background-size: cover, cover, cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .hero-section h1,
  .page-hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-section .container,
  .page-hero .container {
    min-height: 480px !important;
    height: auto !important;
  }
  
  .hero-section .row,
  .page-hero .row {
    min-height: 480px !important;
    height: auto !important;
  }
  
  .hero-section .col-lg-7,
  .page-hero .col-lg-7,
  .hero-section .col-lg-5,
  .page-hero .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border: none;
  color: #fff;
}

.btn-outline-primary {
  color: var(--accent-strong);
  border-color: rgba(79, 70, 229, 0.2);
}

.btn-outline-primary:hover {
  background: rgba(79, 70, 229, 0.08);
}

.btn-secondary,
.btn-outline-secondary {
  border-radius: 999px;
}

.text-gradient {
  background: linear-gradient(135deg, #8193f0, #7f5af0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-card {
  border-radius: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.category-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.category-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(91, 33, 182, 0.16);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,242,255,0.9));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  font-weight: 600;
  color: var(--text-base);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(91, 33, 182, 0.28);
}

.category-option-card.active {
  border-color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.12), rgba(59, 130, 246, 0.12));
  color: var(--accent-strong);
}

.category-option-card input {
  accent-color: var(--accent-strong);
  width: 1rem;
  height: 1rem;
}

.control-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.2rem;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.9);
}

.quantity-field-shell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dimension-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dimension-input-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.unit-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.unit-choice-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: #fff;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.unit-choice-option.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--accent-strong);
}

.unit-choice-option input {
  accent-color: var(--accent-strong);
}

.available-pricing-scroll {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.available-pricing-scroll .table-responsive {
  margin-bottom: 1.25rem;
}

.available-pricing-scroll::-webkit-scrollbar {
  width: 10px;
}

.available-pricing-scroll::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.25);
  border-radius: 999px;
}

.service-card,
.feature-card {
  border-radius: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
}

.service-card .card-body,
.feature-card .card-body {
  padding: 2rem;
}

.service-card h4,
.feature-card h4 {
  color: var(--text-base);
}

.service-card p,
.feature-card p {
  color: var(--text-muted);
}

.section-highlight {
  position: relative;
  padding: 4rem 0;
}

.section-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 34%);
}

.section-highlight .card {
  position: relative;
  z-index: 1;
}

.footer-top {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #f8fafc;
}

@media (max-width: 767px) {
  .section-shell,
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

.footer-top .btn {
  padding: 1rem 1.8rem;
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #7c3aed;
}

.footer-grid {
  gap: 2rem;
}

.footer-widget h5 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-links li {
  list-style: none;
  margin-bottom: 0.75rem;
}

.footer-links li a {
  text-decoration: none;
}

.footer-bottom {
  padding: 1.8rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 25%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 18%),
              #f8fafc;
  min-height: 100vh;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.admin-sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #f8fafc;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

.sidebar-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1060;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #fff;
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-brand {
  padding: 0.25rem 0.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
}

.admin-main {
  flex: 1;
  min-width: 0;
}

.admin-card .table td,
.admin-card .table th {
  vertical-align: middle;
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  height: 220px;
  padding: 1rem 0;
}

.analytics-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.analytics-bar span:first-child {
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #4f46e5 0%, #06b6d4 100%);
  min-height: 30px;
}

.admin-shell .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-shell .navbar-brand {
  color: var(--text-base);
}

.admin-shell .btn-outline-secondary,
.admin-shell .btn-outline-primary,
.admin-shell .btn-outline-info,
.admin-shell .btn-outline-success,
.admin-shell .btn-outline-danger {
  border-radius: 999px;
}

.admin-shell .card {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.form-control,
.form-select {
  border-radius: 1rem;
}

.form-label {
  font-weight: 600;
}

.alert {
  border-radius: 1rem;
}

.list-group-item {
  border: none;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
}

.submenu-item-box {
  min-height: 90px;
  border-radius: 10% !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: all 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: linear-gradient(135deg, #f5f7fb 0%, #e8ecf3 100%) !important;
}

.submenu-item-box:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

@media (max-width: 991px) {
  .hero-section,
  .page-hero {
    padding: 4rem 0;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    width: min(280px, 84vw);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.admin-sidebar-open {
    overflow: hidden;
  }

  .admin-main {
    padding-top: 4.5rem;
  }

  .admin-main > .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .admin-main .d-flex.justify-content-between,
  .admin-main .d-flex.flex-wrap {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .admin-main .d-flex.justify-content-between .btn,
  .admin-main .d-flex.flex-wrap .btn {
    width: 100%;
  }

  .admin-card .table {
    min-width: 560px;
  }
}

@media (max-width: 767px) {
  .admin-main {
    padding-top: 4rem;
  }

  .admin-main .container-fluid {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .admin-card .card-body {
    padding: 1rem;
  }
}
