/* ZeroLink Stylesheet */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1524;
  --bg-card: rgba(20, 28, 47, 0.7);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(147, 51, 234, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;

  --color-primary: #a855f7;
  --color-primary-rgb: 168, 85, 247;
  --color-secondary: #06b6d4;
  --color-secondary-rgb: 6, 182, 212;
  --color-accent: #3b82f6;
  --color-success: #10b981;
  --color-danger: #ef4444;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-blur: backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.warning-banner {
  background-color: #78350f;
  color: #fef3c7;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid #d97706;
}

/* App Layout Grid */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  height: 100vh;
  width: 100vw;
}

@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 240px 1fr;
  }
  .visualizer-pane {
    display: none; /* Hide visualizer on smaller screens */
  }
}

/* Common Card/Panel Component */
.card {
  background: var(--bg-card);
  border: var(--border-color) 1px solid;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Scrollbar styling – using scrollbar-gutter to prevent layout shift on Windows */
* {
  scrollbar-gutter: stable;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.4);
}

.btn-accent {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn-accent:hover {
  background: rgba(6, 182, 212, 0.25);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Sidebar Component */
.sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 11px;
  color: var(--text-dark);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-section h3, .connections-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.profile-input-group {
  display: flex;
  gap: 8px;
}

.profile-input-group input, .accept-input-group textarea, .accept-input-group input, .copy-input-row input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.profile-input-group input:focus, .accept-input-group textarea:focus, .accept-input-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

.profile-info-text {
  font-size: 11px;
  color: var(--text-dark);
  margin-top: 8px;
  line-height: 1.4;
}

.connections-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 8px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.connections-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  text-align: center;
  color: var(--text-dark);
  font-size: 13px;
  padding: 20px 10px;
  line-height: 1.5;
}

/* Connection Item */
.connection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.connection-item:hover, .connection-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.connection-item.active {
  border-left: 3px solid var(--color-primary);
}

.delete-conn-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-conn-btn:hover {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.1);
}

