/* ==========================================================================
   RETAILBOSS (retailboss.in) - COMPONENT STYLING
   ========================================================================== */

/* --- 1. SITE HEADER & NAVIGATION --- */
.rb-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-fast);
}

.rb-site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--rb-text-primary);
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-logo span.highlight {
  color: var(--rb-primary);
}

.brand-domain-tag {
  font-size: 11px;
  background: #EFF6FF;
  color: #2563EB;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #DBEAFE;
  margin-left: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--rb-text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--rb-primary);
}

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

.lang-toggle-btn {
  background: #F1F5F9;
  border: 1px solid var(--rb-border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--rb-text-primary);
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: #E2E8F0;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--rb-text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- 2. HERO SECTION --- */
.hero-section {
  padding-top: 140px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 1) 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #0B132B;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--rb-border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.trust-item span.icon {
  color: #10B981;
  font-size: 16px;
}

/* Hero Live Bill Generator Widget Card */
.hero-generator-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  position: relative;
}

.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rb-border-light);
  font-family: var(--font-body);
  font-size: 14px;
  background: #F8FAFC;
  color: var(--rb-text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--rb-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--rb-primary-glow);
}

/* --- 3. AUTHORITY TRUST RIBBON --- */
.authority-ribbon {
  background: #090D16;
  color: #FFFFFF;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.authority-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.authority-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #E2E8F0;
}

.authority-pill span.icon {
  font-size: 20px;
}

/* --- 4. SOFTWARE SUITE CARDS --- */
.software-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--rb-border-light);
  padding: 32px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.software-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-theme, #2563EB);
}

.software-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.software-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.software-badge-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #FEF3C7;
  color: #92400E;
}

.software-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.software-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 14px;
}

.software-desc {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 22px;
  line-height: 1.6;
}

.feature-bullet-list {
  list-style: none;
  margin-bottom: 25px;
}

.feature-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
}

.feature-bullet-list li::before {
  content: '✓';
  color: #10B981;
  font-weight: 800;
}

.card-pricing-footer {
  border-top: 1px solid var(--rb-border-light);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-tag span {
  font-size: 12px;
  color: #64748B;
  display: block;
}

.pricing-tag strong {
  font-size: 18px;
  color: #0F172A;
}

/* --- 5. HARDWARE CARDS --- */
.hardware-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rb-border-light);
  padding: 24px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.hardware-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.hardware-image-box {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin-bottom: 18px;
  position: relative;
}

.hardware-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.hardware-category {
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hardware-specs {
  list-style: none;
  font-size: 12px;
  color: #475569;
  margin-bottom: 18px;
}

.hardware-specs li {
  margin-bottom: 5px;
}

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

.hardware-price-row .price {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
}

.hardware-price-row .mrp {
  font-size: 13px;
  color: #94A3B8;
  text-decoration: line-through;
}

/* --- 6. SIMULATED THERMAL RECEIPT --- */
.simulated-receipt {
  background: #FFFDF9;
  border: 1px solid #E2D9CC;
  border-radius: 8px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #111;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  margin-top: 15px;
}

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

.receipt-header h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.receipt-divider {
  color: #888;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  margin: 6px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
}

.receipt-row-head {
  font-weight: bold;
}

.receipt-total {
  font-size: 14px;
  font-weight: bold;
}

.receipt-qr {
  text-align: center;
  margin: 12px 0;
}

.qr-mockup img {
  margin: 0 auto;
  border: 1px solid #DDD;
  padding: 4px;
  background: #FFF;
}

.receipt-footer {
  text-align: center;
  font-size: 10px;
  color: #666;
  margin-top: 8px;
}

.receipt-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* --- 7. COMPARISON MATRIX TABLE --- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rb-border-light);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
}

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

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rb-border-light);
  font-size: 14px;
}

.comparison-table th {
  background: #F8FAFC;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.comparison-table th.col-retailboss {
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 16px;
}

.comparison-table td.col-retailboss {
  background: rgba(239, 246, 255, 0.4);
  font-weight: 700;
  color: #1E3A8A;
}

/* --- 8. STATS & LIVE COUNTERS --- */
.metrics-section {
  background: linear-gradient(135deg, #090D16 0%, #111827 100%);
  color: #FFFFFF;
}

.metric-card {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.metric-number {
  font-size: 42px;
  font-weight: 900;
  color: #60A5FA;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.metric-label {
  font-size: 14px;
  color: #94A3B8;
  font-weight: 500;
}

/* --- 9. FAQ ACCORDION --- */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--rb-border-light);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--rb-text-primary);
}

.faq-icon {
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--rb-primary);
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-item-body {
  max-height: 300px;
  padding-bottom: 20px;
}

/* --- 10. REAL-TIME FOMO NOTIFICATIONS --- */
.rb-fomo-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.rb-fomo-toast {
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.rb-fomo-toast.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.fomo-icon {
  font-size: 24px;
}

.fomo-content {
  flex: 1;
  font-size: 12px;
}

.fomo-header strong {
  color: #60A5FA;
  font-size: 13px;
}

.fomo-loc {
  color: #94A3B8;
  font-size: 11px;
}

.fomo-desc {
  color: #E2E8F0;
  margin: 2px 0;
}

.fomo-time {
  color: #64748B;
  font-size: 10px;
}

.fomo-verified {
  color: #10B981;
}

.fomo-close {
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 12px;
}

/* --- 11. MODALS --- */
.rb-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.rb-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.rb-modal.active .modal-dialog {
  transform: scale(1);
}

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

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
}

.modal-content-inner {
  padding: 28px;
}

.demo-success-card {
  text-align: center;
  padding: 20px 0;
}

.demo-success-card .success-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.booking-summary-box {
  background: #F8FAFC;
  border: 1px solid var(--rb-border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- 12. STICKY MOBILE CONVERSION BAR --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--rb-border-light);
  padding: 10px 14px;
  z-index: 800;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.mobile-bottom-bar .bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
}

.mobile-bottom-bar a {
  font-size: 12px;
  padding: 10px 6px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

@media (max-width: 768px) {
  .mobile-bottom-bar { display: block; }
  .rb-fomo-container { bottom: 75px; left: 10px; right: 10px; max-width: none; }
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-section { padding-top: 110px; }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    padding: 20px 24px;
    border-bottom: 1px solid var(--rb-border-light);
    box-shadow: var(--shadow-md);
  }
}

/* --- 13. MASTER FOOTER --- */
.rb-site-footer {
  background: #090D16;
  color: #94A3B8;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.6fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: #60A5FA;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

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

@media (max-width: 640px) {
  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
