/**
 * Advanced Arbitrage Trading Pool - Styles
 * 
 * DISCLAIMER: This is NOT an official Aave product.
 * This is an independent open-source project.
 * Use at your own risk.
 * 
 * Version: 1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #333333;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --shadow-outset: 8px 8px 16px rgba(0, 0, 0, 0.5), -8px -8px 16px rgba(255, 255, 255, 0.05);
  --shadow-outset-small: 5px 5px 10px rgba(0, 0, 0, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.05);
  --shadow-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.5), inset -4px -4px 8px rgba(255, 255, 255, 0.05);
  --shadow-inset-hover: inset 5px 5px 10px rgba(0, 0, 0, 0.5), inset -5px -5px 10px rgba(255, 255, 255, 0.05);
}

html, body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  background: var(--bg-primary) url('background/Box@1x-5.0s-1593px-1297px.svg') center center / cover no-repeat;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

/* Fix background on mobile devices */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}


/* Loading Animation Styles */
.loading {
  position: fixed;
  top: -20px;
  left: 20px;
  transform: translate(0, 0) scale(0.5);
  z-index: 10000;
  background: transparent;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

/* Simplified loading animation - logo immediately in corner */
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.aave-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  color: #ffffff;
}

.aave-text {
  width: 400px;
  height: auto;
  display: block;
}

/* Circular crop for eye (inside SVG foreignObject) */
.eye-clip-circle-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border-top: 0.3px solid rgba(0,0,0,.25);
}

/* Eye white */
.eye-ball {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  position: relative;
  background: radial-gradient(circle at 50%, #fcfcfc, #efeff1 66%, #eecccc 100%);
  animation: blink-eye 2.4s infinite;
  animation-delay: 8s;
  top: -0.3px;
  border-bottom: 0.3px solid #000;
}

/* Iris with pupil */
.eye-iris {
  width: 55%;
  height: 55%;
  border-radius: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: move-iris 5s ease-out infinite;
  background: radial-gradient(circle at 50% 50%, #066 0%, #6cc 90%);
}

/* Pupil */
.eye-iris:before {
  content: "";
  width: 40%;
  height: 40%;
  border-radius: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  background: black;
  transform: translate(-50%, -50%);
}

/* Glare */
.eye-iris:after {
  content: "";
  width: 30%;
  height: 30%;
  border-radius: 100%;
  position: absolute;
  left: 20%;
  top: 20%;
  background: rgba(255, 255, 255, 0.5);
}

/* Iris movement animation */
@keyframes move-iris {
  0% {
    transform: translate(-50%, -50%);
  }
  20% {
    transform: translate(-70%, -45%) scale(0.95);
  }
  25%, 44% {
    transform: translate(-50%, -50%);
  }
  50%, 60% {
    transform: translate(-30%, -60%) scale(0.95);
  }
  66%, 100% {
    transform: translate(-50%, -50%);
  }
}

/* Blinking animation */
@keyframes blink-eye {
  90% {
    transform: none;
    animation-timing-function: ease-in;
  }
  93% {
    transform: translateY(2px) scaleY(0);
  }
  100% {
    animation-timing-function: ease-out;
  }
}

.typewriter-text {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  animation: typewriter 0.3s steps(21, end) forwards;
  animation-delay: 0.3s;
}

@keyframes typewriter {
  to {
    width: 21ch;
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 48px;
  z-index: 1000;
  background: var(--bg-secondary);
  border-radius: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  transform: translateY(-100%);
  animation: slideDownHeader 0.8s cubic-bezier(0.5, 0, 0.1, 1) forwards;
  animation-delay: 0s;
  box-sizing: border-box;
  overflow: visible;
  max-width: 100vw;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1), 
              0 0 40px rgba(46, 186, 198, 0.2),
              0 1px 0 rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-outset-small);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.header-button:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-inset-hover);
}

.header-button.active {
  color: var(--text-primary);
  box-shadow: var(--shadow-inset-hover);
}

.header-button-launch {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 400;
  box-shadow: var(--shadow-outset-small);
}

.header-button-launch:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-inset-hover);
}

.header-button-launch.active {
  color: var(--text-primary);
  box-shadow: var(--shadow-inset-hover);
}

/* Mobile Icon Button */
.mobile-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: var(--shadow-outset-small);
}

.mobile-icon-btn:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-inset-hover);
  transform: translateY(-1px);
}

/* Success Trades Ticker */
.trades-ticker {
  position: fixed;
  top: 60px; /* Below header */
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 999;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  opacity: 0;
  animation: ticker-appear 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.trades-ticker::before,
.trades-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: rgba(26, 26, 26, 0.95);
  z-index: -1;
}

