/* ========================================
   GLOBAL INVEST — Design System
   ======================================== */

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

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0c1a30;
  --bg-card: #162a46;
  --bg-card-alt: #0f1f38;
  --bg-footer: #060e1a;
  --bg-navbar: rgba(10, 22, 40, 0.95);

  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0369a1;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --accent-glass: rgba(14, 165, 233, 0.1);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #e2e8f0;
  --text-nav: #cbd5e1;

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(14, 165, 233, 0.3);

  --gradient-cta: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  --gradient-hero: linear-gradient(180deg, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.85) 100%);
  --gradient-card: linear-gradient(135deg, rgba(22, 42, 70, 0.9) 0%, rgba(15, 31, 56, 0.9) 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 30px rgba(14, 165, 233, 0.2);
  --shadow-hover: 0 8px 40px rgba(14, 165, 233, 0.3);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glass);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}

.text-center {
  text-align: center;
}

/* ======================================== */
/*   NAVBAR                                  */
/* ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-accent);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-nav);
  transition: var(--transition-fast);
  position: relative;
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar__nav a:hover {
  color: var(--text-primary);
}

.navbar__nav a:hover::after {
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--border-accent);
  color: var(--text-nav);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-glass);
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ======================================== */
/*   HERO                                    */
/* ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/14230236/pexels-photo-14230236.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 22, 40, 0.5) 0%,
      rgba(10, 22, 40, 0.7) 50%,
      rgba(10, 22, 40, 0.95) 100%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 700px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero__title span {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-highlight);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  animation: bounce 2s infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ======================================== */
/*   STATS                                   */
/* ======================================== */
.stats {
  background: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card__number {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ======================================== */
/*   FEATURES (Layanan Kami)                 */
/* ======================================== */
.features {
  background: var(--bg-card-alt);
  padding: 96px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.feature-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card__img {
  transform: scale(1.05);
}

.feature-card__img-wrap {
  overflow: hidden;
  position: relative;
}

.feature-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.feature-card__body {
  padding: 24px;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-accent);
}

.feature-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======================================== */
/*   ADVANTAGES (Keunggulan)                 */
/* ======================================== */
.advantages {
  background: var(--bg-primary);
  padding: 96px 0;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.adv-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.adv-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.adv-card__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--gradient-cta);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-accent);
}

.adv-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.adv-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ======================================== */
/*   PLATFORM                                */
/* ======================================== */
.platform {
  background: var(--bg-card-alt);
  padding: 96px 0;
}

.platform__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.platform__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-accent);
  border: 1px solid var(--border-accent);
}

.platform__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.platform__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.platform__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.platform__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.platform__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.platform__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.platform__feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-highlight);
}

.platform__feature-item::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ======================================== */
/*   TESTIMONIALS                            */
/* ======================================== */
.testimonials {
  background: var(--bg-primary);
  padding: 96px 0;
}

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

.testi-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testi-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testi-card__stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 16px;
}

.testi-card__text {
  font-size: 15px;
  color: var(--text-highlight);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
}

.testi-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.testi-card__role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ======================================== */
/*   FAQ                                     */
/* ======================================== */
.faq {
  background: var(--bg-primary);
  padding: 96px 0;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--accent-glass);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.active .faq-item__icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-item__a {
  max-height: 200px;
}

.faq-item__a-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======================================== */
/*   CTA SECTION                             */
/* ======================================== */
.cta-section {
  background: var(--gradient-cta);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section__desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 36px;
}

.btn-white {
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ======================================== */
/*   REGISTER SECTION                        */
/* ======================================== */
.register {
  background: var(--bg-card-alt);
  padding: 96px 0;
}

.register__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.register__info h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}

.register__info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.register__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.register__step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--gradient-cta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.register__step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.register__step-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-card__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 28px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-highlight);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

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

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  background: var(--accent-glass);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ======================================== */
/*   FOOTER                                  */
/* ======================================== */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer__brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 12px;
  max-width: 260px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent);
}

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

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__badges {
  display: flex;
  gap: 12px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
}

/* ======================================== */
/*   LOGIN PAGE                              */
/* ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-page__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/14230236/pexels-photo-14230236.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(22, 42, 70, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-card), 0 0 80px rgba(14, 165, 233, 0.1);
  animation: fadeInUp 0.5s ease forwards;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-cta);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-accent);
}

.auth-logo__text {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-panel__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.auth-panel__sub {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.auth-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-method-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-method-btn.primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.auth-method-btn.secondary {
  background: var(--accent-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.auth-method-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.auth-back:hover {
  color: var(--text-primary);
}

/* ======================================== */
/*   DASHBOARD                               */
/* ======================================== */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: relative;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  z-index: 100;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.sidebar.collapsed { width: 84px; min-width: 84px; }
.sidebar.collapsed .sidebar__logo-text span,
.sidebar.collapsed .sidebar-profile__info,
.sidebar.collapsed .sidebar__section-label,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar__nav-item span:not(.nav-icon) { display: none; }

.sidebar.collapsed .sidebar__nav-item { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .sidebar__logo { padding: 24px 0; justify-content: center; }
.sidebar.collapsed .sidebar-profile { padding: 10px; justify-content: center; }

.sidebar__logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
  white-space: nowrap;
}

.sidebar__logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(14,165,233,0.4);
}

.sidebar__section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #475569;
  padding: 0 24px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  margin-bottom: 24px;
}

.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font);
  text-align: left;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar__nav-item::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 4px; height: 24px; background: var(--accent); border-radius: 0 4px 4px 0;
  transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0;
}

.sidebar__nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  transform: translateX(4px);
}

.sidebar__nav-item.active {
  background: linear-gradient(90deg, rgba(14,165,233,0.15) 0%, rgba(14,165,233,0.01) 100%);
  color: var(--accent);
  font-weight: 600;
}

