/* ==========================================================================
   Antigravity Hub - Component Styles
   ========================================================================== */

/* Navbar & Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  position: relative;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
}

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

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

.nav-link:hover {
  color: var(--text-primary);
}

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

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-normal);
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

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

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(30deg);
  transition: 0.8s;
  opacity: 0;
}

.btn-glow:hover::after {
  animation: shimmer 1.5s infinite;
  opacity: 1;
}

/* Hero Section */
.hero {
  padding-top: 170px;
  padding-bottom: 90px;
  position: relative;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 28px;
}

.hero-tag svg {
  color: var(--cyan);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 960px;
  margin: 0 auto 24px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
}

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

/* Feature Badges Row */
.feature-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.feature-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-pill-item svg {
  color: var(--emerald);
}

/* Code Preview Terminal Card */
.terminal-card {
  max-width: 800px;
  margin: 50px auto 0;
  background: #090d16;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.code-keyword { color: #f472b6; }
.code-func { color: #38bdf8; }
.code-str { color: #34d399; }
.code-comment { color: #64748b; font-style: italic; }
.code-prompt { color: #a78bfa; font-weight: 700; }

/* Pricing Cards */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-label.active {
  color: var(--text-primary);
}

.discount-badge {
  padding: 4px 10px;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-light);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

input:checked + .slider:before {
  transform: translateX(26px);
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
}

.featured-ribbon {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, var(--pink), var(--secondary));
  color: white;
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pricing-header {
  margin-bottom: 24px;
}

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

.pricing-tier-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0;
}

.pricing-currency {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Slot Capacity Meter */
.slot-meter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 24px;
}

.slot-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.slot-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.slot-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  transition: width 0.5s ease;
}

.slot-bar-fill.warning {
  background: linear-gradient(90deg, var(--amber), #ef4444);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.pricing-feature-item svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* How Shared Works Section */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.workflow-card {
  position: relative;
  text-align: left;
}

.workflow-step-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
}

.workflow-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.workflow-icon svg {
  width: 26px;
  height: 26px;
}

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

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

.comparison-table th, .comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: rgba(15, 23, 42, 0.9);
  font-size: 1rem;
  font-weight: 700;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.check-icon {
  color: var(--emerald);
  font-weight: bold;
}

.cross-icon {
  color: var(--text-dim);
}

/* Modal Dialog Base */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

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

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* Step Wizard Checkout */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.checkout-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.checkout-step-item.active .step-num {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.checkout-step-item.completed .step-num {
  background: var(--emerald);
  color: white;
}

.step-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Payment Selector Pills */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payment-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.payment-card:hover, .payment-card.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Credential Display Box */
.token-box {
  background: #070a13;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  word-break: break-all;
  margin: 16px 0;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
}

/* Floating AI Support Chat Widget */
.chat-widget-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 30px var(--primary-glow);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  transition: var(--transition-bounce);
}

.chat-widget-btn:hover {
  transform: scale(1.1);
}

.chat-box {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  height: 480px;
  background: #0e1424;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  z-index: 990;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: var(--transition-normal);
}

.chat-box.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  padding: 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: flex-col;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  margin-left: auto;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* Toast Notifications for Live Sales */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}

.live-toast {
  background: rgba(14, 20, 36, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.toast-content {
  font-size: 0.82rem;
}

.toast-user {
  font-weight: 700;
  color: var(--text-primary);
}

.toast-action {
  color: var(--text-muted);
}

/* ==========================================================================
   WhatsApp Order & Bank Deposit Custom Components
   ========================================================================== */

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  font-weight: 700;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  filter: brightness(1.08);
}

.single-pricing-hero {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(145deg, rgba(14, 20, 36, 0.9) 0%, rgba(26, 36, 64, 0.85) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.25);
  overflow: hidden;
}

.single-pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 20px;
  border-bottom-left-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.bank-details-card {
  background: rgba(14, 20, 36, 0.8);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bank-val {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #a5b4fc;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-mini-btn:hover {
  background: var(--primary);
  color: white;
}

/* Deposit Slip File Dropzone */
.file-dropzone {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(14, 20, 36, 0.9);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.file-thumb-container {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-details {
  flex: 1;
  overflow: hidden;
}

.file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.file-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}