.trades-ticker::before {
  left: 0;
  transform: translateX(-100%);
  animation: ticker-merge-left 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.trades-ticker::after {
  right: 0;
  transform: translateX(100%);
  animation: ticker-merge-right 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ticker-merge-left {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes ticker-merge-right {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes ticker-appear {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 6s linear infinite;
  gap: 40px;
  padding: 0 20px;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item:last-child {
  border-right: none;
}

.ticker-success-icon {
  color: #4ade80;
  font-size: 14px;
}

.ticker-contract {
  color: var(--text-primary);
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.ticker-investment {
  color: var(--text-secondary);
}

.ticker-loan {
  color: var(--text-muted);
  font-size: 12px;
}

.ticker-profit {
  color: #4ade80;
  font-weight: 600;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Card Navigation Buttons */
.card-nav-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 12px;
  backdrop-filter: none;
}

.card-nav-button {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-outset-small);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-nav-button:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-inset-hover);
  background: rgba(46, 186, 198, 0.2);
}

.card-nav-button.active {
  color: #2EBAC6;
  box-shadow: var(--shadow-inset-hover);
  background: rgba(46, 186, 198, 0.3);
}

@keyframes slideDownHeader {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content Styles */
.main-content {
  display: none;
  opacity: 0;
  background: transparent;
  padding-top: 96px; /* Space for header (60px) + ticker (36px) */
}

.main-content.show {
  display: block;
  opacity: 1;
  animation: fadeInContent 0.5s ease-out forwards;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Cards Styles */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.hero-title-section {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: -1; /* Greatly reduced so cards fly above the title */
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeInDown 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #cccccc;
  margin: 0;
  line-height: 1.5;
  opacity: 0.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cards-container {
  perspective: 4000px;
  position: relative;
  width: 510px;
  height: 770px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.8s;
  margin-top: 100px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.card {
  position: absolute;
  width: 510px;
  height: 770px;
  border-radius: 20px;
  background: #1a1a1a;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  /* Disable backface-visibility for better text clarity */
  backface-visibility: visible;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
  image-rendering: auto;
  -webkit-text-stroke: 0;
  /* Use optimizeLegibility for better text clarity */
  text-rendering: optimizeLegibility;
  overflow: hidden;
  border-top: 3px solid transparent;
}

/* Color accents for each card */
#card-1 {
  border-top-color: #06b6d4; /* Technology - cyan */
}

#card-2 {
  border-top-color: #8b5cf6; /* About pool - purple */
}

#card-3 {
  border-top-color: #ef4444; /* Security - red */
}


.card::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 480px;
  background: white;
  filter: blur(50px);
  left: -50%;
  top: -50%;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

.card-logo {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

.card-logo-top-right {
  top: 20px;
  right: 20px;
}

.card-logo-bottom-left {
  bottom: 20px;
  left: 20px;
}

.card-inner {
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  padding: 40px 36px;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  filter: none !important;
  opacity: 1 !important;
  transform: none;
  transform-style: flat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  -webkit-text-stroke: 0;
  image-rendering: auto;
  z-index: 1;
  will-change: auto;
  backface-visibility: visible;
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: none;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Remove text-rendering for standard browser rendering - this gives maximum clarity */
  text-rendering: auto;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

/* Underline for titles with card color */
#card-1 .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #06b6d4;
  border-radius: 2px;
}

#card-2 .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #8b5cf6;
  border-radius: 2px;
}

#card-3 .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ef4444;
  border-radius: 2px;
}

.list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  /* Remove text-shadow for maximum text clarity */
  text-shadow: none;
  min-height: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Remove text-rendering for standard browser rendering - this gives maximum clarity */
  text-rendering: auto;
  opacity: 1 !important;
  text-align: center;
  align-items: center;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 8px;
}

.list-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #ffffff;
  stroke: currentColor;
  stroke-width: 2;
  margin-top: 2px;
  opacity: 0.85;
}

.list-item-content {
  flex: 1;
  text-align: center;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
  text-align: center;
}

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  margin-bottom: 2px;
  max-width: 100%;
}

.list-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #ffffff;
  stroke: currentColor;
  stroke-width: 2;
  margin-top: 2px;
  opacity: 0.85;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list > div:not(.list-item) {
  text-align: center;
  width: 100%;
}

.list strong {
  display: block;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 16.5px;
  text-shadow: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}

/* Color accents for item titles */
#card-1 .list strong {
  color: #06b6d4;
}

#card-2 .list strong {
  color: #8b5cf6;
}

#card-3 .list strong {
  color: #ef4444;
}

.list ul {
  margin: 6px auto 0 auto;
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

.list li {
  margin-bottom: 5px;
  font-size: 14px;
  text-align: center;
}

.spacer {
  height: 500vh;
  background: transparent;
}

/* Info Cards Styles */
.info-cards-wrapper {
  position: absolute;
  top: 50%;
  left: 83.33%;
  transform: translate(-50%, -50%);
  width: 33.33%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.info-card {
  width: 400px;
  height: 650px;
  position: relative;
  border-radius: 20px;
  background: #1a1a1a;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: auto;
  visibility: hidden;
  border-top: 3px solid #2EBAC6; /* Color accent for info-card */
  overflow: hidden;
}

.info-card-inner {
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  padding: 40px 36px;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  filter: none !important;
  opacity: 1 !important;
  transform: none;
  transform-style: flat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  -webkit-text-stroke: 0;
  image-rendering: auto;
  z-index: 1;
  will-change: auto;
  backface-visibility: visible;
}

.info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-divider {
  height: 1px;
  background: rgba(46, 186, 198, 0.3);
  margin: 16px 0;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2EBAC6;
  text-align: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 10px;
}

/* Underline for titles in info-card */
.info-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #2EBAC6;
  border-radius: 2px;
}

.profit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.profit-item {
  text-align: center;
  padding: 12px 6px;
  background: rgba(46, 186, 198, 0.12);
  border-radius: 16px;
  border: 1px solid rgba(46, 186, 198, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(200px);
  min-width: 0;
  overflow: hidden;
}

.profit-label {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 4px;
  word-break: break-word;
  line-height: 1.3;
}

.profit-value {
  font-size: 16px;
  font-weight: 700;
  color: #2EBAC6;
  line-height: 1.2;
  word-break: break-word;
}

.profit-sublabel {
  font-size: 10px;
  color: #0f9;
  margin-top: 3px;
  word-break: break-word;
  line-height: 1.3;
}

.flash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.flash-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(-200px);
}

.flash-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.flash-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}

.flash-sub {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  line-height: 1.3;
}

.notice {
  margin-top: 16px;
  padding: 12px;
  background: rgba(46, 186, 198, 0.15);
  border-radius: 14px;
  border-left: 4px solid #2EBAC6;
  font-size: 11px;
  line-height: 1.4;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(100px);
}

