/* GOPX Africa Exchange - Coinbase Blue & White Theme with African Elements */

:root {
  /* Coinbase Blue Palette */
  --primary-color: #0052ff;
  --primary-dark: #0044cc;
  --primary-light: #1e6aff;
  --secondary-color: #1428a0;
  --accent-color: #0052ff;
  --success-color: #00d4aa;
  --warning-color: #f7931a;
  --danger-color: #ff5630;
  
  /* African Theme Colors */
  --african-orange: #ff6b35;
  --african-gold: #ffc947;
  --african-red: #dc2626;
  --african-green: #16a34a;
  --african-teal: #0891b2;
  --quantum-purple: #7c3aed;
  --quantum-cyan: #06b6d4;
  --quantum-pink: #ec4899;
  --sovereign-blue: #1e40af;
  --national-gold: #f59e0b;
  
  /* Base Colors - Clean & Modern */
  --background: #ffffff;
  --surface: #f7f8fa;
  --surface-hover: #eff1f5;
  --text-primary: #050f19;
  --text-secondary: #5b616e;
  --text-muted: #8a94a2;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Trading Specific */
  --buy-color: #00d4aa;
  --sell-color: #ff5630;
  --buy-bg: rgba(0, 212, 170, 0.1);
  --sell-bg: rgba(255, 86, 48, 0.1);
  
  /* African Pattern Colors */
  --pattern-primary: var(--primary-color);
  --pattern-secondary: var(--african-gold);
  --pattern-accent: var(--african-orange);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* African pattern background */
  background-image: 
    radial-gradient(circle at 20% 80%, var(--african-orange) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--african-gold) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--primary-light) 0%, transparent 50%);
  background-color: var(--background);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - Coinbase Inspired */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 250, 0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

/* Logo styles moved to logo.css */

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
}

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

.nav-link.active {
  color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* African pattern for active nav */
.nav-link.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--african-orange), var(--african-gold));
  border-radius: 3px 3px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}

/* Main Content */
.main {
  min-height: calc(100vh - 64px);
}

/* Hero Section - African Themed */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--african-orange) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 201, 71, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="african" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23african)"/></svg>');
  animation: floatPattern 30s ease-in-out infinite;
}

@keyframes floatPattern {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, -10px); }
  66% { transform: translate(10px, -20px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-subtitle {
  display: block;
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--african-gold);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  height: 400px;
}

.african-pattern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: 
    radial-gradient(circle at 30% 30%, var(--african-orange) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, var(--african-gold) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--primary-color) 0%, transparent 50%);
  border-radius: 50%;
  opacity: 0.2;
  animation: rotate 20s linear infinite;
}

.floating-crypto {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.crypto-item {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

.crypto-item.btc {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.crypto-item.eth {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.crypto-item.usdt {
  bottom: 30%;
  left: 25%;
  animation-delay: 4s;
}

.crypto-item.ngn {
  top: 40%;
  right: 10%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.page {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.page.active {
  display: block;
}

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

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::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: left 0.5s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 82, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  position: relative;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 82, 255, 0.2);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Trade Page Styles */
.trade-layout {
  padding: 24px 0;
}

.trading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.pair-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pair-select {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.pair-info {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-change {
  font-size: 0.9rem;
  font-weight: 500;
}

.price-change.positive {
  color: var(--success);
}

.price-change.negative {
  color: var(--danger-color);
}

.timeframes {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: 8px;
}

.timeframe-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.timeframe-btn:hover {
  color: var(--text-primary);
}

.timeframe-btn.active {
  background: var(--primary-color);
  color: white;
}

.trade-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

/* Chart Section - African Themed */
.chart-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-container {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  height: 400px;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--african-orange), var(--african-gold), var(--primary-color));
  border-radius: 16px 16px 0 0;
}

#priceChart {
  width: 100%;
  height: 100%;
}

/* Order Book - African Styled */
.orderbook {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.orderbook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--surface-hover) 0%, var(--surface) 100%);
}

.orderbook-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.orderbook-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-light);
  padding: 4px;
  border-radius: 6px;
}

.orderbook-tabs .tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.orderbook-tabs .tab-btn.active {
  background: var(--primary-color);
  color: white;
  position: relative;
}

