:root {
  --bg-color: #0d1117;
  --bg-darker: #05070a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #8b949e;
  --accent-blue: #5865f2;
  --accent-purple: #9b51e0;
  --accent-cyan: #00f2ff;
  --accent-pink: #f43f5e;
  --accent-red: #f85149;
  --accent-green: #3fb950;
  --gradient-blue: linear-gradient(135deg, #5865f2 0%, #3b82f6 100%);
  --gradient-purple: linear-gradient(135deg, #9b51e0 0%, #5865f2 100%);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
  --nav-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Common Layout */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 100;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.status-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse 2s infinite;
}

.status-dot.live {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* Dashboard Content */
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.user-meta h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-status {
  font-size: 11px;
  font-weight: 600;
}

.status-unverified {
  color: #f85149;
}
.status-starter {
  color: #3b82f6;
}

.balance-card {
  margin-bottom: 25px;
}

.balance-card h3 {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.referral-banner {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.ref-icon {
  width: 60px;
  height: 60px;
  background: #ff0055;
  border-radius: 8px;
  box-shadow: 4px 4px 0px #ffea00;
}

.trade-progress {
  margin-bottom: 30px;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.progress-bar-wrap {
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.signal-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.signal-card {
  text-align: center;
}

.circle-progress {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}

.circle-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}

.circle-val {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s;
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle-text .pct {
  font-size: 18px;
  font-weight: 700;
  color: #00f2ff;
}

.circle-text .label {
  font-size: 9px;
  color: #ffea00;
  font-weight: 700;
  display: block;
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 30px 15px;
  border-radius: 20px;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .quick-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 10px;
  }
}

@media (max-width: 400px) {
  .quick-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.menu-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  transition: transform 0.2s;
}

.menu-item:hover .menu-icon {
  transform: translateY(-5px);
}

.menu-icon.green {
  background: #00a884;
}
.menu-icon.yellow {
  background: #d4bc00;
}

.menu-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Copy Experts */
.page-title {
  font-size: 18px;
  font-weight: 600;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.expert-list {
  padding: 0 15px;
  overflow-y: auto;
}

.expert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.expert-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expert-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.expert-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2937;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #3fb950;
  border: 2px solid var(--bg-color);
  border-radius: 50%;
}

.expert-meta h4 {
  font-size: 14px;
  font-weight: 600;
}

.expert-meta p {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-view {
  background: #3b82f6;
  color: white;
  padding: 6px 15px;
  border-radius: 6px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Upgrade Page */
.upgrade-container {
  padding: 0 15px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.plan-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-icon {
  width: 35px;
  height: 35px;
  background: #00a884;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-info h4 {
  font-size: 15px;
}

.plan-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.plan-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-upgrade-action {
  width: 100%;
  background: #3b82f6;
  color: white;
  padding: 12px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* Modal Bottom Sheets */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 30px 20px;
  z-index: 2000;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.bottom-sheet.active {
  transform: translateY(0);
}

.sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  display: none;
}

.sheet-overlay.active {
  display: block;
}

.sheet-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #00a884;
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.sheet-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.sheet-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: left;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.action-btn {
  padding: 15px;
  border-radius: 100px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: #6366f1;
  color: white;
}
.btn-secondary {
  background: #f43f5e;
  color: white;
}

/* Chart Styles */
.chart-container {
  flex: 1;
  position: relative;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

#trading-chart {
  flex: 1;
  width: 100%;
}

.price-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(248, 81, 73, 0.3);
  pointer-events: none;
}

.price-tag {
  position: absolute;
  right: 20px;
  background: var(--accent-red);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

.timeframes {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.timeframe-item {
  cursor: pointer;
  transition: color 0.2s;
}

.timeframe-item:hover,
.timeframe-item.active {
  color: var(--text-primary);
}

/* Live Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: #111827;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2001;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: var(--accent-blue);
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  font-size: 16px;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.4;
}

.msg.received {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.sent {
  background: var(--accent-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 15px;
  color: white;
  outline: none;
  font-size: 13px;
}

.btn-send-chat {
  background: var(--accent-blue);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Landing Page Specific Styles */
.landing-body {
  background: radial-gradient(
      circle at top right,
      rgba(88, 101, 242, 0.1),
      transparent
    ),
    radial-gradient(circle at bottom left, rgba(155, 81, 224, 0.1), transparent),
    var(--bg-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(13, 17, 23, 0.7);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section {
  padding: 160px 10% 80px;
  text-align: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-pink);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-hero {
  display: inline-block;
  padding: 18px 40px;
  background: var(--gradient-purple);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(155, 81, 224, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hero:hover {
  transform: translateY(-5px) scale(1.02);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 16px;
}

.dashboard-container {
    padding: 20px;
    padding-bottom: calc(var(--nav-height) + 30px);
    max-width: var(--container-width);
    margin: 0 auto;
}

.how-it-works {
  padding: 80px 10%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.step-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  color: var(--bg-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-10px);
}

.step-number {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.step-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

.step-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 30px;
}

.step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 14px;
}

.step-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.services-section {
  padding: 80px 10%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-label {
  color: var(--accent-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-card p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-service {
  display: inline-block;
  width: 100%;
  max-width: 600px;
  padding: 15px;
  background: var(--accent-cyan);
  color: #000;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 10%;
}

.btn-auth {
  padding: 15px 60px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  min-width: 200px;
  text-align: center;
}

.btn-register {
  background: #6366f1;
}
.btn-login {
  background: #f43f5e;
}

.legal-notice {
  padding: 40px 10%;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px 5%;
  }
  .hero-section {
    padding: 120px 5% 40px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-auth {
    width: 100%;
  }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(22, 27, 34, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 10px;
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 0 5px;
    }
    .nav-item span {
        font-size: 8px;
    }
    .nav-item svg {
        width: 18px;
        height: 18px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    gap: 5px;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item.active {
    color: var(--accent-blue);
}

.nav-item:hover {
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}
/* Authentication Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(88, 101, 242, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(155, 81, 224, 0.1), transparent);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #4b56d3;
    text-decoration: underline;
}