/* Tablets */
@media (max-width: 1100px) {
  .info-cards-wrapper {
    left: 83.33%;
    width: 33.33%;
  }

  .app-interface-section {
    left: 33.33%;
    width: 66.67%;
  }

  .how-to-create-wrapper {
    left: 83.33%;
    width: 33.33%;
  }

  .info-card {
    width: 360px;
    height: 580px;
  }

  .cards-container {
    width: 450px;
    height: 680px;
  }

  .card {
    width: 450px;
    height: 680px;
  }

  .card-logo {
    width: 36px;
    height: 36px;
  }

  .card-logo-top-right {
    top: 18px;
    right: 18px;
  }

  .card-logo-bottom-left {
    bottom: 18px;
    left: 18px;
  }

  .card-inner {
    padding: 36px 32px;
    overflow: hidden;
  }

  .title {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .list {
    font-size: 14.5px;
    gap: 13px;
    line-height: 1.42;
  }

  .list strong {
    font-size: 16px;
  }
}

/* Small tablets */
@media (max-width: 768px) {
  .loading {
    animation: moveToCornerMobile 0.8s cubic-bezier(0.5, 0, 0.1, 1) forwards;
    animation-delay: 1.0s;
  }

  @keyframes moveToCornerMobile {
    0% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      position: fixed;
    }
    100% {
      top: -20px;
      left: 20px;
      transform: translate(0, 0) scale(0.25);
      position: fixed;
    }
  }

  .loading-square {
    width: 150px;
    height: 150px;
  }

  .inner-square {
    width: 105px;
    height: 105px;
  }

  .aave-logo svg {
    width: 300px;
  }

  .typewriter-text {
    font-size: 18px;
  }

  .header {
    padding: 12px 20px;
    max-width: 100vw;
  }

  .header-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-button {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .card-nav-buttons {
    gap: 4px;
    padding: 3px;
  }

  .card-nav-button {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 28px;
    height: 24px;
    border-radius: 5px;
  }

  .cards-container {
    width: 85vw;
    max-width: 350px;
    height: 520px;
  }

  .card {
    width: 85vw;
    max-width: 350px;
    height: 520px;
    border-radius: 24px;
    padding: 8px;
  }

  .card-logo {
    width: 28px;
    height: 28px;
  }

  .card-logo-top-right {
    top: 14px;
    right: 14px;
  }

  .card-logo-bottom-left {
    bottom: 14px;
    left: 14px;
  }

  .card-inner {
    padding: 22px 18px;
    border-radius: 16px;
    overflow: hidden;
  }

  .title {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .list {
    font-size: 12.5px;
    gap: 9px;
    line-height: 1.4;
  }

  .list strong {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .list li {
    font-size: 11.5px;
  }

  .info-card {
    width: 85vw;
    max-width: 350px;
    height: 560px;
    border-radius: 24px;
    padding: 8px;
  }

  .info-card-inner {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .info-card h3 {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .flash-grid {
    gap: 10px;
    margin-bottom: 18px;
  }

  .flash-item {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .flash-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .flash-value {
    font-size: 18px;
  }

  .flash-sub {
    font-size: 11px;
    margin-top: 4px;
  }

  .profit-grid {
    gap: 8px;
    margin-bottom: 18px;
  }

  .profit-item {
    padding: 14px 6px;
    border-radius: 16px;
  }

  .profit-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .profit-value {
    font-size: 18px;
  }

  .profit-sublabel {
    font-size: 11px;
    margin-top: 3px;
  }

  .notice {
    padding: 14px;
    border-radius: 14px;
    font-size: 12px;
    margin-top: 18px;
  }

  .section-divider {
    margin: 20px 0;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .loading-square {
    width: 120px;
    height: 120px;
  }

  .inner-square {
    width: 84px;
    height: 84px;
  }

  .aave-logo svg {
    width: 250px;
  }

  .typewriter-text {
    font-size: 16px;
  }

  .header {
    padding: 10px 15px;
  }

  .header-button {
    padding: 6px 10px;
    font-size: 11px;
  }

  .card-nav-buttons {
    gap: 3px;
    padding: 2px;
  }

  .card-nav-button {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 24px;
    height: 22px;
    border-radius: 4px;
  }

  .cards-container {
    width: 90vw;
    max-width: 320px;
    height: 480px;
  }

  .card {
    width: 90vw;
    max-width: 320px;
    height: 480px;
    border-radius: 20px;
    padding: 6px;
  }

  .card-logo {
    width: 24px;
    height: 24px;
  }

  .card-logo-top-right {
    top: 12px;
    right: 12px;
  }

  .card-logo-bottom-left {
    bottom: 12px;
    left: 12px;
  }

  .card-inner {
    padding: 18px 14px;
    border-radius: 14px;
    overflow: hidden;
  }

  .title {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .list {
    font-size: 11.5px;
    gap: 7px;
    line-height: 1.35;
  }

  .list strong {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .list li {
    font-size: 10.5px;
  }

  .info-card {
    width: 90vw;
    max-width: 320px;
    height: 520px;
    border-radius: 20px;
    padding: 6px;
  }

  .info-card-inner {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .info-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .flash-grid {
    gap: 8px;
    margin-bottom: 16px;
  }

  .flash-item {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .flash-label {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .flash-value {
    font-size: 16px;
  }

  .flash-sub {
    font-size: 10px;
    margin-top: 3px;
  }

  .profit-grid {
    gap: 6px;
    margin-bottom: 16px;
  }

  .profit-item {
    padding: 12px 5px;
    border-radius: 14px;
  }

  .profit-label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .profit-value {
    font-size: 16px;
  }

  .profit-sublabel {
    font-size: 10px;
    margin-top: 2px;
  }

  .notice {
    padding: 12px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 16px;
  }

  .section-divider {
    margin: 18px 0;
  }
}

/* How to Create Section Styles */
.how-to-create-wrapper {
  position: absolute;
  top: 50%;
  left: 83.33%;
  transform: translate(-50%, -50%);
  width: 33.33%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 5;
}

.how-to-create-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.how-to-title-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 50vh;
  opacity: 0;
}

.how-to-title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #2EBAC6;
  letter-spacing: 6px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 20px 30px;
  white-space: nowrap;
}

.title-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.title-frame path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.vertical-line {
  position: absolute;
  top: 280px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

.step-container {
  position: absolute;
  background: rgba(30, 30, 30, 0.85);
  border: 2px solid rgba(46, 186, 198, 0.6);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  backdrop-filter: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 220px;
}

.step-left {
  right: calc(50% + 20px);
  transform: translateX(-150px);
}

.step-right {
  left: calc(50% + 20px);
  transform: translateX(150px);
}

.step-container[data-step="1"] {
  top: 330px;
}

.step-container[data-step="2"] {
  top: 480px;
}

.step-container[data-step="3"] {
  top: 630px;
}

.step-container[data-step="4"] {
  top: 780px;
}

.step-container[data-step="5"] {
  top: 930px;
}

.step-number {
  font-size: 28px;
  font-weight: 700;
  color: #2EBAC6;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.step-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #cccccc;
  line-height: 1.3;
}

.step-arrow {
  position: absolute;
  font-size: 36px;
  color: #2EBAC6;
  opacity: 0;
  font-weight: 700;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}

.step-arrow:nth-of-type(2) {
  top: 420px;
}

.step-arrow:nth-of-type(4) {
  top: 570px;
}

.step-arrow:nth-of-type(6) {
  top: 720px;
}

.step-arrow:nth-of-type(8) {
  top: 870px;
}

/* Technical Content (used in Disclaimer) */
.technical-content {
  color: #cccccc;
  line-height: 1.8;
  font-size: 13px;
  margin-top: 16px;
}

.technical-content p {
  margin-bottom: 16px;
}

.technical-content p strong {
  color: #ffffff;
  font-weight: 600;
}

.technical-content ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style: none;
}

.technical-content ul li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.technical-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #2EBAC6;
  font-weight: bold;
}

.technical-content ul li strong {
  color: #2EBAC6;
  font-weight: 600;
}

/* Interface Line */
.interface-line {
  position: absolute;
  top: 1000px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  z-index: 4;
  pointer-events: none;
}

/* App Interface Section */
.app-interface-section {
  position: absolute;
  top: 48%;
  left: 33.33%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 900px;
  height: 980px;
  opacity: 0;
  z-index: 3;
  pointer-events: auto;
  display: none;
}

.app-interface-section .windows {
  width: 100%;
  height: 100%;
}

.app-interface-section .window {
  background: #2a2a2a;
  border-radius: 12px;
  width: 900px;
  height: 980px;
  padding: 12px;
  box-shadow: 
    0 0 4px 1px rgba(255, 255, 255, 0.9),
    0 0 8px 2px rgba(255, 255, 255, 0.6),
    inset 0 0 4px 1px rgba(255, 255, 255, 0.3),
    8px 8px 16px rgba(0,0,0,0.5), 
    -8px -8px 16px rgba(255,255,255,0.05);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 8px;
  position: relative;
  animation: ambilight 3s ease-in-out infinite;
}

@keyframes ambilight {
  0%, 100% {
    box-shadow: 
      0 0 4px 1px rgba(255, 255, 255, 0.85),
      0 0 8px 2px rgba(255, 255, 255, 0.55),
      inset 0 0 4px 1px rgba(255, 255, 255, 0.3),
      8px 8px 16px rgba(0,0,0,0.5), 
      -8px -8px 16px rgba(255,255,255,0.05);
  }
  50% {
    box-shadow: 
      0 0 5px 1.2px rgba(255, 255, 255, 0.95),
      0 0 10px 2.5px rgba(255, 255, 255, 0.65),
      inset 0 0 5px 1.2px rgba(255, 255, 255, 0.35),
      8px 8px 16px rgba(0,0,0,0.5), 
      -8px -8px 16px rgba(255,255,255,0.05);
  }
}

.app-interface-section .window .header {
  grid-column: 1 / -1;
  padding: 6px 10px;
  background: #1e1e1e;
  border-radius: 8px;
  border: 1px solid rgba(46, 186, 198, 0.3);
  position: static !important;
  transform: none !important;
  display: block;
}

.app-interface-section .window .header .header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.app-interface-section .window .wallet-address {
  font-size: 0.85rem;
  color: #cccccc;
  margin-top: 4px;
  font-family: 'Consolas', monospace;
  display: block;
}

.app-interface-section .left-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  height: 100%;
}

.app-interface-section .right-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  justify-content: flex-start;
}

.app-interface-section .button-group {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.app-interface-section .button-group button {
  flex: 1;
  min-width: 0;
}

.app-interface-section button {
  background: #2a2a2a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.5), -3px -3px 6px rgba(255,255,255,0.05);
  white-space: nowrap;
}

.app-interface-section button:hover:not(:disabled) {
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.5), inset -4px -4px 8px rgba(255,255,255,0.05);
}

.app-interface-section button:disabled {
  background: #1a1a1a;
  color: #666666;
  cursor: not-allowed;
}

.app-interface-section #connectWallet {
  background: #2EBAC6;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.5), -3px -3px 6px rgba(255,255,255,0.05);
  width: 100%;
}

.app-interface-section #connectWallet.connected {
  background: #4CAF50;
}

.app-interface-section #deployContractBtn:not(:disabled),
.app-interface-section #startBtn:not(:disabled),
.app-interface-section #stopBtn:not(:disabled),
.app-interface-section #withdrawBtn:not(:disabled) {
  background: #e0e0e0;
  color: #1a1a1a;
}

/* Loading spinner for Deploy button */
.app-interface-section .loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.app-interface-section .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.app-interface-section .input-group-label {
  font-size: 1rem;
  color: #cccccc;
  font-weight: 600;
}

.app-interface-section .input-group-content {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.app-interface-section .input-group-content button {
  flex: 1;
  min-width: 0;
}

.app-interface-section .input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-interface-section .input-group-content input {
  width: 100%;
  min-width: 0;
}

.app-interface-section .input-group-note {
  font-size: 0.75rem;
  color: #999999;
  font-style: italic;
  margin-top: 2px;
  line-height: 1.2;
}

.app-interface-section input[type="number"] {
  background: #2a2a2a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.app-interface-section .info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 2px 0;
}

.app-interface-section .info-block {
  padding: 10px 12px;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.app-interface-section .info-label {
  font-size: 0.9rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  font-weight: 600;
}

.app-interface-section .info-value {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Consolas', monospace;
}

.app-interface-section .stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 4px 0;
}

.app-interface-section .stat-item {
  padding: 10px 6px;
  background: #1e1e1e;
  border-radius: 8px;
  text-align: center;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.app-interface-section .stat-label {
  font-size: 0.85rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  font-weight: 600;
}

.app-interface-section .stat-value {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Consolas', monospace;
}

/* Live Statistics Widget - Mini Version */
.live-stats-widget {
  margin: 8px 0;
  padding: 8px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2EBAC6;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(46, 186, 198, 0.1);
}

.live-stats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  gap: 8px;
}

.live-indicator {
  font-size: 0.7rem;
  color: #ff4444;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.live-title {
  font-size: 0.8rem;
  color: #2EBAC6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.live-stat {
  text-align: center;
  padding: 4px 2px;
  background: rgba(46, 186, 198, 0.05);
  border-radius: 3px;
  border: 1px solid rgba(46, 186, 198, 0.2);
}

.live-value {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Consolas', monospace;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.live-value.updating {
  color: #2EBAC6;
  transform: scale(1.05);
}

.live-label {
  font-size: 0.65rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  font-weight: 500;
  line-height: 1;
}

.live-last-trade {
  text-align: center;
  font-size: 0.7rem;
  color: #cccccc;
  padding-top: 4px;
  border-top: 1px solid rgba(46, 186, 198, 0.2);
}

.live-pulse {
  color: #00ff00;
  animation: pulse 1.5s infinite;
  margin-right: 2px;
}


@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Personal Profitability Calculator - uses same styles as unified-card */
.calculator-slider-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.investment-label {
  font-size: 0.9rem;
  color: #cccccc;
  font-weight: 500;
  text-align: center;
}

.slider-container {
  position: relative;
}

.investment-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #333;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 10px;
}

.investment-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2EBAC6;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(46, 186, 198, 0.3);
}

.investment-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2EBAC6;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(46, 186, 198, 0.3);
}

.slider-value {
  text-align: center;
  font-size: 1.2rem;
  color: #2EBAC6;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Consolas', monospace;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.returns-section {
  background: rgba(46, 186, 198, 0.05);
  border: 1px solid rgba(46, 186, 198, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.returns-header {
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}

.returns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.return-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(46, 186, 198, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(46, 186, 198, 0.2);
}

.return-period {
  font-size: 0.85rem;
  color: #2EBAC6;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.return-amount {
  font-size: 1rem;
  color: #00ff88;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: 'Consolas', monospace;
  transition: all 0.3s ease;
}

.return-amount.updating,
.return-usd.updating,
.annual-roi.updating {
  color: #2EBAC6;
  transform: scale(1.1);
}

.return-usd {
  font-size: 0.8rem;
  color: #cccccc;
  transition: all 0.3s ease;
}

.annual-roi {
  transition: all 0.3s ease;
}

.annual-roi {
  text-align: center;
  font-size: 1rem;
  color: #00ff88;
  font-weight: 700;
  font-family: 'Consolas', monospace;
}

.calculator-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #FFA500;
  margin-bottom: 25px;
  font-style: italic;
}

.calculator-buttons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.calc-btn-primary {
  background: linear-gradient(135deg, #2EBAC6 0%, #1a9aa3 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 186, 198, 0.3);
}

.calc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 186, 198, 0.4);
}

.calc-btn-secondary {
  background: transparent;
  color: #2EBAC6;
  border: 2px solid #2EBAC6;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-btn-secondary:hover {
  background: rgba(46, 186, 198, 0.1);
  transform: translateY(-2px);
}

/* Mobile Calculator Styles */
@media (max-width: 768px) {
  .calculator-wrapper {
    padding: 40px 15px;
  }
  
  .calculator-inner {
    padding: 20px;
  }
  
  .calculator-header h3 {
    font-size: 1.2rem;
  }
  
  .returns-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .calculator-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .calc-btn-primary,
  .calc-btn-secondary {
    width: 100%;
  }
}

/* FAQ Modal */
.faq-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.faq-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.faq-content {
  background: #2a2a2a;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(46, 186, 198, 0.2);
}

.faq-content h2 {
  color: #2EBAC6;
  font-size: 24px;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
  border-bottom: 2px solid #2EBAC6;
  padding: 30px 35px 12px;
  font-weight: 700;
}

.faq-scroll-content {
  max-height: calc(80vh - 120px);
  overflow-y: auto;
  padding: 0 35px 30px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(46, 186, 198, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: #FFA500;
  background: rgba(255, 165, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 165, 0, 0.1);
  color: #FFB84D;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFA500;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 18px 20px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 13px;
}

.faq-answer strong {
  color: #ffffff;
  font-weight: 600;
}

.faq-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2EBAC6;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.faq-close:hover {
  background: rgba(46, 186, 198, 0.1);
  transform: scale(1.1);
}

/* Mobile FAQ Modal Styles */
@media (max-width: 768px) {
  .faq-container {
    padding: 20px;
  }

  .faq-content {
    max-height: 90vh;
    border-radius: 10px;
  }

  .faq-content h2 {
    font-size: 22px;
    padding: 25px 20px 12px;
  }

  .faq-scroll-content {
    padding: 0 20px 25px;
    max-height: calc(90vh - 100px);
  }

  .faq-question {
    padding: 15px;
    font-size: 16px;
  }

  .faq-answer p {
    padding: 15px;
    font-size: 13px;
  }

  .faq-item.active .faq-answer {
    max-height: 300px;
  }

  .faq-close {
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
  }
}

.app-interface-section .contract-address,
.app-interface-section .status {
  font-size: 0.9rem;
  color: #cccccc;
  text-align: center;
  font-weight: 500;
  padding: 12px;
  margin: 4px 0;
  background: #1e1e1e;
  border-radius: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  min-height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.app-interface-section .contract-address-link {
  color: #2EBAC6;
  text-decoration: none;
  cursor: pointer;
  display: inline;
  word-break: break-all;
  vertical-align: middle;
}

.app-interface-section .contract-address-link:hover {
  color: #4dd0e1;
  text-decoration: underline;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.app-interface-section .terminal-corner .terminal {
  background: transparent;
  border-radius: 0;
  padding: 4px;
  flex: 1;
  overflow-y: auto;
  font-size: 0.6rem;
  line-height: 1.2;
  font-family: 'Consolas', 'Courier New', monospace;
  box-shadow: none;
  color: #ffffff;
  min-height: 0;
}

.app-interface-section .terminal-section {
  margin: 8px 0 0 0;
  height: 480px;
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid rgba(46, 186, 198, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.5), inset -4px -4px 8px rgba(255,255,255,0.05);
}

.app-interface-section .terminal-header {
  background: #2a2a2a;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.app-interface-section .terminal-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.app-interface-section .terminal-content {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  font-size: 0.65rem;
  font-family: 'Consolas', monospace;
}

.app-interface-section .opportunities {
  margin-bottom: 8px;
}

.app-interface-section .opportunities div {
  margin: 6px 0;
  color: #ffffff;
  font-size: 0.95rem;
}

.app-interface-section .deal-count {
  color: #2EBAC6;
  font-weight: 700;
  font-size: 0.95rem;
}

.app-interface-section .total-profit {
  color: #00ff00;
  font-weight: 700;
  font-size: 0.95rem;
}

.app-interface-section .terminal-stats {
  display: flex;
  gap: 12px;
  margin: 6px 0;
  padding: 6px;
  background: #2a2a2a;
  border-radius: 6px;
}

.app-interface-section .terminal-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-interface-section .terminal-stat-label {
  font-size: 0.8rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: 600;
}

.app-interface-section .terminal-stat-value {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Consolas', monospace;
}

.app-interface-section .separator {
  border: 0;
  height: 1px;
  background: #404040;
  margin: 6px 0;
}

.app-interface-section .log-entries {
  margin-top: 6px;
}

.app-interface-section .terminal-entry {
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.app-interface-section .prompt {
  color: #2EBAC6;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 1rem;
}

.app-interface-section .output {
  color: #ffffff;
  flex-grow: 1;
  word-break: break-word;
  font-size: 1rem;
}

.app-interface-section .output.error {
  color: #ff4444;
}

.app-interface-section .output.success {
  color: #00ff00;
}

.app-interface-section .output.info {
  color: #2EBAC6;
}

.app-interface-section .output.transaction {
  color: #8888ff;
  font-weight: 500;
}

.app-interface-section .output.success-transaction {
  color: #00ff00;
  font-weight: 500;
}

.app-interface-section .bot-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff00;
  margin-left: 6px;
  animation: pulse 2s ease infinite;
  vertical-align: middle;
}

/* Security Info */
.app-interface-section .security-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 4px 0;
  padding: 12px;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.app-interface-section .security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cccccc;
  font-weight: 500;
  white-space: nowrap;
}

.app-interface-section .security-icon {
  color: #00ff00;
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
}

/* Source Code Section */
.app-interface-section .source-code-section {
  margin: 2px 0;
  border-radius: 6px;
  background: #1e1e1e;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.app-interface-section .source-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.app-interface-section .source-code-title {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.app-interface-section .source-code-buttons {
  display: flex;
  gap: 4px;
}

.app-interface-section .source-code-toggle,
.app-interface-section .source-code-copy {
  background: #2a2a2a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.5), -4px -4px 8px rgba(255,255,255,0.05);
}

.app-interface-section .source-code-toggle:hover,
.app-interface-section .source-code-copy:hover {
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.5), inset -4px -4px 8px rgba(255,255,255,0.05);
}

.app-interface-section .source-code-content {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: auto;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 0 0 15px 15px;
}

.app-interface-section .source-code-content pre {
  margin: 0;
  padding: 0;
}

.app-interface-section .source-code-content code {
  display: block;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.6rem;
  line-height: 1.4;
  color: #cccccc;
  white-space: pre;
}

/* Settings */
.app-interface-section .settings {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
  margin-top: 10px;
}

.app-interface-section .settings-label {
  font-size: 1rem;
  color: #999999;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.app-interface-section .slippage-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.app-interface-section input[type="range"] {
  flex: 1;
  background: #1a1a1a;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 2px;
  outline: none;
}

.app-interface-section input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #2EBAC6;
  border-radius: 50%;
  cursor: pointer;
}

.app-interface-section input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #2EBAC6;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.app-interface-section .slippage-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.app-interface-section .slippage-value {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 10px;
  font-weight: 500;
}

.app-interface-section .toggle-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-interface-section .toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-interface-section .toggle input[type="checkbox"] {
  width: 40px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: #1a1a1a;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.5), inset -4px -4px 8px rgba(255,255,255,0.05);
}

.app-interface-section .toggle input[type="checkbox"]:checked {
  background: #2EBAC6;
}

.app-interface-section .toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  left: 3px;
  transition: all 0.3s;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.app-interface-section .toggle input[type="checkbox"]:checked::before {
  left: 23px;
}

.app-interface-section .toggle-label {
  font-size: 1rem;
  color: #cccccc;
  font-weight: 500;
  cursor: pointer;
}

.app-interface-section .info-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2EBAC6;
  color: #ffffff;
  text-align: center;
  line-height: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  margin-left: 4px;
}

