/* ==========================================================================
   DIGIMIT CUSTOM SOFTWARE HUB & COMMERCIAL PORTAL (software.digimit.in)
   Clean Government & Enterprise UI • Responsive, Authoritative, Modern
   ========================================================================== */

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  /* Color Palette */
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #141e33;
  --bg-card-hover: #1b2845;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary-red: #d71920;
  --primary-red-hover: #ef232b;
  --primary-glow: rgba(215, 25, 32, 0.25);

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.2);
  --accent-blue: #0ea5e9;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(215, 25, 32, 0.2);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NATIONAL & ENTERPRISE ANNOUNCEMENT RIBBON
   ========================================================================== */
.national-ribbon {
  background: linear-gradient(90deg, #851015, #1e1b4b, #042f2e);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  padding: 8px 0;
  color: #e2e8f0;
}

.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ribbon-left, .ribbon-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.ribbon-text {
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   SITE HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d71920, #991b1b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(215, 25, 32, 0.4);
}

.brand-svg {
  width: 24px;
  height: 24px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-portal-pill {
  background: rgba(215, 25, 32, 0.2);
  border: 1px solid rgba(215, 25, 32, 0.4);
  color: #fca5a5;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-red);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(215, 25, 32, 0.35);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 4px 16px rgba(215, 25, 32, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO BANNER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-glow-1 {
  position: absolute;
  top: -120px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(215, 25, 32, 0.15) 0%, rgba(215, 25, 32, 0) 70%);
  pointer-events: none;
  filter: blur(60px);
}

.hero-glow-2 {
  position: absolute;
  top: 40px;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
  filter: blur(70px);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #fca5a5 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-weight: 500;
}

.trust-item .check {
  color: #10b981;
  font-weight: 800;
}

/* ==========================================================================
   SEARCH & CATEGORY FILTER BAR
   ========================================================================== */
.catalog-filter-bar {
  padding: 30px 0 10px;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.2);
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chip-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(215, 25, 32, 0.35);
}

/* ==========================================================================
   SOFTWARE CATALOG GRID
   ========================================================================== */
.catalog-section {
  padding: 40px 0 80px;
}

