/* Base Variables & Theme */
:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-main: #060814;
  --bg-surface: rgba(13, 17, 39, 0.75);
  --bg-surface-hover: rgba(22, 29, 63, 0.85);
  --bg-card: rgba(18, 22, 47, 0.55);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --secondary-glow: rgba(168, 85, 247, 0.4);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.35);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-dark: linear-gradient(135deg, #1e1b4b 0%, #060814 100%);
  --grad-vault: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.3) 100%);
  
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
  --shadow-success-glow: 0 0 25px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 8, 20, 1) 0%, rgba(3, 4, 10, 1) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.45);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Container & Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(6, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  background: var(--grad-primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #818cf8;
  letter-spacing: 0.05em;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), 0 0 10px rgba(168, 85, 247, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.btn-success {
  background: var(--grad-success);
  color: #ffffff;
  box-shadow: var(--shadow-success-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, var(--danger) 100%);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Glassmorphism Cards */
.card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-card), 0 0 30px rgba(99, 102, 241, 0.05);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(8, 10, 24, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(8, 10, 24, 0.8);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Custom Checkbox/Radio */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.radio-card {
  border: 1px solid var(--border-color);
  background: rgba(8, 10, 24, 0.3);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.radio-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Marketing Page Specifics */
.marketing-section {
  padding: 4.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.marketing-title-group {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.marketing-title-group h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Landing Section */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0 5rem 0;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0;
    gap: 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-headline span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating Shield Graphic in Hero */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-shield-glowing {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s infinite ease-in-out;
  border: 1px dashed rgba(99, 102, 241, 0.2);
}

.hero-shield-inner {
  background: var(--grad-primary);
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 45px rgba(99, 102, 241, 0.6);
  color: white;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(13, 17, 39, 0.45);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-color-glow);
  background: rgba(22, 29, 63, 0.65);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 10px 30px rgba(99, 102, 241, 0.05);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: rgba(13, 17, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--primary);
  background: rgba(18, 22, 58, 0.7);
  box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
}

.pricing-card.popular:hover {
  box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.25), 0 0 30px rgba(168, 85, 247, 0.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 25px;
  background: var(--grad-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  background: rgba(13, 17, 39, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--border-color-glow);
  background: rgba(18, 22, 50, 0.6);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.faq-icon {
  transition: transform 0.25s ease;
}

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

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link-col h5 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Dashboard & Simulator Specific Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 3fr 1.2fr;
  }
}

.trade-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .trade-container {
    grid-template-columns: 2fr 1.2fr;
  }
}

/* Vault Graphics */
.escrow-vault-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 24, 0.4);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.vault-container {
  position: relative;
  width: 140px;
  height: 180px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px 20px 30px 30px;
  background: rgba(20, 24, 48, 0.4);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.vault-cap {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 10px;
  background: #312e81;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  z-index: 10;
}

.vault-liquid {
  width: 100%;
  height: 5%;
  background: linear-gradient(0deg, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.7) 100%);
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), inset 0 10px 20px rgba(255, 255, 255, 0.3);
}

.vault-liquid-wave {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 15px;
  background: inherit;
  border-radius: 50% 50% 0 0;
  animation: liquidFlow 3s infinite ease-in-out;
}

.vault-liquid.locked {
  background: linear-gradient(0deg, rgba(16, 185, 129, 0.5) 0%, rgba(52, 211, 153, 0.7) 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.vault-liquid.disputed {
  background: linear-gradient(0deg, rgba(239, 68, 68, 0.5) 0%, rgba(248, 113, 113, 0.7) 100%);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.vault-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  z-index: 5;
}

.vault-lock-icon {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  z-index: 5;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* Chat Styling */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 450px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(13, 17, 39, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble.peer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.chat-bubble.system {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  align-self: center;
  text-align: center;
  max-width: 95%;
  border-radius: 4px;
}

.chat-bubble.system.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.chat-bubble.system.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 10, 24, 0.8);
  display: flex;
  gap: 0.5rem;
}

/* Timeline */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  width: 12%;
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #181d38;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.timeline-step.active .step-node {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-step.completed .step-node {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
  box-shadow: 0 0 15px var(--success-glow);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--text-muted);
  text-align: center;
}

.timeline-step.active .step-label {
  color: #ffffff;
}

.timeline-step.completed .step-label {
  color: var(--success);
}

.wallet-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
}

/* Offer Rows */
.offer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

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

.offer-header-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  background: rgba(8, 10, 24, 0.4);
}

@media (max-width: 768px) {
  .offer-row, .offer-header-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .offer-header-row {
    display: none;
  }
  .offer-row > div:nth-child(n+3) {
    grid-column: span 1;
  }
  .offer-row > div:last-child {
    grid-column: span 2;
    text-align: right;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 4, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-card), 0 0 50px rgba(99, 102, 241, 0.15);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes liquidFlow {
  0%, 100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-5px) scaleY(1.05);
  }
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* Authentication Styles */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.auth-card {
  border: 1px solid var(--border-color-glow);
  background: var(--bg-surface);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.15), var(--shadow-card);
}

/* Live rates ticker styling */
.live-rates-bar {
  background: rgba(8, 10, 24, 0.5);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  margin: 0 -1.5rem 2rem -1.5rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.live-rates-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.live-rate-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.rate-name {
  color: var(--text-muted);
  font-weight: 600;
}

.rate-value {
  color: #ffffff;
  font-weight: 700;
  transition: color 0.5s ease;
}

.rate-value.up {
  color: #34d399;
}

.rate-value.down {
  color: #f87171;
}

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

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

/* Support Chat Styles */
.support-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.support-bubble-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.4);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-bubble-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px 0 rgba(99, 102, 241, 0.6);
}

.support-bubble-btn .bubble-icon {
  width: 24px;
  height: 24px;
}

.support-unread-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--danger);
  border: 2px solid var(--bg-main);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.support-chat-box {
  width: 360px;
  height: 460px;
  display: flex;
  flex-direction: column;
  background: rgba(13, 17, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color-glow);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.support-chat-header {
  padding: 1rem;
  background: rgba(18, 22, 47, 0.8);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 10, 24, 0.6);
  display: flex;
  gap: 8px;
}

.support-msg-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.825rem;
  line-height: 1.4;
  word-break: break-word;
}

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

.support-msg-admin {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border-color);
}

.support-system-msg {
  align-self: center;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3;
}

.support-user-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.support-user-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.support-user-item.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary-glow);
}

.support-user-item-unread {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