/* Scrollbar styling */
.app-interface-section .left-panel::-webkit-scrollbar,
.app-interface-section .right-panel::-webkit-scrollbar,
.app-interface-section .terminal-content::-webkit-scrollbar {
  width: 6px;
}

.app-interface-section .left-panel::-webkit-scrollbar-track,
.app-interface-section .right-panel::-webkit-scrollbar-track,
.app-interface-section .terminal-content::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.app-interface-section .left-panel::-webkit-scrollbar-thumb,
.app-interface-section .right-panel::-webkit-scrollbar-thumb,
.app-interface-section .terminal-content::-webkit-scrollbar-thumb {
  background: #2EBAC6;
  border-radius: 3px;
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .card-nav-buttons {
    gap: 2px;
    padding: 2px;
  }

  .card-nav-button {
    padding: 2px 5px;
    font-size: 9px;
    min-width: 22px;
    height: 20px;
    border-radius: 4px;
  }

  .cards-container {
    width: 95vw;
    height: 450px;
  }

  .card {
    width: 95vw;
    height: 450px;
  }

  .card-logo {
    width: 20px;
    height: 20px;
  }

  .card-logo-top-right {
    top: 10px;
    right: 10px;
  }

  .card-logo-bottom-left {
    bottom: 10px;
    left: 10px;
  }

  .card-inner {
    padding: 16px 12px;
    overflow: hidden;
  }

  .title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .list {
    font-size: 10.5px;
    gap: 6px;
    line-height: 1.3;
  }

  .list strong {
    font-size: 12px;
  }

  .list li {
    font-size: 9.5px;
  }

  .info-card {
    width: 95vw;
    height: 480px;
  }

  .info-card-inner {
    padding: 18px 14px;
  }

  .info-card h3 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .flash-item {
    padding: 12px 8px;
  }

  .flash-value {
    font-size: 14px;
  }

  .profit-item {
    padding: 10px 4px;
  }

  .profit-value {
    font-size: 14px;
  }
}