.connection-item:hover .delete-conn-btn {
  opacity: 1;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.connection-info {
  flex: 1;
  overflow: hidden;
}

.connection-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.connection-queue-desc {
  font-size: 11px;
  color: var(--text-dark);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Chat Pane */
.chat-area {
  background-color: #0c101c;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid var(--border-color);
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  padding: 0;
}

.welcome-box {
  max-width: 480px;
  text-align: center;
  background: var(--bg-card);
  border: var(--border-color) 1px solid;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.welcome-icon {
  font-size: 48px;
}

.welcome-box h2 {
  font-size: 22px;
  font-weight: 600;
}

.welcome-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-bullets {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.bullet strong {
  color: var(--color-primary);
}

/* Chat Interface Components */
.chat-interface {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 21, 36, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.chat-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.connection-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-indicator.online {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}
.status-indicator.offline {
  background-color: var(--text-dark);
}

.status-text {
  font-size: 11px;
  color: var(--text-muted);
}

.crypto-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-pane {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Chat Messages bubbles */
.message-row {
  display: flex;
  width: 100%;
}

.message-row.sent {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 65%;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.message-row.sent .message-bubble {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: white;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.message-row.received .message-bubble {
  background: #1e293b;
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border-color);
}

.message-meta {
  font-size: 10px;
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
}

.message-row.received .message-meta {
  color: var(--text-dark);
}

.crypto-meta-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 4px;
  border-radius: 4px;
  margin-right: auto;
  color: #c084fc;
}

/* Input Footer */
.chat-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 21, 36, 0.3);
}

.message-form {
  display: flex;
  gap: 12px;
}

.message-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
}

.message-form input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

/* Visualizer Pane */
.visualizer-pane {
  background-color: var(--bg-secondary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.visualizer-header {
  margin-bottom: 16px;
}

.visualizer-header h3 {
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(to right, #fff, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visualizer-header p {
  font-size: 11px;
  color: var(--text-dark);
  margin-top: 2px;
}

.diagram-card {
  padding: 8px;
}

.diagram-container {
  width: 100%;
  height: 240px;
  background-color: #060913;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Animations for Packet Flows */
@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

path {
  stroke-dasharray: 6;
}

.diagram-active path {
  animation: dash 1.5s linear infinite;
}

#path-q1-send, #path-q1-recv {
  stroke: var(--color-primary);
}

#path-q2-send, #path-q2-recv {
  stroke: var(--color-secondary);
}

/* Crypto specifications sub-pane */
.crypto-details h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.crypto-meta-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crypto-meta-table .row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crypto-meta-table .label {
  font-size: 11px;
  color: var(--text-dark);
}

.crypto-meta-table .val {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monospace {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px !important;
  color: #a5b4fc;
}

.security-ok {
  color: var(--color-success);
  font-size: 11px !important;
}

/* Console card */
.console-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
  min-height: 140px;
  padding: 12px;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}

.console-header h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.console-body {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #10b981;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 6px;
}

.console-line {
  line-height: 1.4;
  word-break: break-all;
}

.console-line.system {
  color: var(--text-muted);
}

.console-line.in {
  color: var(--color-primary);
}

.console-line.out {
  color: var(--color-secondary);
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: var(--transition);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transform: scale(1);
  transition: var(--transition);
}

.modal-overlay.hidden .modal {
  transform: scale(0.95);
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: white;
}

/* Tab control in modal */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.tab-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.invite-result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-result-box label {
  font-size: 11px;
  color: var(--text-muted);
}

.copy-input-row {
  display: flex;
  gap: 8px;
}

.copy-input-row input {
  font-family: var(--font-mono);
  font-size: 11px;
}

.spinner-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-text {
  font-size: 11px;
  color: var(--text-dark);
}

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

.accept-input-group label {
  font-size: 12px;
  color: var(--text-muted);
}

.accept-input-group textarea {
  resize: none;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ========================================= */
/* 📱 MOBILE RESPONSIVE LAYOUT                 */
/* ========================================= */

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  
  #mobile-back-btn {
    margin-right: 12px;
    font-size: 16px;
    padding: 4px 10px;
    font-weight: bold;
    display: none !important; /* Managed by JS */
  }

  body.show-back-btn #mobile-back-btn {
    display: inline-flex !important;
  }
  
  .app-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* space for bottom nav */
    height: 100vh;
  }

  /* Default hide all main panes on mobile */
  .sidebar, .chat-area, .visualizer-pane {
    display: none !important;
    width: 100%;
    flex: 1;
    border: none;
    overflow-y: auto;
  }

  /* --------------------------------- */
  /* TAB LOGIC (Toggled by JS classes on body) */
  /* --------------------------------- */
  
  /* Chats Tab */
  body.mobile-tab-chats .chat-area {
    display: flex !important;
  }

  /* Connections Tab */
  body.mobile-tab-connections .sidebar {
    display: flex !important;
  }
  body.mobile-tab-connections .profile-section {
    display: none !important;
  }

  /* Identity Tab */
  body.mobile-tab-identity .sidebar {
    display: flex !important;
  }
  body.mobile-tab-identity .connections-section {
    display: none !important;
  }

  /* Diagnostics/Settings Tab */
  body.mobile-tab-diagnostics .visualizer-pane {
    display: flex !important;
  }

  /* --------------------------------- */
  /* Mobile Bottom Nav Styling         */
  /* --------------------------------- */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(15, 21, 36, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
  }

  .nav-tab {
    background: transparent;
    border: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: var(--transition);
  }

  .nav-tab.active {
    color: var(--color-primary);
  }

  .nav-icon {
    font-size: 20px;
  }
  
  .nav-label {
    font-size: 10px;
    font-weight: 500;
  }

  /* Modal updates for mobile */
  .modal {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
  }

  /* Footer on mobile: hide above bottom nav */
  .app-footer {
    margin-bottom: 60px;
  }
}

/* ========================================= */
/* 🏷️  FOOTER                                 */
/* ========================================= */

.app-footer {
  width: 100%;
  background: linear-gradient(90deg, rgba(15,21,36,0.98), rgba(20,28,47,0.98));
  border-top: 1px solid rgba(168,85,247,0.15);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-logo {
  font-size: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand strong {
  color: var(--text-main);
  font-weight: 600;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(168,85,247,0.3);
}

.footer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168,85,247,0.5);
  filter: brightness(1.1);
}

.footer-dev {
  display: flex;
  align-items: center;
}

.footer-insta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.footer-insta:hover {
  color: #fff;
  border-color: rgba(225,48,108,0.5);
  background: linear-gradient(135deg, rgba(131,58,180,0.15), rgba(225,48,108,0.15));
  box-shadow: 0 0 16px rgba(225,48,108,0.2);
}

.footer-insta svg {
  flex-shrink: 0;
  color: #e1306c;
}

.footer-insta:hover svg {
  filter: drop-shadow(0 0 4px rgba(225,48,108,0.8));
}

.insta-handle {
  font-weight: 600;
  color: var(--color-primary);
}

.footer-insta:hover .insta-handle {
  color: #e1306c;
}

/* ============================================ */
/* 🏠  LANDING PAGE STYLES                       */
/* ============================================ */

/* ── Shared section wrapper ── */
.lp-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 40px;
  width: 100%;
}

.lp-section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.lp-section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.lp-section-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ── HERO ── */
.lp-hero {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.lp-hero-grid-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(168,85,247,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lp-hero > * { position: relative; z-index: 1; }

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.lp-headline {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.lp-headline-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-subheading {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}

.lp-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.lp-cta-primary {
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  box-shadow: 0 4px 24px rgba(168,85,247,0.35);
  transition: all 0.2s ease;
}

.lp-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.5);
}

.lp-cta-secondary {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.lp-cta-secondary:hover {
  border-color: rgba(168,85,247,0.4);
  color: var(--text-main);
  background: rgba(168,85,247,0.08);
}

/* ── WHY section divider ── */
.lp-why {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(168,85,247,0.04) 0%, transparent 100%);
}

/* ── FEATURE CARDS GRID ── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.lp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lp-card:hover {
  border-color: rgba(168,85,247,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

.lp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.lp-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.lp-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── TIMELINE ── */
.lp-timeline {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 6px 0;
}

.lp-step-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, rgba(168,85,247,0.4), rgba(6,182,212,0.2));
  margin-left: 20px;
  border-radius: 1px;
}

