/* =============================
   BASE
============================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* =============================
   HOME BLACK-RED FINAL
============================= */
.home{
  min-height: 100vh;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(255,0,0,0.20) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at 50% 120%, rgba(255,0,0,0.10) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #050509 0%, #0b0b12 60%, #07070c 100%);
  color: #f8fafc;
}

/* LOGO: selalu di atas & sticky */
.home-header{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 12px 12px 8px;

  /* kaca tipis biar elegan */
  background: rgba(5,5,9,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,0,0,0.12);
}

.home-logo{
  width: min(520px, 96vw);
  max-height: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.75));
}

/* MAIN: benar-benar center (desktop & mobile) */
.home-main{
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 18px 12px 28px;
}

/* BOX: lebih tebal + lebih “berasa” */
.home-card{
  width: min(560px, 92vw);
  text-align: center;

  background: rgba(12,12,18,0.82);
  border: 2px solid rgba(255,0,0,0.28);
  border-radius: 20px;

  padding: 22px 18px 18px;

  /* shadow tebal */
  box-shadow:
    0 28px 70px rgba(0,0,0,0.70),
    0 0 0 1px rgba(255,0,0,0.08) inset;

  backdrop-filter: blur(12px);
}

/* TEXT */
.home-title{
  margin: 6px 0 6px;
  font-weight: 900;
  letter-spacing: .4px;
}

.home-sub{
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(248,250,252,.74);
}

/* BUTTONS */
.home-btns{
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.w100{ width: 100%; }

.btn-red{
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;

  font-weight: 900;
  color: #fff;

  background: linear-gradient(135deg, #ff2a2a, #b30000);
  box-shadow: 0 16px 32px rgba(255,0,0,0.12);
}

.btn-dark{
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;

  font-weight: 900;
  color: #f8fafc;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,0,0,0.28);
}

.btn-red:hover,
.btn-dark:hover{
  filter: brightness(1.05);
}

.btn-red:active,
.btn-dark:active{
  transform: translateY(1px);
}

/* LINKS */
.home-links{
  margin-top: 14px;
  font-size: 13px;
}

.home-links a{
  color: #ff4d4d;
  font-weight: 800;
  text-decoration: none;
}

.home-links a:hover{
  text-decoration: underline;
}

/* FOOTER */
.home-footer{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(248,250,252,.60);
}

/* =============================
   MOBILE FIX (BIAR PAS)
============================= */
@media (max-width: 520px){
  .home-logo{
    max-height: 90px;
  }

  .home-main{
    min-height: calc(100vh - 98px);
    padding: 14px 12px 22px;
  }

  .home-card{
    width: 92vw;
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .home-btns{
    flex-direction: column;
    gap: 10px;
  }

  .home-title{ font-size: 18px; }
  .home-sub{ font-size: 12px; }
}
/* =============================
   AUTH PAGES (LOGIN/REGISTER/FORGOT) - BLACK RED
============================= */
.auth{
  min-height:100vh;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(255,0,0,0.20) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #050509 0%, #0b0b12 60%, #07070c 100%);
  color:#f8fafc;
}

.auth-header{
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 12px 8px;
  display:flex;
  justify-content:center;
  background: rgba(5,5,9,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,0,0,0.12);
}

.auth-logo{
  width: min(420px, 96vw);
  max-height: 95px;
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.75));
}

.auth-main{
  min-height: calc(100vh - 105px);
  display:grid;
  place-items:center;
  padding: 18px 12px 28px;
}

.auth-card{
  width: min(520px, 92vw);
  background: rgba(12,12,18,0.82);
  border: 2px solid rgba(255,0,0,0.28);
  border-radius: 20px;
  padding: 22px 18px 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.70);
  backdrop-filter: blur(12px);
  text-align:left;
}

.auth-title{
  margin: 0 0 4px;
  font-weight: 900;
  letter-spacing: .3px;
}

