/* RCS Demo Section - Modern Reimagined */
.rcs-demo-section-modern {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff5f8 50%, #f8f0ff 100%);
  position: relative;
  overflow: hidden;
}

.rcs-demo-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Header */
.demo-header-modern {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.demo-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tabs Navigation */
.demo-showcase-tabs {
  position: relative;
  z-index: 2;
}

.demo-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.demo-tab:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
}

.demo-tab.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.tab-content {
  text-align: left;
}

.tab-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tab-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
}

.demo-tab.active .tab-subtitle {
  opacity: 0.9;
}

/* Demo Content */
.demo-content {
  display: none;
}

.demo-content.active {
  display: block;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.demo-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* Info Panel */
.demo-info-panel {
  padding-right: 2rem;
}

.industry-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.industry-icon-large {
  font-size: 3rem;
  flex-shrink: 0;
}

.industry-title h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.industry-title p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.5;
}

.demo-features {
  margin-bottom: 2rem;
}

.demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-text strong {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.feature-text span {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.4;
}

.demo-metrics {
  display: flex;
  gap: 2rem;
}

.metric-highlight {
  text-align: center;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
  flex: 1;
}

.metric-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #667eea;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

/* Phone Container */
.demo-phone-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup-demo {
  position: relative;
}

.phone-frame {
  width: 320px;
  height: 660px;
  background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
  border-radius: 45px;
  padding: 15px;
  border: 2px solid #0a0a0a;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 5px;
  background: #333;
  border-radius: 3px;
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background: #333;
  border-radius: 3px;
}

.phone-screen-demo {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 35px;
  overflow: hidden;
  position: relative;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carrier {
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
}

.signal-strength {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-strength .bar {
  width: 3px;
  background: #333;
  border-radius: 1px;
}

.signal-strength .bar:nth-child(1) { height: 3px; }
.signal-strength .bar:nth-child(2) { height: 5px; }
.signal-strength .bar:nth-child(3) { height: 7px; }
.signal-strength .bar:nth-child(4) { height: 10px; }

.status-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
  letter-spacing: 0.3px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery-percentage {
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
}

.battery-icon {
  width: 24px;
  height: 12px;
  border: 1px solid #333;
  border-radius: 2px;
  position: relative;
  background: white;
}

.battery-icon::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: #333;
  border-radius: 0 1px 1px 0;
}

.battery-icon::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  width: 70%;
  background: #4CAF50;
  border-radius: 1px;
}

/* Message Conversation */
.message-conversation {
  padding: 20px;
  background: #f5f5f5;
  height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-bubble-demo {
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e8ed;
  animation: messageSlideUp 0.8s ease-out 1s both;
}

.message-bubble-demo.banking {
  border-left: 4px solid #28a745;
}

.message-bubble-demo.travel {
  border-left: 4px solid #007bff;
}

/* Business Header */
.business-header-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.business-avatar-demo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.business-avatar-demo.banking {
  background: linear-gradient(45deg, #28a745, #20c997);
}

.business-avatar-demo.travel {
  background: linear-gradient(45deg, #007bff, #0056b3);
}

.brand-logo-demo {
  font-size: 1.4rem;
}

.business-info-demo {
  flex: 1;
  min-width: 0;
}

.business-name-demo {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 3px;
}

.verified-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #1da1f2;
  font-weight: 600;
}

.verified-indicator.banking {
  color: #28a745;
}

.verified-indicator.travel {
  color: #007bff;
}

.verified-indicator i {
  font-size: 0.85rem;
}

/* Message Content */
.message-content-demo {
  margin-bottom: 12px;
}

.message-text-demo {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Product Showcase */
.product-showcase {
  margin-bottom: 12px;
}

.product-carousel-demo {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
}

.product-slide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.product-image-demo {
  font-size: 2rem;
}

.product-details {
  flex: 1;
}

.product-name-demo {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.product-price-demo {
  color: #667eea;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.product-rating {
  font-size: 0.75rem;
  color: #666;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  transition: background 0.3s ease;
}

.nav-dot.active {
  background: #667eea;
}

/* Banking Specific */
.alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ffc107;
}

.alert-icon {
  font-size: 1.2rem;
}

.alert-title {
  font-weight: 700;
  color: #856404;
}

.transaction-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #e9ecef;
}

.transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.transaction-row:last-child {
  margin-bottom: 0;
}

.transaction-row .label {
  color: #666;
  font-weight: 500;
}

.transaction-row .value {
  font-weight: 700;
  color: #1a1a1a;
}

.transaction-row .value.amount {
  color: #dc3545;
  font-size: 0.95rem;
}

.security-question {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 500;
}

/* Travel Specific */
.boarding-pass-card {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.boarding-pass-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  background-size: 20px 20px;
}

.pass-header {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.airport {
  text-align: center;
}

.airport-code {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.airport-name {
  font-size: 0.7rem;
  opacity: 0.9;
}

.flight-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.plane-icon {
  font-size: 1.5rem;
}

.flight-number {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

.pass-details {
  position: relative;
  z-index: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.detail-label {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Action Buttons */
.action-buttons-demo {
  display: flex;
  gap: 8px;
}

.action-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.primary-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

.secondary-btn {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.confirm-btn {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
}

.alert-btn {
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
}

.navigate-btn {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
}

.calendar-btn {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Message Timestamp */
.message-timestamp {
  font-size: 0.75rem;
  color: #666;
  text-align: right;
  margin-top: 8px;
}

/* Engagement Indicators */
.engagement-indicators {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.engagement-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 25px;
  padding: 8px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: engagementPop 0.6s ease-out both;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.engagement-icon {
  font-size: 1rem;
}

/* Animations */
@keyframes messageSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes engagementPop {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
  }
  50% {
    transform: translateX(5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .engagement-indicators {
    position: static;
    flex-direction: row;
    justify-content: center;
    transform: none;
    margin-top: 2rem;
  }
}

@media (max-width: 1024px) {
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .demo-info-panel {
    padding-right: 0;
  }
  
  .demo-tabs-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .demo-tab {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .demo-layout {
    padding: 2rem;
  }
  
  .phone-frame {
    width: 280px;
    height: 580px;
  }
  
  .demo-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  
  .engagement-indicators {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .demo-header-modern {
    margin-bottom: 2rem;
  }
}