:root{
  --bg-deep: #2b0a10;
  --bg-mid: #4a0f18;
  --accent: #7a1c26;
  --accent-light: #a3323d;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.08);
  --text-main: #f5ece9;
  --text-sub: rgba(245,236,233,0.75);
}

* { margin:0; padding:0; box-sizing:border-box; }

body{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 15%, rgba(180,50,60,0.35), transparent 40%),
    radial-gradient(circle at 95% 85%, rgba(150,30,40,0.3), transparent 45%),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  pointer-events:none;
}

.container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 32px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-mark{
  width: 34px;
  height: 34px;
  flex-shrink:0;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 40px;
}

.nav-links a{
  color: var(--text-main);
  text-decoration:none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.nav-links a:hover{ opacity: 1; }

.btn-masuk{
  background: var(--accent);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor:pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-masuk:hover{ background: var(--accent-light); transform: translateY(-1px); }

.hero{
  text-align:center;
  padding: 60px 0 40px;
}

.hero-mark{
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  object-fit: contain;
  border-radius: 12px;
  animation: float 5s ease-in-out infinite;
}

@keyframes float{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.eyebrow{
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1{
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 22px;
}

.hero h1 .outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.78em;
  height: 0.78em;
  border: 0.05em solid var(--text-main);
  border-radius: 50%;
  color: transparent;
  box-sizing: border-box;
}

.divider{
  width: 70px;
  height: 3px;
  background: var(--accent-light);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.hero p{
  font-size: 17px;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
}

.btn-cta{
  background: var(--accent);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 18px 44px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-decoration: none;
  display: inline-block;
}
.btn-cta:hover{
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.features{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 60px 0 80px;
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.card-icon{
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 18px;
}

.card h3{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-line{
  width: 28px;
  height: 2px;
  background: var(--accent-light);
  margin-bottom: 12px;
  border-radius: 2px;
}

.card p{
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}

@media (max-width: 900px){
  .nav-links{ display:none; }
  .features{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .features{ grid-template-columns: 1fr; }
  .container{ padding: 0 20px; }
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 48px;
}

.footer{
  text-align:center;
  padding: 30px;
  color: var(--text-sub);
  font-size: 13px;
}

main{
  min-height: 60vh;
}

.dashboard-layout{
  display:flex;
  min-height: 100vh;
}

.sidebar{
  width: 240px;
  background: rgba(0,0,0,0.25);
  padding: 32px 20px;
  border-right: 1px solid var(--card-border);
}

.sidebar-logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 40px;
}

.sidebar-menu{
  list-style:none;
}

.sidebar-menu li{
  margin-bottom: 6px;
}

.sidebar-menu a{
  display:block;
  color: var(--text-sub);
  text-decoration:none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-menu a:hover{
  background: var(--accent);
  color: var(--text-main);
}

.dashboard-content{
  flex: 1;
  padding: 40px 48px;
}

.dashboard-content h1{
  margin-bottom: 24px;
}

.dashboard-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.auth-box{
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-align:center;
}

.auth-box h2{
  margin-bottom: 28px;
}

.auth-box form{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.auth-box input{
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  font-size: 15px;
}

.auth-box input::placeholder{
  color: var(--text-sub);
}

.auth-box p{
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-sub);
}

.auth-box a{
  color: var(--accent-light);
  text-decoration:none;
  font-weight: 600;
}

.auth-split-body{
  min-height: 100vh;
  background: var(--bg-deep);
}

.auth-split-wrapper{
  display: flex;
  min-height: 100vh;
}

.auth-left{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background:
    radial-gradient(circle at 20% 20%, rgba(200,60,70,0.35), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(180,40,50,0.25), transparent 50%),
    linear-gradient(160deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

.auth-left-content{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 380px;
}

.auth-left-logo{
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 24px;
}

.auth-left-title{
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 14px;
}

.auth-left-tagline{
  color: var(--accent-light);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.auth-left-divider{
  width: 50px;
  height: 3px;
  background: var(--accent-light);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.auth-left-desc{
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}

.auth-right{
  flex: 1;
  background: #0d0507;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.auth-top-link{
  position: absolute;
  top: 32px;
  right: 40px;
  font-size: 14px;
  color: var(--text-sub);
}

.auth-top-link a{
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}

.auth-card{
  width: 100%;
  max-width: 440px;
  background: rgba(122,28,38,0.08);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}

.auth-card-logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 18px;
}

.auth-card-title{
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-card-subtitle{
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 32px;
}

.auth-form{
  text-align: left;
}

.auth-label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 18px;
}
.auth-label:first-child{ margin-top: 0; }

.auth-input-group{
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon{
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-sub);
  pointer-events: none;
}

.auth-input-group input{
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  font-size: 14px;
}

.auth-input-group input::placeholder{
  color: var(--text-sub);
}

.auth-eye-toggle{
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  padding: 0;
  display: flex;
}
.auth-eye-toggle svg{ width: 18px; height: 18px; }

.auth-forgot{
  text-align: right;
  margin-top: 10px;
}
.auth-forgot a{
  font-size: 13px;
  color: var(--accent-light);
  text-decoration: none;
}

.auth-submit-btn{
  width: 100%;
  margin-top: 24px;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.auth-submit-btn svg{ width: 18px; height: 18px; }
.auth-submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(163,50,61,0.4);
}

.auth-divider-line{
  display: flex;
  align-items: center;
  text-align: center;
  margin: 26px 0;
  color: var(--text-sub);
  font-size: 13px;
}
.auth-divider-line::before,
.auth-divider-line::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}
.auth-divider-line span{ padding: 0 12px; }

.auth-google-btn{
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}
.auth-google-btn:hover{ background: rgba(255,255,255,0.07); }

.auth-bottom-link{
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-sub);
}
.auth-bottom-link a{
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.auth-copyright{
  position: absolute;
  bottom: 20px;
  left: 40px;
  font-size: 12px;
  color: var(--text-sub);
}

@media (max-width: 900px){
  .auth-split-wrapper{ flex-direction: column; }
  .auth-left{ padding: 40px 20px; min-height: 280px; }
  .auth-right{ padding: 30px 20px; }
  .auth-top-link{ position: static; text-align: center; margin-bottom: 20px; }
  .auth-copyright{ position: static; text-align: center; padding: 20px; }
}


/* ===== REGISTER FORM EXTRAS ===== */
.auth-form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form-col .auth-label{
  margin-top: 0;
}

.auth-checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  line-height: 1.5;
}

.auth-checkbox input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-light);
  flex-shrink: 0;
}

.auth-checkbox a{
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 500px){
  .auth-form-row{
    grid-template-columns: 1fr;
  }
}


/* ===== APP LAYOUT (DASHBOARD) ===== */
.dashboard-layout{ display:flex; min-height:100vh; align-items:stretch; }

.app-sidebar{
  width: 260px;
  background: linear-gradient(180deg, #3a0d15, #1a0509);
  border-right: 1px solid var(--card-border);
  padding: 28px 20px;
  display:flex;
  flex-direction:column;
  flex-shrink:0;
}
.app-sidebar-logo{ display:flex; align-items:center; gap:10px; margin-bottom:28px; }
.app-sidebar-logo-text{ font-weight:800; font-size:18px; letter-spacing:2px; }
.app-sidebar-logo-sub{ font-size:11px; color:var(--text-sub); }

.app-sidebar-profile{
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,0.04);
  border:1px solid var(--card-border);
  border-radius:12px; padding:12px; margin-bottom:14px;
}
.app-sidebar-avatar{ width:40px; height:40px; border-radius:50%; object-fit:cover; }
.app-sidebar-name{ font-weight:700; font-size:14px; }
.app-sidebar-plan{ font-size:11px; color:var(--accent-light); }

.app-sidebar-asset{
  background: rgba(255,255,255,0.04);
  border:1px solid var(--card-border);
  border-radius:12px; padding:14px; margin-bottom:24px;
}
.app-sidebar-asset-label{ font-size:11px; color:var(--text-sub); margin-bottom:4px; }
.app-sidebar-asset-value{ font-size:18px; font-weight:800; margin-bottom:4px; }
.app-sidebar-asset-change{ font-size:11px; color:#3ecf6a; }

.app-sidebar-menu{ display:flex; flex-direction:column; gap:4px; flex:1; }
.app-menu-item{
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius:10px;
  color:var(--text-sub); text-decoration:none; font-size:14px; font-weight:500;
  transition: background 0.2s ease, color 0.2s ease;
}
.app-menu-item:hover{ background: rgba(255,255,255,0.05); color:var(--text-main); }
.app-menu-item.active{ background: var(--accent); color:#fff; }
.app-sidebar-bottom{ display:flex; flex-direction:column; gap:4px; margin-top:20px; padding-top:20px; border-top:1px solid var(--card-border); }

.app-main{ flex:1; min-width:0; display:flex; flex-direction:column; }

.app-topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 32px; border-bottom:1px solid var(--card-border);
}
.app-topbar-left{ display:flex; align-items:center; gap:14px; }
.app-back-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--card-border);
  background: rgba(255,255,255,0.03); color:var(--text-main); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.app-topbar-title{ font-size:20px; font-weight:700; }
.app-topbar-right{ display:flex; align-items:center; gap:14px; }
.app-icon-btn{
  position:relative; width:38px; height:38px; border-radius:50%;
  border:1px solid var(--card-border); background:rgba(255,255,255,0.03);
  color:var(--text-main); cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.app-icon-badge{
  position:absolute; top:-2px; right:-2px; background:var(--accent-light);
  color:#fff; font-size:10px; font-weight:700; border-radius:50%;
  width:16px; height:16px; display:flex; align-items:center; justify-content:center;
}
.app-user-menu{ display:flex; align-items:center; gap:6px; cursor:pointer; }
.app-user-avatar{ width:34px; height:34px; border-radius:50%; object-fit:cover; }

.app-content{ padding: 28px 32px 60px; }

.app-greeting h2{ font-size:24px; font-weight:800; margin-bottom:4px; }
.app-greeting p{ color:var(--text-sub); font-size:14px; margin-bottom:10px; }
.app-greeting-meta{ display:flex; gap:20px; font-size:13px; color:var(--text-sub); margin-bottom:24px; }

.app-stat-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; margin-bottom:24px; }
.app-stat-card{
  background: var(--card-bg); border:1px solid var(--card-border);
  border-radius:16px; padding:20px;
}
.app-stat-icon{
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:18px; margin-bottom:12px;
}
.icon-pink{ background:rgba(163,50,61,0.3); }
.icon-purple{ background:rgba(120,60,200,0.3); }
.icon-orange{ background:rgba(200,130,30,0.3); }
.icon-blue{ background:rgba(60,90,200,0.3); }
.app-stat-title{ font-size:13px; color:var(--text-sub); margin-bottom:6px; }
.app-stat-value{ font-size:22px; font-weight:800; margin-bottom:10px; }
.app-stat-value span{ font-size:12px; font-weight:400; color:var(--text-sub); }
.app-stat-footer{ display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--text-sub); }
.app-stat-up{ color:#3ecf6a; }
.app-stat-arrow{
  width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,0.06);
  color:var(--text-main); display:flex; align-items:center; justify-content:center; text-decoration:none;
}
.app-storage-bar{ height:5px; background:rgba(255,255,255,0.08); border-radius:4px; margin-bottom:10px; overflow:hidden; }
.app-storage-fill{ height:100%; background:#4f6ef7; border-radius:4px; }

.app-grid-2{ display:grid; grid-template-columns: 1.4fr 1fr; gap:18px; margin-bottom:18px; }
.app-panel{ background:var(--card-bg); border:1px solid var(--card-border); border-radius:16px; padding:22px; }
.app-panel-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.app-panel-header h3{ font-size:16px; font-weight:700; }
.app-select{
  background: rgba(255,255,255,0.05); border:1px solid var(--card-border);
  color:var(--text-main); border-radius:8px; padding:6px 10px; font-size:12px;
}
.app-view-all{ font-size:12px; color:var(--accent-light); text-decoration:none; font-weight:600; }

.app-fin-summary{ display:flex; gap:28px; margin-bottom:16px; }
.fin-label{ font-size:12px; color:var(--text-sub); display:block; margin-bottom:4px; }
.fin-label.income{ color:#3ecf6a; }
.fin-label.expense{ color:#e0475c; }
.fin-value{ font-size:16px; font-weight:700; }
.app-chart{ width:100%; height:160px; }
.app-chart-legend{ display:flex; gap:16px; font-size:12px; color:var(--text-sub); margin-top:8px; }
.app-chart-legend .dot{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.dot.income{ background:#3ecf6a; }
.dot.expense{ background:#e0475c; }

.app-crypto-list{ list-style:none; }
.app-crypto-list li{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--card-border); }
.app-crypto-list li:last-child{ border-bottom:none; }
.crypto-icon{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px; flex-shrink:0; }
.crypto-info{ flex:1; display:flex; flex-direction:column; }
.crypto-info span{ font-size:11px; color:var(--text-sub); }
.crypto-price{ font-size:13px; font-weight:600; text-align:right; }
.crypto-change{ font-size:12px; width:70px; text-align:right; }
.crypto-change.up{ color:#3ecf6a; }
.crypto-change.down{ color:#e0475c; }

.app-timeline{ list-style:none; }
.app-timeline li{ display:flex; align-items:center; gap:14px; padding:12px 0; position:relative; }
.timeline-dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.dot-red{ background:#e0475c; } .dot-orange{ background:#d99a3a; } .dot-green{ background:#3ecf6a; } .dot-blue{ background:#4f6ef7; }
.timeline-time{ font-size:12px; color:var(--text-sub); width:44px; }
.timeline-info{ flex:1; display:flex; flex-direction:column; }
.timeline-info span{ font-size:12px; color:var(--text-sub); }

.app-todo-list{ list-style:none; }
.app-todo-list li{ display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--card-border); }
.app-todo-list li:last-child{ border-bottom:none; }
.app-checkbox{ display:flex; align-items:center; gap:10px; font-size:14px; cursor:pointer; }
.app-checkbox input{ accent-color:var(--accent-light); width:16px; height:16px; }

.tag{ font-size:11px; font-weight:600; padding:4px 10px; border-radius:6px; }
.tag-purple{ background:rgba(120,60,200,0.25); color:#c39bf0; }
.tag-orange{ background:rgba(200,130,30,0.25); color:#e6b673; }
.tag-green{ background:rgba(62,207,106,0.2); color:#3ecf6a; }
.tag-blue{ background:rgba(79,110,247,0.2); color:#8fa4f7; }
.tag-red{ background:rgba(224,71,92,0.2); color:#e0475c; }
.tag-gray{ background:rgba(255,255,255,0.08); color:var(--text-sub); }

@media (max-width: 1100px){
  .app-stat-grid{ grid-template-columns: repeat(2, 1fr); }
  .app-grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 800px){
  .app-sidebar{ display:none; }
  .app-content{ padding: 20px; }
}