.auth-sub{
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(248,250,252,.74);
}

.auth-label{
  display:block;
  font-size: 12px;
  color: rgba(248,250,252,.72);
  margin: 10px 0 6px;
}

.auth-input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,0,0,0.22);
  background: rgba(255,255,255,0.04);
  color:#f8fafc;
}

.auth-input:focus{
  outline:none;
  border-color: rgba(255,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.12);
}

.auth-btn-red{
  width:100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border:none;
  cursor:pointer;
  font-weight: 900;
  color:#fff;
  background: linear-gradient(135deg, #ff2a2a, #b30000);
}

.auth-btn-red:hover{ filter: brightness(1.05); }
.auth-btn-red:active{ transform: translateY(1px); }

.auth-links{
  margin-top: 14px;
  font-size: 13px;
  text-align:center;
}

.auth-links a{
  color:#ff4d4d;
  font-weight: 800;
  text-decoration:none;
}

.auth-links a:hover{ text-decoration: underline; }

.sep{ color: rgba(248,250,252,.35); padding: 0 8px; }

.auth-alert{
  background: rgba(255, 40, 40, 0.10);
  border: 1px solid rgba(255, 40, 40, 0.35);
  color: #ffd6d6;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 10px;
}

@media (max-width:520px){
  .auth-logo{ max-height: 80px; }
  .auth-main{ min-height: calc(100vh - 92px); }
  .auth-card{ padding: 18px 16px 16px; border-radius: 18px; }
}
/* ===== ANIMASI HALUS (HOME + AUTH) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Home: logo + card */
.home-header { animation: fadeDown .45s ease both; }
.home-card   { animation: fadeUp .55s ease .06s both; }

/* Login/Register/Forgot: logo + card */
.auth-header { animation: fadeDown .45s ease both; }
.auth-card   { animation: fadeUp .55s ease .06s both; }

/* Hover/press lebih halus */
.home-card, .auth-card {
  transition: transform .18s ease, box-shadow .22s ease;
}

.home-card:hover, .auth-card:hover {
  transform: translateY(-1px);
}

.btn-red, .btn-dark, .auth-btn-red {
  transition: transform .10s ease, filter .18s ease, box-shadow .18s ease;
}

.btn-red:hover, .auth-btn-red:hover { filter: brightness(1.06); }
.btn-dark:hover { filter: brightness(1.08); }

.btn-red:active, .btn-dark:active, .auth-btn-red:active {
  transform: translateY(1px);
}

/* Jika user pilih “Reduce motion”, matikan animasi */
@media (prefers-reduced-motion: reduce) {
  .home-header, .home-card, .auth-header, .auth-card { animation: none !important; }
  .home-card, .auth-card, .btn-red, .btn-dark, .auth-btn-red { transition: none !important; }
}
/* FORCE GOLD NOTE (paling bawah file) */
.auth-card .auth-note{
  color: #d4af37 !important;
  font-size: 13px !important;   /* samakan dengan teks form */
  font-weight: 700 !important;
  line-height: 1.5 !important;
  display: block !important;
}

@media (max-width:520px){
  .auth-card .auth-note{
    font-size: 13px !important; /* tetap sama di mobile */
    color: #d4af37 !important;
  }
}
/* =============================
   DASHBOARD (BLACK RED)
============================= */
.dash{
  min-height:100vh;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(255,0,0,0.20) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #050509 0%, #0b0b12 60%, #07070c 100%);
  color:#f8fafc;
}

.dash-header{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 12px 8px;
  background: rgba(5,5,9,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,0,0,0.12);
}

.dash-logo{
  width: min(220px, 60vw);
  max-height: 60px;
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.75));
}

.burger{
  width: 44px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,0,0,0.25);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
  display:grid;
  place-items:center;
  gap: 4px;
  padding: 8px;
}
.burger span{
  width: 20px; height: 2px;
  background: rgba(248,250,252,.85);
  display:block;
  border-radius: 99px;
}