/* Footer Styles */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-secondary);
  padding: 12px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 20px rgba(255, 255, 255, 0.1),
              0 0 40px rgba(46, 186, 198, 0.2);
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-left p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.footer-left p:last-child {
  margin-bottom: 0;
}

.footer-warning {
  font-size: 10px !important;
  color: rgba(255, 153, 0, 0.9);
  line-height: 1.3;
  margin-top: 6px !important;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2EBAC6;
  margin-bottom: 8px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-links-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.footer-link-block {
  padding: 10px 12px;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), inset -3px -3px 6px rgba(255,255,255,0.05);
}

.footer-button {
  font-size: 12px;
  font-weight: 500;
  color: #cccccc;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
  padding: 0;
}

.footer-link-block:hover {
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.6), inset -4px -4px 8px rgba(255,255,255,0.08);
}

.footer-link-block:hover .footer-button {
  color: #ffffff;
}

.footer-button span {
  font-size: 16px;
  line-height: 1;
}

.footer-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.footer-security-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: 8px;
}

.footer-security-link:hover {
  color: #2EBAC6;
}

.footer-security-link .footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  width: 100%;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}


/* Responsive Styles for Disclaimer and Warning */
@media (max-width: 768px) {
  .critical-warning-banner {
    padding: 10px 15px;
  }

  .warning-text {
    font-size: 11px;
  }

  .warning-icon {
    font-size: 20px;
  }

  .warning-close {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .disclaimer-container,
  .terms-container {
    padding: 25px 20px;
    margin: 20px;
  }

  .disclaimer-container h2,
  .terms-container h2 {
    font-size: 22px;
  }

  .disclaimer-content h3,
  .terms-content h3 {
    font-size: 16px;
  }

  .disclaimer-content p,
  .terms-content p {
    font-size: 13px;
  }

  .disclaimer-notice {
    padding: 12px;
  }

  .disclaimer-notice p {
    font-size: 11px;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 20px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    min-width: 100%;
  }

  .footer-section h4 {
    font-size: 15px;
    margin-bottom: 8px;
    margin-top: 0;
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-section p {
    font-size: 13px;
  }

  .footer-buttons {
    gap: 5px;
  }

  .footer-button {
    padding: 7px 14px;
    font-size: 12px;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 14px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

/* Wallet Modal Styles */
.wallet-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.wallet-modal-content {
  background: #252525;
  border: 1px solid #404040;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #404040;
  background: #2a2a2a;
}

.wallet-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 600;
}

.wallet-modal-close {
  background: transparent !important;
  border: none !important;
  color: #ff0000;
  font-size: 4rem;
  cursor: pointer;
  padding: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  transition: color 0.2s ease;
  box-shadow: none !important;
  line-height: 1;
  outline: none !important;
  font-weight: bold;
}

.wallet-modal-close:hover,
.wallet-modal-close:active,
.wallet-modal-close:focus {
  background: transparent !important;
  color: #cc0000;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.wallet-modal-body {
  padding: 20px;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: #e0e0e0;
  border: 2px solid #888888;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.15), -6px -6px 12px rgba(255,255,255,0.8);
}

.wallet-option:hover {
  border-color: #666666;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.15), -4px -4px 8px rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.wallet-option:active {
  border-color: #555555;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.15), inset -4px -4px 8px rgba(255,255,255,0.8);
}

.wallet-option:last-child {
  margin-bottom: 0;
}

.wallet-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.1), inset -4px -4px 8px rgba(255,255,255,0.8);
}

.wallet-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.wallet-option-info {
  flex: 1;
  min-width: 0;
}

.wallet-option-name {
  font-size: 1rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 4px;
}

.wallet-option-desc {
  font-size: 0.85rem;
  color: #666;
}

.wallet-option-arrow {
  font-size: 1.5rem;
  color: #666;
  flex-shrink: 0;
}

.wallet-modal-body::-webkit-scrollbar {
  width: 6px;
}

.wallet-modal-body::-webkit-scrollbar-track {
  background: #d0d0d0;
}

.wallet-modal-body::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}

