/* ============================================================
   WORLDORA LUXURY DARK NEON THEME
   Inspired by Algora layout & exact screenshot design
   ============================================================ */

:root {
  --w-bg-main: #0b0c10;
  --w-bg-dark: #121318;
  --w-bg-card: #16171d;
  --w-bg-card-hover: #1c1d25;
  --w-border-color: rgba(255, 255, 255, 0.08);
  --w-border-glow: rgba(0, 230, 118, 0.35);
  
  --w-neon-green: #00e676;
  --w-emerald: #00c076;
  --w-gold: #ffb800;
  --w-gold-glow: #f59e0b;
  
  --w-text-white: #ffffff;
  --w-text-muted: #94a3b8;
  --w-text-dim: #64748b;
  
  --w-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --w-green-glow-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
  --w-gold-glow-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

/* Global Reset & Body Dark Base */
body.w-dark-body, body {
  background-color: var(--w-bg-main) !important;
  color: var(--w-text-white) !important;
  font-family: 'Jost', 'Outfit', system-ui, -apple-system, sans-serif !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0c10;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--w-emerald);
}

/* Cards & Containers */
.w-card {
  background: var(--w-bg-card);
  border: 1px solid var(--w-border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: var(--w-card-shadow);
  position: relative;
}

.w-card:hover {
  border-color: rgba(0, 230, 118, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 230, 118, 0.1);
}

.w-card-glow {
  border-color: var(--w-border-glow) !important;
  box-shadow: var(--w-green-glow-shadow) !important;
}

/* Typography & Neon Accents */
.text-neon-green {
  color: var(--w-neon-green) !important;
}
.text-emerald {
  color: var(--w-emerald) !important;
}
.text-gold {
  color: var(--w-gold) !important;
}
.text-muted-dark {
  color: var(--w-text-muted) !important;
}

/* Buttons */
.w-btn-emerald {
  background: linear-gradient(135deg, #00e676 0%, #00c076 100%);
  color: #051b11 !important;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
  transition: all 0.3s ease;
}
.w-btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
  color: #000000 !important;
}

.w-btn-dark {
  background: #20222a;
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}
.w-btn-dark:hover {
  background: #2a2c36;
  border-color: var(--w-neon-green);
  color: var(--w-neon-green) !important;
}

.w-btn-gold {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #111 !important;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  box-shadow: var(--w-gold-glow-shadow);
  transition: all 0.3s ease;
}
.w-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 184, 0, 0.5);
}

/* Gem / Diamond Icon Indicator */
.w-gem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  clip-path: polygon(50% 0%, 100% 38%, 81% 100%, 19% 100%, 0% 38%);
  margin-left: 6px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Shield Rank Badge */