.orderbook-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--african-orange), var(--african-gold));
}

.orderbook-content {
  max-height: 400px;
  overflow-y: auto;
}

.orderbook-sells,
.orderbook-buys {
  padding: 12px 20px;
}

.orderbook-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.orderbook-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.1s;
}

.orderbook-row:hover {
  background: rgba(99, 102, 241, 0.1);
}

.orderbook-sells .orderbook-row {
  color: var(--sell-color);
}

.orderbook-buys .orderbook-row {
  color: var(--buy-color);
}

.spread-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-light);
}

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

.spread-value {
  font-weight: 600;
}

/* Trading Panel - African Enhanced */
.trading-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* African pattern background */
.trading-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--african-orange) 0%, transparent 70%);
  opacity: 0.03;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.wallet-info {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.wallet-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--african-green), var(--success-color));
}

.wallet-balances {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.balance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-item .currency {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.balance-item .balance {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.deposit-btn {
  background: var(--surface-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: all 0.2s;
}

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

.order-type-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.order-type-tabs .tab-btn {
  flex: 1;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.order-type-tabs .tab-btn.active {
  background: var(--buy-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.order-type-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.order-type-tabs .tab-btn[data-type="sell"].active {
  background: var(--sell-color);
}

.order-form {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.order-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--african-orange), var(--primary-color));
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

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

.percentage-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pct-btn {
  background: var(--surface-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.pct-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--african-orange));
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

/* Recent Trades */
.recent-trades {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.recent-trades::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--african-teal), var(--primary-color));
}

.recent-trades h4 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 600;
}

.trades-list {
  max-height: 200px;
  overflow-y: auto;
}

.trade-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-item:last-child {
  border-bottom: none;
}

.trade-price {
  font-weight: 600;
}

.trade-item.buy .trade-price {
  color: var(--buy-color);
}

.trade-item.sell .trade-price {
  color: var(--sell-color);
}

.trade-amount {
  color: var(--text-secondary);
}

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

/* Markets Page */
.markets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.markets-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.market-filters {
  display: flex;
  gap: 12px;
}

.search-input,
.filter-select {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.search-input {
  min-width: 300px;
}

.markets-table-container {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
}

.markets-table th {
  background: var(--surface-light);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.markets-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.markets-table tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.market-pair {
  font-weight: 600;
  color: var(--text-primary);
}

.market-price {
  font-weight: 500;
}

.change-positive {
  color: var(--success);
}

.change-negative {
  color: var(--danger-color);
}

.market-volume {
  color: var(--text-secondary);
}

.mini-chart {
  width: 80px;
  height: 30px;
  background: var(--surface-light);
  border-radius: 4px;
}

/* Portfolio Page */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--african-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-value {
  text-align: right;
}

.portfolio-value .label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.portfolio-value .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.portfolio-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

.wallets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.wallet-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--african-gold), var(--african-orange));
}

.wallet-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 82, 255, 0.15);
  transform: translateY(-4px);
}

.wallet-currency {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.wallet-balance {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--african-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.wallet-available {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.portfolio-stats {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

.portfolio-stats h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  gap: 16px;
}

.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--surface-light);
  border-radius: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Orders Page */
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.orders-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.orders-table-container {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  background: var(--surface-light);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.orders-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-table tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.order-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-open {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
}

.status-filled {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

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

.modal-content {
  background: var(--surface);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--african-orange), var(--primary-color), var(--african-gold));
  border-radius: 20px 20px 0 0;
}

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

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  padding: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-toggle {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.auth-toggle a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  min-width: 300px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1001;
  transform: translateX(400px);
  transition: transform 0.3s ease-in-out;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger-color);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.success .toast-content i {
  color: var(--success);
}

.toast.error .toast-content i {
  color: var(--danger-color);
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Footer - African Themed */
.footer {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--african-orange), var(--primary-color), var(--african-gold));
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Footer logo styles moved to logo.css */

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.african-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--african-orange), var(--primary-color));
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.badge-icon {
  font-size: 1.1rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-spacer {
  margin: 0 12px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
/* African Continent Video Styles */
.african-continent-video {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.continent-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-overlay:hover {
    opacity: 1;
}

.video-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.video-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.video-control {
    padding: 12px 30px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.video-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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