.lp-step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.lp-step-body {
  padding-top: 8px;
}

.lp-step-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.lp-step-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── COMPARISON TABLE ── */
.lp-comparison-note {
  font-size: 13px;
  margin-bottom: 24px;
}

.lp-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lp-table thead {
  background: rgba(168,85,247,0.08);
}

.lp-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lp-table th.col-cc {
  color: var(--color-primary);
}

.lp-table td {
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}

.lp-table td:first-child {
  color: var(--text-main);
  font-weight: 500;
}

.lp-table td.col-cc {
  background: rgba(168,85,247,0.04);
}

.lp-table tr:last-child td { border-bottom: none; }
.lp-table tr:hover td { background: rgba(255,255,255,0.02); }
.lp-table tr:hover td.col-cc { background: rgba(168,85,247,0.07); }

.badge-no   { color: #f87171; font-weight: 600; font-size: 13px; }
.badge-yes  { color: #fb923c; font-weight: 600; font-size: 13px; }
.badge-warn { color: #facc15; font-weight: 600; font-size: 13px; }
.badge-good { color: #4ade80; font-weight: 600; font-size: 13px; }

/* ── BOTTOM CTA SECTION ── */
.lp-bottom-cta {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.lp-bottom-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(168,85,247,0.12), transparent 70%);
  pointer-events: none;
}

.lp-bottom-cta > * { position: relative; z-index: 1; }

.lp-shield {
  font-size: 42px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(168,85,247,0.6));
}

.lp-bottom-cta h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}

.lp-bottom-cta > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.lp-mission {
  font-size: 12px !important;
  color: var(--text-dark) !important;
  margin-top: 28px !important;
  max-width: 500px;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.6;
}

.lp-bottom-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.lp-bottom-links a {
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.lp-bottom-links a:hover {
  color: var(--color-primary);
}

.lp-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
}

.lp-mobile-header .logo h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LANDING PAGE RESPONSIVE ── */
@media (max-width: 768px) {
  .lp-hero, .lp-section, .lp-bottom-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lp-hero { padding-top: 32px; } /* Reduced top padding on mobile since header takes space */

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-timeline { gap: 0; }

  .lp-table th, .lp-table td {
    padding: 11px 14px;
    font-size: 13px;
  }

  .lp-cta-row { flex-direction: column; align-items: center; }
}
