/* Modern Theme - Redesigned by AI */

:root {
  /* Primary color scheme */
  --primary-gradient: linear-gradient(135deg, #6D28D9, #4F46E5);
  --secondary-gradient: linear-gradient(135deg, #EC4899, #8B5CF6);
  --accent-gradient: linear-gradient(135deg, #06B6D4, #3B82F6);
  
  /* Core colors */
  --primary-color: #6D28D9;
  --primary-color-dark: #5B21B6;
  --secondary-color: #8B5CF6;
  --accent-color: #06B6D4;
  
  /* Background colors */
  --bg-color: #0F172A;
  --bg-gradient: radial-gradient(circle at top right, #1E293B, #0F172A);
  --card-bg: #1E293B;
  --card-bg-hover: #2A3A53;
  --card-header-bg: rgba(255, 255, 255, 0.03);
  
  /* Text colors */
  --text-color: #F1F5F9;
  --text-color-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  /* Border colors */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.03);
  
  /* Status colors */
  --success-color: #10B981;
  --danger-color: #EF4444;
  --warning-color: #F59E0B;
  
  /* Effects */
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  --glow: 0 0 15px rgba(139, 92, 246, 0.3);
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
}

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

body, html {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Clash Display', 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Fancy text gradients */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
header {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

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

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

.logo img {
  height: 42px;
  margin-right: 16px;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
  transition: all 0.3s ease;
}

.logo:hover img {
  transform: rotate(15deg) scale(1.1);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-color-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

nav a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(109, 40, 217, 0.2), rgba(79, 70, 229, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav a:hover {
  color: #fff;
  transform: translateY(-2px);
}

nav a:hover:before {
  opacity: 1;
}

nav a.active {
  color: white;
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

nav a.active:before {
  opacity: 0;
}

nav a i {
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px 100px;
  margin: 50px 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff 20%, #CBD5E1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-color-secondary);
  margin-bottom: 32px;
  max-width: 80%;
  animation: fadeInUp 0.8s 0.2s ease-out both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s 0.4s ease-out both;
}

.hero-cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.hero-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(109, 40, 217, 0.4);
}

.hero-cta:hover:before {
  left: 100%;
}

.hero-image {
  flex: 0 0 40%;
  max-width: 400px;
  transform: translateZ(40px) perspective(1000px) rotateY(-10deg);
  animation: float 6s ease-in-out infinite, fadeIn 1s ease-out both;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 25%), 
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.15) 0%, transparent 30%);
  opacity: 0.7;
  z-index: 0;
}

/* Card Design */
.card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  position: relative;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(139, 92, 246, 0.2);
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--card-header-bg);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.card-title i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.btn-icon:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* Price Info */
.price-info {
  text-align: center;
  padding: 30px;
  position: relative;
}

.current-price {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.price-change {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
}

.price-up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

.price-down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
}

/* Chart Container */
.chart-container {
  height: 280px;
  padding: 20px;
  margin: 0 24px 24px;
  background-color: rgba(15, 23, 42, 0.3);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.chart-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 24px 24px;
}

.chart-period {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.4);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.chart-period:hover {
  background: rgba(109, 40, 217, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.chart-period.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.25);
}

.btn-danger {
  background: linear-gradient(135deg, #F43F5E, #EF4444);
  color: white;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.1);
}

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

.btn-secondary {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Tabs */
.tab-container {
  margin: 24px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 12px 20px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.tab:hover:not(.active) {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.03);
}

.tab-content {
  padding: 20px 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Order Book */
.order-book {
  margin: 0 24px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.3);
}

.order-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

.orders-container {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.orders-container::-webkit-scrollbar {
  width: 6px;
}

.orders-container::-webkit-scrollbar-track {
  background: transparent;
}

.orders-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  transition: background 0.2s;
}

.order-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.ask {
  color: var(--danger-color);
}

.bid {
  color: var(--success-color);
}

.depth-bar {
  position: absolute;
  height: 100%;
  right: 0;
  z-index: 0;
  opacity: 0.2;
  transition: opacity 0.3s;
}

.ask .depth-bar {
  background-color: var(--danger-color);
}

.bid .depth-bar {
  background-color: var(--success-color);
}

.order-row:hover .depth-bar {
  opacity: 0.3;
}

/* Market Table */
.market-list {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 24px;
}

.market-list th,
.market-list td {
  padding: 16px 24px;
  text-align: left;
}

.market-list th {
  background-color: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-color-secondary);
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.market-list th i {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 5px;
  transition: transform 0.2s;
}

.market-list th:hover i {
  opacity: 1;
  transform: translateY(-2px);
}

.market-list tbody tr {
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.market-list tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

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

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateZ(40px) perspective(1000px) rotateY(-8deg) translateY(0px);
  }
  50% {
    transform: translateZ(40px) perspective(1000px) rotateY(-8deg) translateY(-15px);
  }
  100% {
    transform: translateZ(40px) perspective(1000px) rotateY(-8deg) translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-animation {
  position: relative;
}

.loading-animation:before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3), transparent 70%);
  animation: pulse 2s infinite;
}

.loading-text {
  margin-top: 30px;
  text-align: center;
}

.loading-text h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 2.2rem;
  animation: fadeIn 1s ease;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.loading-text p {
  color: var(--text-color-secondary);
  font-size: 1.1rem;
}

.loading-progress {
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-25deg); }
  100% { transform: translateX(100%) skewX(-25deg); }
}

