/* ==========================================================================
   SMARTTRADEX - COMMON GLOBAL STYLES (Trade Smart. Grow Smart.)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
  /* Brand Color Palette derived from STX Logo */
  --bg-primary: #0b224d;
  --bg-surface: #0e2d62;
  --bg-card: rgba(14, 38, 82, 0.85);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  
  --accent-blue: #0066FF;
  --accent-cyan: #00C8FF;
  --accent-green: #00E676;
  --accent-green-dark: #00C853;
  --accent-red: #FF3B30;
  
  --silver-light: #F8FAFC;
  --silver-mid: #CBD5E1;
  --silver-dark: #64748B;
  
  --text-main: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 102, 255, 0.3);
  --border-green-glow: rgba(0, 230, 118, 0.3);
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-blue-glow: 0 0 25px rgba(0, 102, 255, 0.35);
  --shadow-green-glow: 0 0 25px rgba(0, 230, 118, 0.35);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --nav-height: 90px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Ambient Orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -100px;
  left: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
}

body::after {
  bottom: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Modern High-Tech Vector SVG Icons */
.ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.ui-icon-lg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.ui-icon-xl {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}

.icon-glow-blue {
  stroke: var(--accent-blue);
  filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.6));
}

.icon-glow-cyan {
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.6));
}

.icon-glow-green {
  stroke: var(--accent-green);
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--silver-light);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #00C8FF 50%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-green-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #00FF88 50%, #00C853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Card Element */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 102, 255, 0.25);
  transform: translateY(-4px);
}

/* Form Controls & Fields */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  height: 48px;
  padding: 12px 18px;
  background: rgba(11, 15, 25, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #FFFFFF !important;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control::placeholder,
input.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
input.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.25);
  background: rgba(18, 24, 38, 0.95) !important;
  color: #FFFFFF !important;
}

/* Fix Browser Autofill dark text & light background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px #0b0f19 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

textarea.form-control {
  height: auto;
  min-height: 140px;
  resize: vertical;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 200, 255, 0.6);
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
  color: #070A12;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
}

.btn-green:hover {
  box-shadow: 0 6px 28px rgba(0, 230, 118, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: var(--accent-blue);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue {
  background: rgba(0, 102, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 200, 255, 0.3);
}

.badge-bullish {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-bearish {
  background: rgba(255, 59, 48, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 59, 48, 0.3);
}

/* ==========================================================================
   NAVIGATION BAR STYLING
   ========================================================================== */

/* ==========================================================================
   NAVIGATION BAR STYLING - UNIQUE FUTURISTIC GLASS DOCK
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  height: 100%;
  padding: 4px 0;
}

.brand-logo img {
  height: 72px;
  max-height: 100px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.65));
  display: block;
}

/* Unique Centered Glass Pill Dock for all links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(18, 24, 38, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 102, 255, 0.15);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.nav-links:hover {
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 200, 255, 0.25);
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--accent-cyan) !important;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.3) 0%, rgba(0, 200, 255, 0.22) 100%) !important;
  border: 1px solid var(--accent-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.45) !important;
  font-weight: 700 !important;
}

.nav-link.active::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-left: 6px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Unique styling for Login & Register in the centered dock */
.nav-link-login {
  color: var(--accent-cyan) !important;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.25);
  margin-left: 6px;
}

.nav-link-login:hover {
  background: rgba(0, 200, 255, 0.2);
  color: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
}

.nav-link-register {
  color: white !important;
  background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(0, 230, 118, 0.4);
  padding: 8px 20px;
}

.nav-link-register:hover {
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.6);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

/* Mobile Full-Screen Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 13, 27, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 13, 27, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 10000;
  padding: 20px 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-drawer {
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent-cyan);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover, .mobile-close-btn:active {
  background: rgba(0, 200, 255, 0.2);
  color: #FFFFFF;
  border-color: var(--accent-cyan);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}

.mobile-nav-links .nav-link {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-links .nav-link:hover, .mobile-nav-links .nav-link.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.35) 0%, rgba(0, 200, 255, 0.25) 100%);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.mobile-nav-links .nav-link-login {
  color: var(--accent-cyan) !important;
  border-color: rgba(0, 200, 255, 0.3) !important;
  background: rgba(0, 200, 255, 0.08) !important;
}

.mobile-nav-links .nav-link-register {
  color: #070A12 !important;
  background: linear-gradient(135deg, #00C853 0%, #00E676 100%) !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4) !important;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px;
  margin-top: 100px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 18px 0 24px;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--silver-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-item a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-cyan);
}

.contact-icon {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.5;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 22px;
  background: var(--bg-card-hover);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s forwards;
}

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

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .header {
    height: 70px;
    padding: 0 15px;
  }

  .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    padding: 0 !important;
  }

  .brand-logo {
    padding: 0 !important;
    height: auto !important;
  }

  .brand-logo img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 170px !important;
    object-fit: contain;
  }

  .nav-links, .nav-actions {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 200, 0.3);
    border-radius: 10px;
    color: var(--accent-cyan);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .mobile-toggle:active, .mobile-toggle:hover {
    background: rgba(0, 200, 255, 0.25);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

