/* ==========================================================================
   KlientX Design System & Stylesheet
   Fonts: Outfit (Headings) & Plus Jakarta Sans (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Customer App Theme - Midnight Navy (#021745) & Electric Royal Blue (#0061ff) */
  --bg-base: #021235;
  --bg-surface: #041c52;
  --bg-card: rgba(4, 28, 82, 0.75);
  --bg-card-hover: rgba(7, 38, 108, 0.9);
  --border-subtle: rgba(0, 97, 255, 0.2);
  --border-bright: rgba(0, 97, 255, 0.55);

  --text-main: #ffffff;
  --text-muted: #a3badc;
  --text-dim: #6d84a8;

  --primary: #0061ff; /* Customer Primary */
  --primary-glow: rgba(0, 97, 255, 0.5);
  --secondary: #00d2ff; /* Electric Cyan */
  --accent-navy: #021745; /* Customer Secondary */
  --accent-mint: #33C177; /* greensqaush */
  --accent-lime: #6BD438; /* onlinetag */
  --accent-gold: #f6ba49; /* yellow */
  --accent-red: #dd5865; /* red */

  --grad-primary: linear-gradient(135deg, #0061ff 0%, #00d2ff 100%);
  --grad-accent: linear-gradient(135deg, #0061ff 0%, #021745 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.55), 0 0 1px 1px rgba(0, 97, 255, 0.2);
  --shadow-glow: 0 0 50px -10px var(--primary-glow);

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Overrides - Customer App Light Theme (#f8f9fe) */
[data-theme="light"] {
  --bg-base: #f8f9fe; /* Customer backgroundcolor */
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(0, 97, 255, 0.12);
  --border-bright: rgba(0, 97, 255, 0.45);

  --text-main: #021745; /* Customer Secondary Midnight Navy */
  --text-muted: #536b8e;
  --text-dim: #889bb5;

  --primary: #0061ff;
  --primary-glow: rgba(0, 97, 255, 0.25);
  --shadow-card: 0 16px 36px -10px rgba(2, 23, 69, 0.08), 0 0 1px 1px rgba(0, 97, 255, 0.08);
}

/* Light Theme Component Overrides for Customer App Mockup */
[data-theme="light"] .mockup-switcher-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 97, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 97, 255, 0.1);
}

[data-theme="light"] .mockup-switch-btn {
  color: #536b8e;
}

[data-theme="light"] .phone-mockup-frame {
  border-color: #dbe4f2;
  background: #f8f9fe;
  box-shadow: 0 35px 90px -15px rgba(0, 97, 255, 0.2), 0 0 0 1px rgba(0, 97, 255, 0.18);
}

[data-theme="light"] .phone-status-bar {
  color: #021745;
}

[data-theme="light"] .phone-app-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 97, 255, 0.12);
}

[data-theme="light"] .phone-icon-btn {
  color: #021745;
}

[data-theme="light"] .agent-name {
  color: #021745;
}

[data-theme="light"] .online-indicator-dot {
  border-color: #ffffff;
}

[data-theme="light"] .phone-chat-screen {
  background-color: #f8f9fe;
  background-image: linear-gradient(rgba(248, 249, 254, 0.92), rgba(248, 249, 254, 0.96)), url('assets/chat_bg_light.png');
}

[data-theme="light"] .chat-date-divider span {
  background: rgba(0, 97, 255, 0.08);
  border-color: rgba(0, 97, 255, 0.15);
  color: #536b8e;
}