/* Dashboard Layout */
.dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  margin: 40px 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard > .card {
  /* Apply fade-in animations with staggered delays */
  animation: fadeInUp 0.8s ease both;
}

.dashboard > .card:nth-child(1) { animation-delay: 0.1s; }
.dashboard > .card:nth-child(2) { animation-delay: 0.2s; }
.dashboard > .card:nth-child(3) { animation-delay: 0.3s; }
.dashboard > .card:nth-child(4) { animation-delay: 0.4s; }
.dashboard > .card:nth-child(5) { animation-delay: 0.5s; }
.dashboard > .card:nth-child(6) { animation-delay: 0.6s; }
.dashboard > .card:nth-child(7) { animation-delay: 0.7s; }

/* Grid Columns */
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* Balance Section */
.balance-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-color-secondary);
  margin: 0 24px;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border-color);
}

#account-balances {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 24px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* API Settings */
.api-settings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.api-info-panel {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

.api-status {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.api-status-icon i {
  color: #EF4444;
  animation: pulse 2s infinite;
}

/* API Connection tabs */
.api-details {
  margin-bottom: 20px;
}

.api-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.api-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  font-weight: 500;
}

.api-tab:hover {
  color: var(--secondary-color);
}

.api-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.api-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.api-tab-content.active {
  display: block;
}

/* API Benefits, Security & Features styling */
.api-benefits, .api-security, .api-features {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.api-benefits h4, .api-security h4, .api-features h4 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.api-benefits ul, .api-security ul, .api-features ul {
  list-style: none;
}

.api-benefits li, .api-security li, .api-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.api-benefits li i {
  color: var(--success-color);
  margin-top: 3px;
}

.api-security li i {
  color: var(--primary-color);
  margin-top: 3px;
}

.api-features li i {
  color: var(--secondary-color);
  margin-top: 3px;
}

/* API Setup Guide */
.api-setup-guide {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.api-setup-guide h4 {
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.setup-step {
  display: flex;
  gap: 15px;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(109, 40, 217, 0.2);
}

.step-content h5 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.api-form-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.api-form-header h3 {
  color: #fff;
  font-size: 1.5rem;
}

/* Connection type selector */
.connection-type-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.connection-type {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.connection-type:hover {
  background: rgba(30, 41, 59, 0.6);
  transform: translateY(-3px);
}

.connection-type.active {
  background: rgba(109, 40, 217, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.2);
}

.connection-type img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.connection-type span {
  font-weight: 500;
}

/* API Connection options */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 10px;
}

.option-card {
  position: relative;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.option-card label:hover {
  background: rgba(30, 41, 59, 0.6);
  transform: translateY(-2px);
}

.option-card input[type="radio"]:checked + label {
  background: rgba(109, 40, 217, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.2);
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.option-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Password visibility toggle */
.input-with-icon {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.password-toggle:hover {
  color: var(--text-color);
}

/* Button styles update */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color-secondary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border-color: var(--secondary-color);
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow: auto;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-radius: 15px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: fadeIn 0.3s, slideIn 0.4s;
}

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

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

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

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px 25px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid var(--border-color);
}

/* Connection status styling */
.connection-status-container {
  text-align: center;
}

.connection-status-spinner {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.connection-status-spinner i {
  animation: spin 1s linear infinite;
}

.connection-status-message {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.connection-status-details {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.status-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.status-check i.fa-check-circle {
  color: var(--success-color);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(15, 23, 42, 0.3);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.security-notice i {
  color: var(--accent-color);
  margin-top: 2px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

/* News Section */
.news-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}

.news-item {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.news-item:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(130deg, transparent, rgba(139, 92, 246, 0.03));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow);
  border-color: rgba(139, 92, 246, 0.2);
}

.news-item:hover:before {
  opacity: 1;
}

.news-date {
  display: inline-block;
  color: var(--secondary-color);
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.news-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.read-more:after {
  content: '→';
  transition: transform 0.3s;
}

.read-more:hover {
  color: var(--primary-color);
}

.read-more:hover:after {
  transform: translateX(5px);
}

/* Footer */
footer {
  background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.8));
  padding: 80px 0 30px;
  margin-top: 80px;
  position: relative;
}

footer:before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 45px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.footer-links a:before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s;
  color: var(--secondary-color);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(20px);
}

.footer-links a:hover:before {
  opacity: 1;
}

.footer-newsletter h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-newsletter h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.footer-newsletter p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: 100px 0 0 100px;
  background-color: rgba(30, 41, 59, 0.3);
  color: var(--text-color);
  font-size: 1rem;
}

.newsletter-form .btn {
  border-radius: 0 100px 100px 0;
  padding: 0 25px;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.4);
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-5px);
  background: var(--primary-gradient);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .dashboard {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  
  .col-span-4,
  .col-span-8 {
    grid-column: span 6;
  }
  
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 30px;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 50px;
    max-width: 300px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .api-settings-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .dashboard {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .col-span-4, 
  .col-span-8, 
  .col-span-12 {
    grid-column: span 1;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .order-header,
  .balance-header {
    display: none;
  }
  
  .order-row {
    flex-direction: column;
    gap: 5px;
  }
  
  .current-price {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}