.w-shield-badge {
  width: 90px;
  height: 95px;
  background: linear-gradient(180deg, #1b3d2b 0%, #0d2117 100%);
  border: 2px solid var(--w-emerald);
  clip-path: polygon(50% 0%, 100% 20%, 100% 70%, 50% 100%, 0% 70%, 0% 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
  margin: 0 auto;
  position: relative;
}
.w-shield-badge::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px dashed rgba(0, 230, 118, 0.4);
  clip-path: polygon(50% 0%, 100% 20%, 100% 70%, 50% 100%, 0% 70%, 0% 20%);
}

/* Sidebar Styling */
.w-sidebar {
  width: 260px;
  background: #0e0f13;
  border-right: 1px solid var(--w-border-color);
  min-height: 100vh;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.w-sidebar .nav-link {
  color: #94a3b8;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.w-sidebar .nav-link:hover, .w-sidebar .nav-link.active {
  color: var(--w-neon-green);
  background: rgba(0, 230, 118, 0.06);
  border-left-color: var(--w-neon-green);
}
.w-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

/* Submenu */
.w-sidebar-submenu {
  padding-left: 48px;
  display: none;
}
.w-sidebar-submenu.show {
  display: block;
}
.w-sidebar-submenu a {
  color: #64748b;
  padding: 8px 0;
  display: block;
  font-size: 14px;
}
.w-sidebar-submenu a:hover {
  color: var(--w-neon-green);
}

/* Main Content Area */
.w-main-content {
  margin-left: 260px;
  padding: 30px;
  min-height: 100vh;
  background: var(--w-bg-main);
}
@media (max-width: 991px) {
  .w-sidebar {
    transform: translateX(-100%);
  }
  .w-main-content {
    margin-left: 0;
  }
}

/* Tabs Bar */
.w-nav-tabs {
  border-bottom: none;
  display: flex;
  gap: 20px;
}
.w-nav-tabs .nav-link {
  color: #64748b;
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
}
.w-nav-tabs .nav-link.active {
  color: var(--w-neon-green);
  border-bottom: 2px solid var(--w-neon-green);
}

/* Profitability Table */
.w-table {
  color: var(--w-text-white);
  width: 100%;
}
.w-table th {
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid var(--w-border-color);
  padding: 12px 8px;
  font-size: 13px;
}
.w-table td {
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

/* Interactive Circular Node Diagram */
.w-node-diagram-wrap {
  width: 100%;
  max-width: 1050px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.w-node-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.w-node-center {
  position: relative;
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: 50%;
  border: 14px solid #ffb800;
  border-top-color: #00e676;
  border-left-color: #00e676;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121318;
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.25);
  z-index: 2;
  flex-shrink: 0;
}

.w-node-user-avatar {
  width: 85px;
  height: 85px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 38px;
}

.w-node-pill {
  position: relative;
  background: #16171d;
  border: 1.5px solid var(--w-neon-green);
  border-radius: 28px;
  padding: 14px 26px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.25);
  z-index: 2;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.w-node-pill:hover {
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.4);
  transform: translateY(-2px);
}

.w-node-connector-line {
  flex-grow: 1;
  height: 3.5px;
  min-width: 30px;
  z-index: 1;
  position: relative;
}

.w-node-line-green {
  background: linear-gradient(90deg, #00e676 0%, #00e676 100%);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
  border-top: 3.5px dashed #00e676;
}

.w-node-line-gold {
  background: linear-gradient(90deg, #ffb800 0%, #ffb800 100%);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.8);
  border-top: 3.5px dashed #ffb800;
}

.w-node-vertical-line {
  width: 3.5px;
  height: 45px;
  background: #00e676;
  border-left: 3.5px dashed #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
  z-index: 1;
}

.w-node-pill-bottom {
  width: 520px;
  max-width: 95%;
}

.w-node-tag {
  background: var(--w-neon-green);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border-radius: 15px;
  padding: 3px 14px;
  display: inline-block;
  margin-bottom: 6px;
}

.w-node-tag-gold {
  background: var(--w-gold);
}

@media (max-width: 850px) {
  .w-node-top-row {
    flex-direction: column;
    gap: 0;
  }
  .w-node-connector-line {
    width: 3.5px;
    height: 35px;
    min-width: unset;
    flex-grow: 0;
  }
  .w-node-pill {
    width: 100%;
    max-width: 380px;
  }
  .w-node-pill-bottom {
    max-width: 380px;
  }
}

/* Globe Graphic Glow */
.w-globe-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}
.w-globe-img {
  width: 100%;
  filter: drop-shadow(0 0 25px rgba(0, 230, 118, 0.4));
}
.w-globe-pin {
  position: absolute;
  color: var(--w-neon-green);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: bold;
}
.w-globe-pin-dubai {
  top: 55%;
  left: 65%;
}
.w-globe-pin-hk {
  top: 60%;
  left: 78%;
}

/* Partner Logo Grid */
.w-partner-logo {
  filter: grayscale(100%) brightness(200%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-height: 35px;
}
.w-partner-logo:hover {
  filter: none;
  opacity: 1;
}

/* Flow Platform Indicator: PARTNERS <---> PLATFORM <---> MARKET */
.w-flow-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.w-flow-box {
  background: #16171d;
  border: 1.5px solid var(--w-neon-green);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
  border-radius: 35px;
  padding: 16px 48px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}
.w-flow-box:hover {
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.4);
  transform: translateY(-2px);
}
.w-flow-center {
  background: linear-gradient(135deg, #0d2c1d 0%, #16171d 100%);
  border: 2px solid var(--w-neon-green);
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.35);
  padding: 20px 52px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.w-flow-center:hover {
  box-shadow: 0 0 45px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE HOMEPAGE BREAKPOINT OVERRIDES
   ============================================================ */
@media (max-width: 991px) {
  .w-node-circle-wrap {
    width: 100%;
    max-width: 340px;
    height: auto;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px auto;
  }
  .w-node-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 10px 0;
    width: 130px;
    height: 130px;
    border-width: 8px;
  }
  .w-node-user-avatar {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  .w-node-pill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 320px;
  }
  .w-flow-platform {
    flex-direction: column;
    gap: 14px;
  }
  .w-flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 576px) {
  .w-flow-box {
    padding: 10px 24px;
    font-size: 14px;
  }
  .w-flow-center {
    padding: 12px 28px;
  }
}

/* Header Single-Line Mobile Flex Alignment */
.header-social-icons i {
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

@media (max-width: 576px) {
  .header-brand-logo {
    max-height: 28px !important;
    max-width: 110px !important;
  }
  .header-social-icons {
    gap: 8px !important;
  }
  .header-social-icons i {
    font-size: 13px !important;
  }
  .w-btn-gold {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
  }
}

/* ============================================================
   SPACIOUS LUXURY LAYOUT PADDING (ALGORA MATCH)
   ============================================================ */
.max-w-1400 {
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

@media (min-width: 768px) {
  .max-w-1400 {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
}

@media (min-width: 1400px) {
  .max-w-1400 {
    padding-left: 64px !important;
    padding-right: 64px !important;
  }
}

/* Section Breathable Vertical Padding */
section.py-5 {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

@media (min-width: 992px) {
  section.py-5 {
    padding-top: 95px !important;
    padding-bottom: 95px !important;
  }
}

/* Card Internal Padding Improvements */
.w-card {
  padding: 30px !important;
  border-radius: 20px !important;
}

@media (max-width: 576px) {
  .w-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }
}