.sidebar__nav-item.active::before { transform: translateY(-50%) scaleY(1); opacity: 1; box-shadow: 0 0 12px var(--accent); }

.sidebar__nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.sidebar__nav-item.active .nav-icon {
  text-shadow: 0 0 16px rgba(14,165,233,0.6);
}

.sidebar__footer {
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.mobile-bottom-nav {
  display: none;
}

/* Dash Main */
.dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.dash-welcome {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.dash-username {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.dash-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-notif {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.dash-notif:hover {
  border-color: var(--border-accent);
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Dash Cards Grid */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: var(--transition);
}

.dash-card:hover {
  border-color: var(--border-accent);
}

.dash-card__label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-card__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.dash-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.dash-card__change {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.dash-card__change.up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.dash-card__change.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Dash Grid Row */
.dash-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.dash-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.dash-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Chart */
.dash-chart {
  width: 100%;
  height: 180px;
  position: relative;
}

/* Watchlist */
.watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.watchlist-item__symbol {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.watchlist-item__name {
  font-size: 12px;
  color: var(--text-muted);
}

.watchlist-item__price {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.watchlist-item__change {
  font-size: 12px;
  font-weight: 600;
}

.up {
  color: #22c55e;
}

.down {
  color: #ef4444;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-highlight);
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.quick-action-btn:hover {
  background: var(--accent-glass);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.quick-action-btn span:first-child {
  font-size: 20px;
}

/* ======================================== */
/*   LEADERBOARD PAGE                        */
/* ======================================== */
.leaderboard-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.leaderboard-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow-x: auto;
}

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

thead th {
  background: var(--bg-card-alt);
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-highlight);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}

.rank-3 {
  background: linear-gradient(135deg, #cd7c37, #b45309);
  color: #fff;
}

.rank-other {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* ======================================== */
/*   ANIMATIONS                              */
/* ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ======================================== */
/*   MOBILE MENU                             */
/* ======================================== */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-navbar);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  color: var(--text-nav);
  font-weight: 500;
}

/* ======================================== */
/*   RESPONSIVE                              */
/* ======================================== */
@media (max-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform__inner {
    gap: 40px;
  }

  .register__inner {
    gap: 40px;
  }

  .dash-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Tablet / Mobile ---- */
@media (max-width: 768px) {

  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .platform__inner {
    grid-template-columns: 1fr;
  }

  .register__inner {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ===================== DASHBOARD MOBILE ===================== */

  /* Hide desktop sidebar, show toggle */
  #mobile-menu-btn {
    display: flex !important;
  }

  /* Sidebar: slide in from left */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 260px !important;
    min-width: 260px !important;
    z-index: 2000;
    transition: left 0.32s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 8px 0 40px rgba(0,0,0,0.5);
  }

  .sidebar.collapsed {
    left: -280px;
    width: 260px !important;
    min-width: 260px !important;
  }

  .sidebar.open {
    left: 0;
  }

  /* Hide the desktop sidebar toggle btn on mobile */
  .sidebar-toggle-btn {
    display: none !important;
  }

  /* Overlay when sidebar open */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop.visible { display: block; }

  /* Topbar */
  .dash-topbar {
    padding: 12px 16px !important;
    border-radius: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(16px);
    margin-bottom: 16px !important;
  }

  .dash-topbar__actions {
    gap: 8px;
  }

  .dash-welcome { font-size: 11px; }
  .dash-username { font-size: 17px; }

  /* Main content */
  .dash-main {
    padding: 0 12px 90px;
    overflow-x: hidden;
  }

  /* Stat cards: 2-column on mobile */
  .dash-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Balance card — span full */
  .dash-cards .dash-card:first-child {
    grid-column: 1 / -1;
  }

  /* Generic card */
  .dash-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .dash-card__value {
    font-size: 22px;
  }

  /* Dashboard rows */
  .dash-row,
  .dash-row-2,
  .dash-row-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Tables: make horizontally scrollable */
  .scrollable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 480px;
  }

  /* Bottom Navigation Bar (mobile) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 15, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 4px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    font-family: var(--font);
  }

  .mobile-bottom-nav__item i {
    font-size: 21px;
    margin-bottom: 3px;
    transition: transform 0.2s;
  }

  .mobile-bottom-nav__item.active {
    color: var(--accent);
  }

  .mobile-bottom-nav__item.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(14,165,233,0.5));
  }

  .mobile-bottom-nav__item:active i {
    transform: scale(0.9);
  }

  /* Trading panel on mobile */
  .trade-sym-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .trade-sym-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* KYC form */
  .kyc-form-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  /* Hide avatar dropdown on mobile (use mobile nav instead) */
  .avatar-dropdown-wrap {
    display: none;
  }

  /* Profile card condensed */
  .sidebar-profile {
    padding: 12px 16px;
  }

  /* Quick actions: 2x2 grid */
  .quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Deposit/Withdraw modals */
  .deposit-modal,
  .withdraw-modal {
    padding: 20px 16px;
  }
}

/* ---- Small Mobile ---- */
@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 28px 18px;
  }

  /* Even tighter card layout */
  .dash-cards {
    grid-template-columns: 1fr;
  }

  .dash-card:first-child {
    grid-column: auto;
  }

  .dash-card__value {
    font-size: 20px;
  }

  /* Hero */
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__actions {
    gap: 10px;
  }

  /* Topbar balance chip */
  .dash-clock-wrap {
    display: none;
  }

  .dash-topbar__actions {
    gap: 6px;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-accent);
}

/* ---- Selection ---- */
::selection {
  background: rgba(14, 165, 233, 0.3);
  color: var(--text-primary);
}