body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.theme-default,
body.theme-light {
  background-color: #f4f6f9;
}

body.theme-dark {
  background-color: #0f172a;
}

.main-header.navbar-primary {
  background: linear-gradient(135deg, #1f3b73 0%, #2b6cb0 100%);
}

.main-header .navbar-brand .brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.content-wrapper > .content {
  padding-bottom: 2rem;
}

body.theme-dark .main-header.navbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.callout-hero {
  background: #ffffff;
  border-left: 5px solid #3c8dbc;
  border-radius: 0.5rem;
  box-shadow: 0 20px 45px rgba(31, 59, 115, 0.12);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

body.theme-dark .callout-hero {
  background: #1f2937;
  border-left-color: #60a5fa;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
}

.callout-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.08), rgba(236, 72, 153, 0.08));
  pointer-events: none;
}

.callout-hero h2 {
  font-size: 2rem;
  font-weight: 700;
}

.callout-hero p {
  font-size: 1.05rem;
  color: #4b5563;
}

body.theme-dark .callout-hero h2,
body.theme-dark .callout-hero p,
body.theme-dark .callout-hero strong {
  color: #e5e7eb;
}

.hero-actions .btn {
  margin-right: 0.75rem;
}

.section-heading {
  font-weight: 700;
  margin-bottom: 1rem;
}

.package-card {
  border-radius: 0.75rem;
  border: 1px solid #dbe4f3;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-dark .package-card {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.package-card .card-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.package-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f3b73;
}

body.theme-dark .package-price {
  color: #93c5fd;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

body.theme-dark .feature-list li {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list strong {
  display: block;
  color: #1f2937;
}

.timeline-steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-step {
  background: #ffffff;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.5rem;
  position: relative;
}

body.theme-dark .timeline-step {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.2);
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  top: -0.9rem;
  left: 1.25rem;
  background: #3c8dbc;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(60, 141, 188, 0.35);
}

.timeline-step h4 {
  font-weight: 600;
  margin-top: 0.75rem;
}

body.theme-dark .timeline-step h4,
body.theme-dark .timeline-step p {
  color: #e5e7eb;
}

.status-badges .badge {
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  text-transform: uppercase;
}

.table-responsive {
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

body.theme-dark .table-responsive {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.tag.pending,
.tag.suspended {
  background: #fff3cd;
  color: #856404;
}

.tag.paid,
.tag.completed,
.tag.active {
  background: #d4edda;
  color: #155724;
}

.tag.canceled,
.tag.failed {
  background: #f8d7da;
  color: #721c24;
}

.tag.expired {
  background: #e2e3e5;
  color: #383d41;
}

.muted,
.text-muted {
  color: #6b7280 !important;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean > li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.75rem 0;
}

body.theme-dark .list-clean > li {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

.list-clean > li:last-child {
  border-bottom: none;
}

.console {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  min-height: 18rem;
  height: calc(100vh - 12rem);
  max-height: none;
  overflow-y: auto;
}

.form-helper {
  font-size: 0.85rem;
  color: #6b7280;
}

.install-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1f3b73 0%, #0f172a 100%);
  padding: 2rem 1rem;
}

.install-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  padding: 2rem 2.5rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.install-card h1 {
  font-weight: 700;
  color: #1f2937;
}

.install-card .step-title {
  font-weight: 600;
  color: #1f3b73;
}

.install-card .badge {
  background: #1f3b73;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}

.font-weight-semibold {
  font-weight: 600;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1080;
  pointer-events: none;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer__header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cart-drawer__body {
  padding: 1.5rem;
  padding-top: 0;
  overflow-y: auto;
  flex: 1;
}

.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer.is-open .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.cart-drawer .list-group-item:last-child {
  border-bottom: none;
}

.cart-drawer .btn-outline-secondary.disabled,
.cart-drawer .btn-outline-secondary:disabled {
  color: #475569;
  background-color: #f8fafc;
}

.cart-drawer__title i {
  color: #3c8dbc;
}

.cart-drawer__total span {
  font-size: 1.05rem;
}

.main-header .nav-link[data-cart-trigger] {
  padding-right: 2.5rem;
}

.main-header .nav-link[data-cart-trigger] .navbar-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
}

@media (max-width: 767.98px) {
  .main-header .nav-link[data-cart-trigger] {
    padding-right: 1.75rem;
  }

  .main-header .nav-link[data-cart-trigger] .navbar-badge {
    top: 0.35rem;
    right: 0.5rem;
  }
}

body.cart-open {
  overflow: hidden;
}

body.theme-dark .cart-drawer__overlay {
  background: rgba(15, 23, 42, 0.75);
}

body.theme-dark .cart-drawer__panel {
  background: #111827;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.45);
  color: #e5e7eb;
}

body.theme-dark .cart-drawer__header,
body.theme-dark .cart-drawer__footer {
  border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .cart-drawer .text-muted {
  color: #9ca3af !important;
}

body.theme-dark .cart-drawer .btn-outline-secondary.disabled,
body.theme-dark .cart-drawer .btn-outline-secondary:disabled {
  background-color: rgba(148, 163, 184, 0.15);
  color: #e5e7eb;
}