[data-theme="light"] .agent-bubble {
  background: #eefcf8;
  color: #021745;
  border: 1px solid rgba(51, 193, 119, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .agent-bubble .message-meta {
  color: #7c84aa;
}

[data-theme="light"] .chat-quick-chip {
  background: #ffffff;
  color: #021745;
  border-color: rgba(0, 97, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chat-quick-chip:hover {
  background: rgba(0, 97, 255, 0.1);
  color: var(--primary);
}

[data-theme="light"] .phone-input-bar {
  background: #ffffff;
  border-color: rgba(0, 97, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .phone-text-input {
  color: #021745;
}

[data-theme="light"] .phone-text-input::placeholder {
  color: #889bb5;
}

[data-theme="light"] .input-action-btn {
  color: #7c84aa;
}

[data-theme="light"] .dual-preview-card > div {
  background: #ffffff !important;
  border-color: rgba(0, 97, 255, 0.2) !important;
  box-shadow: 0 20px 45px rgba(2, 23, 69, 0.08) !important;
}

[data-theme="light"] .dual-preview-card > div div[style*="background: rgba(4, 28, 82, 0.8)"] {
  background: #f8f9fe !important;
  border-color: rgba(0, 97, 255, 0.15) !important;
}

[data-theme="light"] .dual-preview-card > div div[style*="color: #fff"] {
  color: #021745 !important;
}

[data-theme="light"] .dual-preview-card > div div[style*="linear-gradient"] {
  background: linear-gradient(135deg, rgba(0, 97, 255, 0.08) 0%, rgba(248, 249, 254, 0.9) 100%) !important;
  border-color: rgba(0, 97, 255, 0.25) !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.ambient-top-left {
  top: -150px;
  left: -150px;
  background: var(--primary);
}

.ambient-center-right {
  top: 40%;
  right: -200px;
  background: var(--secondary);
}

.ambient-bottom-left {
  bottom: 10%;
  left: -150px;
  background: var(--accent-purple);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-purple {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.28);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-icon, .nav-logo {
  height: 40px;
  width: 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 168, 255, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-brand:hover .nav-brand-icon,
.nav-brand:hover .nav-logo {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 6px 20px rgba(0, 168, 255, 0.55));
}

.nav-brand-text, .nav-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

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

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto 50px;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================================================
   Hero Mockup / Interactive Product Display
   ========================================================================== */
.hero-mockup-wrapper {
  margin-top: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mockup Switcher Tab Bar */
.mockup-switcher-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(4, 28, 82, 0.7);
  border: 1px solid var(--border-bright);
  padding: 6px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(0, 97, 255, 0.2);
  backdrop-filter: blur(12px);
}

.mockup-switch-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-switch-btn i {
  font-size: 1.05rem;
}

.mockup-switch-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 97, 255, 0.45);
}

/* ==========================================================================
   Customer Smartphone Mockup
   ========================================================================== */
.phone-mockup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.phone-mockup-frame {
  width: 375px;
  max-width: 95vw;
  height: 690px;
  background: #021235;
  border: 10px solid #101c38;
  border-radius: 48px;
  box-shadow: 0 35px 90px -15px rgba(0, 97, 255, 0.35), 0 0 0 1px rgba(0, 210, 255, 0.25), inset 0 0 0 2px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.island-camera {
  width: 9px;
  height: 9px;
  background: #0f172a;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

.island-sensor {
  width: 7px;
  height: 7px;
  background: #6BD438;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: 0 0 6px #6BD438;
}

/* Phone Status Bar */
.phone-status-bar {
  padding: 12px 24px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 20;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
}

/* Phone App Header */
.phone-app-header {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 28, 82, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  z-index: 15;
}

.phone-icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
}

.phone-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.agent-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
}

.agent-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.online-indicator-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #6BD438;
  border: 2px solid #021745;
  border-radius: 50%;
  box-shadow: 0 0 8px #6BD438;
}

.agent-details {
  line-height: 1.25;
}

.agent-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: #33C177;
  font-size: 0.75rem;
}

.agent-status-text {
  font-size: 0.7rem;
  color: #6BD438;
  font-weight: 600;
}

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

.phone-call-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 97, 255, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
}

.phone-call-icon-btn.active-call-btn {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 97, 255, 0.5);
}

.phone-call-icon-btn:hover {
  transform: scale(1.08);
}

/* Phone Chat Screen */
.phone-chat-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  overflow: hidden;
  position: relative;
  background-color: #021745;
  background-image: linear-gradient(rgba(2, 23, 69, 0.88), rgba(2, 18, 53, 0.94)), url('assets/chat_bg_dark.jpg');
  background-size: cover;
  background-position: center;
}

.phone-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.phone-chat-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.chat-date-divider {
  text-align: center;
  margin: 2px 0;
}

.chat-date-divider span {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.chat-message-row {
  display: flex;
  width: 100%;
}

.agent-row {
  justify-content: flex-start;
}

.customer-row {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
}

.agent-bubble {
  background: #041c52;
  color: #ffffff;
  border: 1px solid rgba(0, 97, 255, 0.28);
  border-radius: 16px 16px 16px 3px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.customer-bubble {
  background: var(--primary);
  color: #ffffff;
  border-radius: 16px 16px 3px 16px;
  box-shadow: 0 4px 15px rgba(0, 97, 255, 0.35);
  text-align: left;
}

.message-meta {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  text-align: right;
}

.read-check {
  color: #00d2ff;
  margin-left: 2px;
}

/* Video Invite Card inside Chat */
.video-invite-card {
  background: rgba(0, 97, 255, 0.16);
  border: 1px solid rgba(0, 210, 255, 0.45);
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
  text-align: left;
}

.invite-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.invite-icon-pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 0 12px var(--primary);
}

.invite-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.invite-sub {
  font-size: 0.68rem;
  color: var(--secondary);
}

.btn-join-call {
  width: 100%;
  background: linear-gradient(135deg, #33C177 0%, #10b981 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(51, 193, 119, 0.4);
  transition: var(--transition);
}

.btn-join-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 193, 119, 0.6);
}

/* Quick Action Chips */
.chat-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  margin-top: auto;
  scrollbar-width: none;
}

.chat-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chat-quick-chip {
  background: rgba(4, 28, 82, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.chat-quick-chip:hover {
  border-color: var(--secondary);
  color: #ffffff;
  background: rgba(0, 97, 255, 0.2);
}

/* Phone Input Bar */
.phone-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(4, 28, 82, 0.95);
  border-top: 1px solid var(--border-subtle);
  border-radius: 20px;
  margin-top: 6px;
}

.input-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 4px;
  cursor: pointer;
}

