/* ==========================================================
   STYLING SINEMATIK & MODAL AUTENTIKASI ANOA FIN (TEMA BIRU ELEGAN)
   ========================================================== */

/* Latar belakang saat berada di mode Landing */
body.mode-landing {
  background-color: #091524 !important;
  color: #f1f5f9;
  overflow-x: hidden;
}

#landing-view {
  position: relative;
  min-height: 100vh;
  background-color: #091524;
}

/* 3D WebGL Canvas */
#auralis-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.auralis-ambient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(77, 143, 214, 0.14), transparent 60%),
              radial-gradient(circle at 80% 75%, rgba(43, 90, 140, 0.08), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.auralis-content {
  position: relative;
  z-index: 2;
  padding: 0 6% 80px;
}

/* Navigasi */
.auralis-nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 21, 36, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auralis-logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.auralis-logo span { color: #8bc3f7; }
.auralis-logo img, .brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(77, 143, 214, 0.4));
}

.badge-uho {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .15em;
  background: rgba(77, 143, 214, 0.16);
  color: #b5daf9;
  border: 1px solid rgba(77, 143, 214, 0.35);
  padding: 3px 8px;
  border-radius: 99px;
  vertical-align: middle;
}

.auralis-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  margin-right: 12px;
  transition: color .2s;
}
.nav-link:hover { color: #fff; }

/* Tombol Biru Elegan */
.btn-violet {
  background: linear-gradient(135deg, #4d8fd6, #2b5a8c);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(77, 143, 214, 0.38);
}
.btn-violet:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(77, 143, 214, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* Hero Section */
.auralis-hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
  padding-top: 50px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(77, 143, 214, 0.12);
  border: 1px solid rgba(77, 143, 214, 0.3);
  font-size: 12.5px;
  color: #8bc3f7;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d8fd6;
  box-shadow: 0 0 10px #4d8fd6;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
  color: #ffffff;
}

.dynamic-rotating {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 20%, #8bc3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px solid #4d8fd6;
  transition: all .3s ease;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.stat-item .num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}
.stat-item .lbl {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Seksi & Kartu */
.auralis-section {
  padding: 100px 0 40px;
}

.section-badge {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #8bc3f7;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #ffffff;
  margin: 0 0 10px;
}

.section-sub {
  color: #94a3b8;
  font-size: 15.5px;
  max-width: 600px;
  margin-bottom: 40px;
}

.auralis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.auralis-card {
  background: rgba(15, 34, 58, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s;
}

.auralis-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 143, 214, 0.45);
}

.card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #4d8fd6;
  margin-bottom: 14px;
}

.auralis-card h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 10px;
}

.auralis-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* Fitur Mini Grid */
.features-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px;
  border-radius: 18px;
}
.mini-card b { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.mini-card span { color: #8e95a5; font-size: 13.5px; line-height: 1.5; display: block; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(15, 34, 58, 0.9), rgba(9, 21, 36, 0.95));
  border: 1px solid rgba(77, 143, 214, 0.28);
  border-radius: 28px;
  padding: 50px 36px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.cta-box h2 { font-size: 30px; color: #fff; margin: 12px 0; }
.cta-box p { color: #94a3b8; font-size: 15px; line-height: 1.6; margin: 0 auto; max-width: 640px; }

/* Footer */
.auralis-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-authors strong { color: #cbd5e1; }

/* ==========================================================
   STYLING MODAL AUTENTIKASI
   ========================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 21, 36, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

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

.auth-modal {
  background: #0d1e34;
  border: 1px solid rgba(77, 143, 214, 0.25);
  border-radius: 24px;
  padding: 34px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(77, 143, 214, 0.2);
  position: relative;
  transform: scale(0.94);
  transition: transform .3s ease;
}
.auth-overlay.active .auth-modal { transform: scale(1); }

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.auth-header { margin-bottom: 22px; }
.auth-brand { font-family: var(--serif); font-size: 24px; color: #fff; font-weight: 700; }
.auth-brand span { color: #8bc3f7; }
.auth-header p { margin: 6px 0 0; color: #94a3b8; font-size: 13.5px; }

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  border: none;
  background: none;
  color: #94a3b8;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: .2s;
}
.auth-tab-btn.active {
  background: #4d8fd6;
  color: #fff;
}

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(77, 143, 214, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s;
}
.auth-input:focus { border-color: #4d8fd6; }
.auth-submit-btn { width: 100%; margin-top: 12px; padding: 13px; font-size: 14.5px; }

/* Dashboard Header Account Enhancements */
.account-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btn-header-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4f7fb;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  font-weight: 600;
  display: inline-block;
}
.btn-header-link:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}
.btn-header-link.btn-logout {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}
.btn-header-link.btn-logout:hover {
  background: rgba(220, 38, 38, 0.45);
  color: #fff;
}

@media (max-width: 720px) {
  .auralis-nav-actions .nav-link { display: none; }
  .hero-btns { flex-direction: column; }
  .account-panel { flex-direction: column; align-items: flex-end; gap: 8px; }
}

/* ==========================================================
   ANIMASI PENDUKUNG DASHBOARD (TRANSISI, SCROLL, DAN HOVER)
   ========================================================== */

/* Transisi Halus Saat Berpindah Halaman / Modul */
#app {
  animation: pageFadeSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animasi Melayang Halus pada Kartu dan Statistik */
.card, .tile, .stat, .hero {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}

.card:hover, .tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 34, 58, 0.1);
}

.stat:hover {
  transform: translateY(-2px);
}

/* Transisi Bar Progres / Budgeting */
.bar > i {
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
