/* ============================================
   MOONFLUX TESTIMONI — design tokens
   ink        #101013  (bg)
   paper      #F2EEE4  (text/light surfaces)
   claw-lime  #D4FF3F  (primary accent / cta)
   eclipse    #3B2A52  (secondary surface, night-violet)
   scratch    #FF4B4B  (danger / ripper)
   ============================================ */

:root{
  --ink: #101013;
  --ink-soft: #17171c;
  --ink-line: #2a2a32;
  --paper: #f2eee4;
  --paper-dim: #b9b6ac;
  --lime: #d4ff3f;
  --lime-dim: #a8cc2f;
  --eclipse: #3b2a52;
  --eclipse-soft: #241a33;
  --scratch: #ff4b4b;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 18px;
  --radius-sm: 10px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

::selection{ background: var(--lime); color: var(--ink); }

/* subtle film-grain overlay for texture, cheap & static */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a{ color: inherit; }

/* ============ TOPBAR ============ */
.topbar{
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(16,16,19,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}

.logo-trigger{
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.logo-img{
  height: 34px; width: auto;
  filter: invert(1); /* black logo -> white on dark bg */
  transition: transform 0.15s ease;
}
.logo-trigger:active .logo-img{ transform: scale(0.92) rotate(-3deg); }

/* moon-phase progress dots: fills like a moon waxing toward full,
   gives feedback on the 5-click secret without giving away what it's for */
.moon-phases{ display: flex; gap: 5px; height: 8px; }
.moon-phases i{
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--paper-dim);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.moon-phases i.lit{
  background: var(--lime); border-color: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.moon-phases.pulse i.lit{ transform: scale(1.3); }

.tabs{
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar{ display: none; }

.tab{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: transparent;
  color: var(--paper-dim);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover{ color: var(--paper); border-color: var(--paper-dim); }
.tab.is-active{
  background: var(--lime); color: var(--ink); border-color: var(--lime);
  font-weight: 600;
}

/* ============ LAYOUT / PANELS ============ */
main{ max-width: 920px; margin: 0 auto; padding: 0 20px 80px; }

.panel{ display: none; animation: fade-up 0.35s ease; }
.panel.is-active{ display: block; }

@keyframes fade-up{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.hero{ padding: 56px 0 32px; }
.hero-title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 0.95;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero-sub{
  font-size: 15px; color: var(--paper-dim); max-width: 40ch;
  margin: 0 0 24px;
}

.section-head{ padding: 40px 0 24px; }
.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 8px;
}
.section-sub{ color: var(--paper-dim); font-size: 14px; margin: 0; max-width: 50ch; }
.ripper-head .section-title{ color: var(--scratch); }

/* ============ BUTTONS ============ */
.btn{
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background: var(--lime); color: var(--ink); }
.btn-primary:hover{ opacity: 0.9; }
.btn-ghost{ background: transparent; color: var(--paper); border-color: var(--ink-line); }
.btn-ghost:hover{ border-color: var(--paper-dim); }
.btn-full{ width: 100%; }

/* ============ TESTIMONI GRID ============ */
.testi-grid{
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding-bottom: 40px;
}
.testi-card{
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 20px;
}
.testi-stars{ color: var(--lime); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.testi-message{ font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.testi-name{
  font-family: var(--font-mono); font-size: 12px; color: var(--paper-dim);
  display: flex; justify-content: space-between; align-items: center;
}

.empty-state{ color: var(--paper-dim); font-size: 14px; font-family: var(--font-mono); }

/* ============ INFO MIMIN ============ */
.mimin-card{
  display: flex; gap: 22px; align-items: flex-start;
  padding: 48px 0;
  flex-wrap: wrap;
}
.mimin-avatar{
  width: 88px; height: 88px; border-radius: 24px; object-fit: cover;
  background: var(--eclipse);
  filter: invert(1);
  padding: 10px;
  border: 1px solid var(--ink-line);
}
.mimin-body{ flex: 1; min-width: 220px; }
.mimin-bio{ color: var(--paper-dim); font-size: 14.5px; max-width: 50ch; margin: 6px 0 18px; }
.mimin-socials{ display: flex; gap: 10px; flex-wrap: wrap; }
.mimin-socials a{
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--ink-line); border-radius: 999px; padding: 8px 16px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.mimin-socials a:hover{ border-color: var(--lime); color: var(--lime); }

/* ============ PRODUK GRID ============ */
.produk-grid{
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding-bottom: 40px;
}
.produk-card{
  background: var(--eclipse-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.produk-img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--eclipse); }
.produk-body{ padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produk-name{ font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0; }
.produk-desc{ color: var(--paper-dim); font-size: 13.5px; margin: 0; flex: 1; }
.produk-price{ font-family: var(--font-mono); color: var(--lime); font-size: 14px; }
.produk-link{
  margin-top: 6px; display: inline-block; text-align: center;
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--lime); color: var(--lime);
  border-radius: 999px; padding: 8px 0; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.produk-link:hover{ background: var(--lime); color: var(--ink); }

/* ============ RIPPER LIST ============ */
.ripper-list{ display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }
.ripper-card{
  display: flex; gap: 14px;
  background: var(--ink-soft);
  border: 1px solid rgba(255,75,75,0.25);
  border-left: 3px solid var(--scratch);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.ripper-img{ width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--ink-line); }
.ripper-title{ font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.ripper-title small{ color: var(--paper-dim); font-weight: 400; font-family: var(--font-mono); font-size: 12px; }
.ripper-desc{ color: var(--paper-dim); font-size: 13.5px; margin: 0 0 6px; }
.ripper-evidence{ font-family: var(--font-mono); font-size: 12px; color: var(--scratch); text-decoration: none; }

/* ============ FOOTER ============ */
.footer{
  text-align: center; padding: 30px 20px 50px;
  font-family: var(--font-mono); font-size: 12px; color: var(--paper-dim);
}

/* ============ MODALS ============ */
.modal-overlay{
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,8,10,0.8);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open{ display: flex; animation: overlay-in 0.2s ease; }
@keyframes overlay-in{ from{ opacity: 0; } to{ opacity: 1; } }

.modal{
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  width: 100%; max-width: 400px;
  animation: modal-in 0.25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modal-in{
  from{ opacity: 0; transform: translateY(14px) scale(0.97); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close{
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--paper-dim);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-close:hover{ color: var(--paper); }
.modal-title{
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  margin: 0 0 18px;
}

.field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; }
.field span{ font-family: var(--font-mono); color: var(--paper-dim); font-size: 11.5px; text-transform: lowercase; }
.field input[type="text"],
.field input[type="password"],
.field textarea{
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  color: var(--paper);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}
.field input:focus, .field textarea:focus{
  outline: none; border-color: var(--lime);
}
.field-note{ font-size: 11.5px; color: var(--paper-dim); margin: 10px 0 0; font-family: var(--font-mono); }
.field-error{ font-size: 12px; color: var(--scratch); margin: 10px 0 0; min-height: 14px; }

.checkbox-field{ flex-direction: row; align-items: center; gap: 8px; }
.checkbox-field span{ text-transform: none; }

.star-input{ display: flex; gap: 4px; }
.star-input button{
  background: none; border: none; font-size: 26px; cursor: pointer;
  color: var(--ink-line); transition: color 0.1s ease;
}
.star-input button.is-lit{ color: var(--lime); }

/* login modal gets a slightly more "vault" feel */
.login-modal{ border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 20px 60px rgba(212,255,63,0.08); }

/* ============ ADMIN DASHBOARD ============ */
.admin-overlay{
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: none;
  overflow-y: auto;
}
.admin-overlay.is-open{ display: block; }

.admin-panel{ max-width: 760px; margin: 0 auto; padding: 24px 20px 80px; }
.admin-topbar{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.admin-topbar h2{ font-family: var(--font-display); font-size: 20px; margin: 0; }

.admin-tabs{ display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab{
  font-family: var(--font-mono); font-size: 12px;
  background: transparent; color: var(--paper-dim);
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.admin-tab.is-active{ background: var(--eclipse); color: var(--paper); border-color: var(--eclipse); }

.admin-panel-body{ display: none; }
.admin-panel-body.is-active{ display: block; }

.admin-form{
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.admin-form-actions{ display: flex; gap: 10px; margin-top: 4px; }

.admin-list{ display: flex; flex-direction: column; gap: 10px; }
.admin-item{
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.admin-item-main{ flex: 1; min-width: 0; }
.admin-item-title{ font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.admin-item-sub{ font-size: 12.5px; color: var(--paper-dim); margin: 0; word-break: break-word; }
.admin-item-actions{ display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.admin-item-actions button{
  font-family: var(--font-mono); font-size: 11px;
  background: transparent; border: 1px solid var(--ink-line); color: var(--paper);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.admin-item-actions button.approve{ border-color: var(--lime); color: var(--lime); }
.admin-item-actions button.reject, .admin-item-actions button.delete{ border-color: var(--scratch); color: var(--scratch); }
.status-badge{
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; margin-left: 8px;
}
.status-pending{ background: rgba(212,255,63,0.12); color: var(--lime); }
.status-approved{ background: rgba(96,255,150,0.12); color: #7dffb0; }
.status-rejected{ background: rgba(255,75,75,0.12); color: var(--scratch); }

/* ============ TOAST ============ */
.toast{
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 13px;
  padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
  z-index: 300; white-space: nowrap;
}
.toast.is-visible{ opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px){
  .topbar{ flex-wrap: wrap; }
  .tabs{ order: 3; width: 100%; }
}