.phone-text-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  outline: none;
  font-family: var(--font-body);
}

.phone-text-input::placeholder {
  color: var(--text-dim);
}

.phone-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.phone-send-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   Active Agora RTC Live Video Call Screen (In-Phone)
   ========================================================================== */
.phone-video-screen {
  position: absolute;
  inset: 0;
  top: 42px; /* below status bar */
  background: #010817;
  display: flex;
  flex-direction: column;
  z-index: 25;
  animation: fadeInScale 0.28s ease;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.video-overlay-header {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.video-badge-rtc {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #6BD438;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(107, 212, 56, 0.35);
}

.video-latency-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid var(--border-subtle);
}

.video-timer-badge {
  background: rgba(0, 97, 255, 0.4);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid var(--border-bright);
}

.remote-video-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #020b1e;
}

.remote-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}

.equalizer-bar-container {
  position: absolute;
  bottom: 50px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.eq-bar {
  width: 3px;
  background: #6BD438;
  border-radius: 2px;
  animation: eqPulse 1s infinite ease-in-out;
}

.eq-bar.bar1 { height: 8px; animation-delay: 0.1s; }
.eq-bar.bar2 { height: 16px; animation-delay: 0.3s; }
.eq-bar.bar3 { height: 12px; animation-delay: 0.2s; }
.eq-bar.bar4 { height: 18px; animation-delay: 0.4s; }
.eq-bar.bar5 { height: 10px; animation-delay: 0.25s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.remote-nameplate {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
}

.local-pip-container {
  position: absolute;
  top: 56px;
  right: 14px;
  width: 88px;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.pip-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pip-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
}

.video-controls-bar {
  padding: 16px 20px;
  background: rgba(2, 23, 69, 0.95);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}

.video-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
}

.video-ctrl-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.22);
}

.video-ctrl-btn.btn-hangup-action {
  background: #dd5865;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(221, 88, 101, 0.45);
}

.video-ctrl-btn.btn-hangup-action:hover {
  background: #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.phone-caption {
  margin-top: 20px;
  text-align: center;
}

.caption-pill {
  background: rgba(0, 97, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Admin Mockup Frame (Alternative View)
   ========================================================================== */
.mockup-frame {
  width: 100%;
  max-width: 1060px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px -20px rgba(0, 102, 255, 0.25), var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  min-width: 280px;
}

.mockup-tabs {
  display: flex;
  gap: 12px;
}

.mockup-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.mockup-tab-btn.active {
  background: rgba(0, 102, 255, 0.15);
  color: var(--secondary);
}

/* Interactive Dashboard Mockup Content */
.mockup-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 260px 1fr 340px;
  gap: 20px;
  text-align: left;
  min-height: 520px;
  background: #090e1c;
}

.dash-sidebar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-org {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-org-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.sidebar-org-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.sidebar-org-id {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.dash-nav-item.active {
  background: rgba(0, 102, 255, 0.18);
  color: #ffffff;
  border-left: 3px solid var(--primary);
}

.dash-nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Center Feed */
.dash-main-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.ticket-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.ticket-card:hover {
  border-color: var(--border-bright);
}

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

.ticket-id {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 700;
  font-family: monospace;
}

.ticket-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-open { background: rgba(0, 102, 255, 0.2); color: #60a5fa; }
.status-progress { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-call { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.ticket-subject {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Right Panel: Active Agora Calling Subsystem */
.dash-right-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.call-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.call-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
}

.video-call-box {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 102, 255, 0.3);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: inset 0 0 40px rgba(0, 102, 255, 0.15);
}

.video-caller-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.video-channel-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--secondary);
}

.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-mic { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-cam { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-hangup { background: #ef4444; color: #fff; }
.control-btn:hover { transform: scale(1.1); }

/* ==========================================================================
   Section Styles
   ========================================================================== */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.08);
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   Dual Platform Showcase: Admin vs Customer
   ========================================================================== */
.dual-platform-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.dual-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.dual-tab-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.dual-content-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.dual-content-details h3 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.dual-feature-list {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dual-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.dual-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.switch-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.switch-label.active {
  color: var(--text-main);
}

.discount-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.08) 0%, rgba(15, 23, 42, 0.85) 100%);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px var(--primary-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 48px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin: 24px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-feature-item i {
  color: var(--accent-green);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  color: var(--text-muted);
  padding: 0 24px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 22px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-section {
  padding: 60px 0 100px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(121, 40, 202, 0.15) 100%);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.cta-box h2 {
  font-size: 3rem;
  margin-bottom: 18px;
}

.cta-box p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 70px 0 30px;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-badge-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.app-badge-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
}

.app-badge-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.badge-text-small {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.badge-text-big {
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .dual-content-container { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: 1fr; }
  .dash-sidebar, .dash-right-panel { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