.dash-user{
  padding: 10px 14px 0;
  max-width: 720px;
  margin: 0 auto;
}
.dash-user-label{
  font-size: 12px;
  color: rgba(248,250,252,.65);
}
.dash-user-name{
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
}

.dash-cards{
  padding: 12px 14px 0;
  max-width: 720px;
  margin: 0 auto;
}
.dash-card{
  background: rgba(12,12,18,0.82);
  border: 2px solid rgba(255,0,0,0.22);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
}
.dash-card-title{
  font-weight: 900;
  letter-spacing: .2px;
}
.dash-card-value{
  font-size: 26px;
  font-weight: 900;
  margin-top: 8px;
  color: #fff;
}
.dash-card-sub{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(248,250,252,.70);
}

.dash-section{
  padding: 14px 14px 40px;
  max-width: 720px;
  margin: 0 auto;
}
.dash-section-title{
  margin: 12px 0 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .3px;
}

.dash-table-wrap{
  background: rgba(12,12,18,0.82);
  border: 2px solid rgba(255,0,0,0.18);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
}
.dash-table{
  width:100%;
  border-collapse: collapse;
}
.dash-table th, .dash-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.dash-table th{
  color: rgba(248,250,252,.70);
  font-weight: 800;
}
.right{ text-align:right; }
.empty{
  text-align:center;
  color: rgba(248,250,252,.55);
  padding: 18px 12px;
}
.total-label{
  font-weight: 900;
  color: rgba(248,250,252,.85);
}
.total-value{
  font-weight: 900;
  color: #ff4d4d;
}

/* Side menu */
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}
.backdrop.show{
  opacity:1;
  pointer-events:auto;
}

.side{
  position:fixed;
  top:0; right:0;
  height:100vh;
  width: min(320px, 82vw);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 50;
}
.side.open{ transform: translateX(0); }
.side-inner{
  height:100%;
  background: rgba(12,12,18,0.95);
  border-left: 2px solid rgba(255,0,0,0.22);
  backdrop-filter: blur(12px);
  padding: 16px;
}
.side-title{
  font-weight: 900;
  margin-bottom: 12px;
}
.side-link{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,0,0,0.18);
  background: rgba(255,255,255,0.03);
  color: rgba(248,250,252,.92);
  text-decoration:none;
  margin-bottom: 10px;
}
.side-link.danger{
  border-color: rgba(255,0,0,0.35);
  color:#ff4d4d;
}
.side-link:hover{ filter: brightness(1.05); }

@media (max-width:520px){
  .dash-logo{ max-height: 52px; }
}
/* =============================
   ACCORDION DASHBOARD
============================= */
.acc-head{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid rgba(255,0,0,0.18);
  background: rgba(12,12,18,0.82);
  color: rgba(248,250,252,.92);

  font-weight: 900;
  letter-spacing: .3px;
  cursor:pointer;
  margin: 12px 0 10px;

  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.acc-ic{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,0,0,0.22);
  background: rgba(255,255,255,0.03);
  font-size: 18px;
  line-height: 1;
}

.acc-body{
  display:none;
  animation: fadeUp .35s ease both;
}
.acc-body.open{
  display:block;
}
/* ===== CAPTCHA (register) ===== */
.cap-row{
  display: grid;
  grid-template-columns: 1fr 170px 44px;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.cap-imgwrap{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,0,0,0.22);
  background: rgba(255,255,255,0.04);
}

.cap-img{
  width: 170px;
  height: 54px;
  display: block;
  cursor: pointer;
}

.cap-refresh{
  width: 44px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,0,0,0.22);
  background: rgba(255,255,255,0.04);
  color: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width:520px){
  .cap-row{ grid-template-columns: 1fr; }
  .cap-img{ width: 100%; }
  .cap-refresh{ width: 100%; height: 46px; }
}