.wallet-modal-body::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Mobile Wallet Modal - Ensure center positioning */
@media (max-width: 768px) {
  .wallet-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wallet-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wallet-modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
    align-self: center !important;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              bottom 0.3s ease-out;
  z-index: 999;
  cursor: pointer;
  user-select: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top .arrow {
  width: 32px;
  height: 32px;
  border-top: 7px solid #2EBAC6;
  border-left: 7px solid #2EBAC6;
  transform: rotate(45deg);
  margin-bottom: -10px;
  transition: all 0.3s ease;
}

.back-to-top:hover .arrow {
  border-top-color: #4dd0e1;
  border-left-color: #4dd0e1;
  transform: rotate(45deg) translateY(-3px);
}

.back-to-top .back-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #2EBAC6;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.back-to-top:hover .back-text {
  color: #4dd0e1;
}

/* Critical Warning Banner */
.critical-warning-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
  animation: slideDown 0.5s ease-out;
}

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

.critical-warning-banner.hidden {
  display: none;
}

.warning-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.warning-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.warning-text strong {
  font-weight: 700;
  font-size: 14px;
}

.warning-close {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.warning-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Disclaimer Section */
.disclaimer-modal,
.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.disclaimer-container,
.terms-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.disclaimer-content,
.terms-content {
  background: #2a2a2a;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(46, 186, 198, 0.2);
}

.disclaimer-content h2,
.terms-content h2 {
  color: #2EBAC6;
  font-size: 24px;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
  border-bottom: 2px solid #2EBAC6;
  padding: 30px 35px 12px;
  font-weight: 700;
}

.disclaimer-scroll-content,
.terms-scroll-content {
  max-height: calc(80vh - 120px);
  overflow-y: auto;
  padding: 0 35px 30px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimer-container h2,
.terms-container h2 {
  color: #2EBAC6;
  font-size: 24px;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
  border-bottom: 2px solid #2EBAC6;
  padding-bottom: 12px;
}

.disclaimer-scroll-content h3,
.terms-scroll-content h3 {
  color: #FFA500;
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.disclaimer-scroll-content p,
.terms-scroll-content p {
  margin-bottom: 12px;
  font-size: 13px;
}

.disclaimer-scroll-content strong,
.terms-scroll-content strong {
  color: #ffffff;
  font-weight: 600;
}

.investment-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(46, 186, 198, 0.2);
}

.investment-disclaimer h3 {
  font-size: 14px;
  color: #FFA500;
  margin-top: 0;
  margin-bottom: 12px;
}

.investment-disclaimer p {
  font-size: 11px;
  margin-bottom: 10px;
}

.investment-disclaimer ul {
  font-size: 11px;
  margin: 10px 0;
  padding-left: 20px;
}

.investment-disclaimer li {
  margin-bottom: 6px;
  font-size: 11px;
}

.investment-disclaimer strong {
  font-size: 11px;
  font-weight: 600;
}

.disclaimer-acceptance {
  background: rgba(255, 165, 0, 0.1);
  border-left: 4px solid #FFA500;
  padding: 12px;
  margin-top: 20px;
  border-radius: 4px;
}

.disclaimer-close,
.terms-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #1a1a1a;
  border: 2px solid #2EBAC6;
  color: #2EBAC6;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  z-index: 10;
}

.disclaimer-close:hover,
.terms-close:hover {
  background: #2EBAC6;
  color: #1a1a1a;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(46, 186, 198, 0.6);
}

/* Footer Updates */
.disclaimer-notice {
  background: rgba(255, 165, 0, 0.15);
  border: 2px solid #FFA500;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  text-align: center;
}

.disclaimer-notice p {
  font-size: 11px;
  color: #FFA500;
  margin: 0;
  line-height: 1.4;
}

.disclaimer-notice strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-disclaimer-link {
  font-size: 11px;
  margin-top: 5px;
}

.footer-disclaimer-link a {
  transition: color 0.3s ease;
}

.footer-disclaimer-link a:hover {
  color: #4dd0e1 !important;
}

/* Mobile Styles for Live Statistics Widget */
@media (max-width: 768px) {
  .live-stats-widget {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
  }

  .live-stats-header {
    margin-bottom: 8px;
    gap: 6px;
  }

  .live-indicator {
    font-size: 0.65rem;
  }

  .live-title {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
  }

  .live-stats-grid {
    gap: 6px;
  }

  .live-stat {
    padding: 6px 3px;
    border-radius: 4px;
  }

  .live-value {
    font-size: 0.85rem;
    margin-bottom: 2px;
  }

  .live-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .live-stats-widget {
    margin: 8px 0;
    padding: 8px;
  }

  .live-stats-grid {
    gap: 4px;
  }

  .live-stat {
    padding: 4px 2px;
  }

  .live-value {
    font-size: 0.8rem;
  }

  .live-label {
    font-size: 0.55rem;
  }

  .live-title {
    font-size: 0.7rem;
  }
}

/* Mobile fixes for app-interface-section buttons */
@media (max-width: 768px) {
  .app-interface-section {
    width: 100% !important;
    max-width: 100vw;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .app-interface-section .window {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
  }

  .app-interface-section .left-panel,
  .app-interface-section .right-panel {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .app-interface-section .button-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
  }

  .app-interface-section button {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .app-interface-section .button-group button {
    flex: 1 1 auto;
    min-width: calc(50% - 2px);
    max-width: 100%;
  }

  .app-interface-section .input-group-content {
    flex-wrap: wrap;
    width: 100%;
  }

  .app-interface-section .input-group-content button {
    width: 100%;
    margin-bottom: 6px;
  }

  .app-interface-section .input-wrapper {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-interface-section {
    padding: 0 8px;
  }

  .app-interface-section .window {
    padding: 8px;
  }

  .app-interface-section button {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .app-interface-section .button-group button {
    min-width: 100%;
    margin-bottom: 4px;
  }

  .app-interface-section .button-group {
    flex-direction: column;
    gap: 4px;
  }
}

/* WalletConnect Modal - Center on screen */
@media (max-width: 768px) {
  /* WalletConnect v2 modal styles - Force center positioning */
  html body w3m-modal,
  html body [data-wcm-modal],
  html body .wcm-modal,
  html body #wcm-modal,
  html body wcm-modal,
  html body wcm-core,
  html body wcm-connector-view,
  html body wcm-modal-router,
  body w3m-modal,
  body [data-wcm-modal],
  body .wcm-modal,
  body #wcm-modal,
  body wcm-modal,
  body wcm-core,
  body wcm-connector-view,
  body wcm-modal-router {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    z-index: 10002 !important;
  }

  /* WalletConnect modal container */
  html body w3m-container,
  html body [data-wcm-container],
  html body .wcm-container,
  body w3m-container,
  body [data-wcm-container],
  body .wcm-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
    z-index: 10002 !important;
  }

  /* WalletConnect backdrop */
  html body w3m-backdrop,
  html body [data-wcm-backdrop],
  html body .wcm-backdrop,
  body w3m-backdrop,
  body [data-wcm-backdrop],
  body .wcm-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Additional WalletConnect modal positioning - All states */
  html body w3m-modal[open],
  html body [data-wcm-modal][open],
  html body wcm-modal[open],
  body w3m-modal[open],
  body [data-wcm-modal][open],
  body wcm-modal[open] {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 10002 !important;
  }
  
  /* Force center for any WalletConnect shadow DOM or nested elements */
  w3m-modal *,
  [data-wcm-modal] *,
  wcm-modal *,
  wcm-core * {
    box-sizing: border-box !important;
  }
}