.section-head {
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

.softwares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.software-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.software-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.software-card.featured-card {
  border-color: rgba(215, 25, 32, 0.45);
  box-shadow: 0 8px 30px rgba(215, 25, 32, 0.15);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.software-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bg-red-gradient { background: linear-gradient(135deg, #d71920, #991b1b); }
.bg-blue-gradient { background: linear-gradient(135deg, #0284c7, #0369a1); }
.bg-purple-gradient { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.bg-emerald-gradient { background: linear-gradient(135deg, #059669, #047857); }

.card-badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge-featured {
  background: rgba(215, 25, 32, 0.2);
  border: 1px solid rgba(215, 25, 32, 0.4);
  color: #fca5a5;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-category {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #ffffff;
}

.card-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-features-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-bottom: 24px;
}

.card-features-list li {
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
  font-size: 0.875rem;
}

.card-footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: auto;
}

.card-price-meta {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.price-period {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.card-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   SOFTWARE DETAIL VIEW (PAGE ROUTE #software/:slug)
   ========================================================================== */
.software-detail-view {
  padding: 40px 0 100px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
}

.breadcrumb-back-btn:hover {
  text-decoration: underline;
}

.detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.detail-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-badge-pill {
  background: rgba(215, 25, 32, 0.2);
  border: 1px solid rgba(215, 25, 32, 0.4);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.detail-version-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.detail-rating {
  font-size: 0.8125rem;
  color: #f59e0b;
  font-weight: 600;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: #ffffff;
  margin-bottom: 14px;
}

.detail-tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 840px;
  margin-bottom: 32px;
}

.detail-action-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   SCREENSHOT GALLERY & CAROUSEL
   ========================================================================== */
.screenshot-gallery-section {
  margin-bottom: 50px;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.gallery-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gallery-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-title-group p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.gallery-controls-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* Carousel Main Stage */
.carousel-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
  cursor: zoom-in;
}

.carousel-image-main {
  width: 100%;
  height: auto;
  max-height: 580px;
  display: block;
  object-fit: contain;
  background: #090d16;
  transition: opacity 0.3s ease;
}

.carousel-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0) 100%);
  padding: 30px 24px 18px;
}

.caption-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

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

/* Thumbnail Strip */
.carousel-thumbs-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.carousel-thumb-item {
  width: 140px;
  height: 85px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: #000;
}

.carousel-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-thumb-item:hover {
  opacity: 0.9;
}

.carousel-thumb-item.active {
  border-color: var(--primary-red);
  opacity: 1;
  box-shadow: 0 0 12px rgba(215, 25, 32, 0.5);
}

/* ==========================================================================
   MODULES & FEATURES BREAKDOWN
   ========================================================================== */
.modules-section {
  margin-bottom: 60px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
}

.module-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.module-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.module-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.module-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SPECIFICATIONS & SYSTEM REQUIREMENTS
   ========================================================================== */
.specs-section {
  margin-bottom: 60px;
}

.specs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.specs-table th, .specs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.specs-table th {
  color: var(--text-dim);
  font-weight: 600;
  width: 250px;
}

.specs-table td {
  color: #e2e8f0;
  font-weight: 500;
}

/* ==========================================================================
   PRICING & BUY SECTION
   ========================================================================== */
.pricing-section {
  margin-bottom: 70px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.pricing-card.featured-plan {
  background: linear-gradient(180deg, #1b2640 0%, #131c30 100%);
  border-color: rgba(215, 25, 32, 0.6);
  box-shadow: 0 12px 40px rgba(215, 25, 32, 0.2);
}

.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.plan-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plan-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.price-currency {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
}

.price-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
}

.price-term {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.plan-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.plan-bullets {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-bullets li {
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-bullets li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
}

/* ==========================================================================
   INTERACTIVE LIVE SYNC DATA DEMO WIDGET
   ========================================================================== */
.livesync-widget-section {
  margin-bottom: 60px;
}

.sync-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sync-card-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sync-tabs-row {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.sync-tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.sync-tab-btn:hover {
  color: #ffffff;
}

.sync-tab-btn.active {
  color: #ffffff;
  border-bottom-color: var(--primary-red);
  background: rgba(215, 25, 32, 0.06);
}

.sync-tab-content {
  padding: 24px;
}

/* Data Table */
.data-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.portal-table th, .portal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.portal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.portal-table td {
  color: #e2e8f0;
}

/* ==========================================================================
   REST API INTEGRATION CONSOLE
   ========================================================================== */
.api-console-section {
  margin-bottom: 70px;
}

.api-console-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.api-console-top {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.api-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.method-tag {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.method-tag.post { background: #16a34a; }

.api-select {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  flex: 1;
  max-width: 500px;
  outline: none;
}

.api-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.api-col-left, .api-col-right {
  padding: 20px 24px;
}

.api-col-left {
  border-right: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.api-col-right {
  background: #0b1120;
}

.code-pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #6ee7b7;
  overflow-x: auto;
  line-height: 1.5;
}

/* ==========================================================================
   BUY LICENSE / SANCTION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.2);
}

.price-summary-banner {
  background: rgba(215, 25, 32, 0.08);
  border: 1px solid rgba(215, 25, 32, 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.price-summary-banner .summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-price-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Success State in Modal */
.success-banner-box {
  text-align: center;
  padding: 10px 0 20px;
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: #10b981;
}

.license-key-box {
  background: #090d16;
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.license-key-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fed000;
  letter-spacing: 1px;
}

/* ==========================================================================
   LIGHTBOX FULL-SCREEN PREVIEW
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-content-box {
  max-width: 95vw;
  max-height: 92vh;
  position: relative;
}

.lightbox-content-box img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  font-size: 0.875rem;
}

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

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand-desc {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.footer-bottom-row {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-title { font-size: 2.25rem; }
  .api-body-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
}
