body {
  margin:0;
  background:#0d0d0d;
  color:#e5e5e5;
  font-family:'JetBrains Mono', monospace;
}

/* ===== HEADER ===== */
header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
  border-bottom:1px solid #222;
  background:#0d0d0d;
  position:sticky;
  top:0;
  z-index:100;
}

.logo {
  color:#ff2e2e;
  font-size:22px;
}

nav a {
  margin-left:20px;
  color:#ff2e2e;
  text-decoration:none;
}

nav a:hover {
  color:#ffffff;
}

.menu-toggle {
  display:none;
  font-size:26px;
  color:#ff2e2e;
  cursor:pointer;
}

/* ===== BANNER ===== */
.banner {
  height:320px;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  background:
    linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)),
    repeating-linear-gradient(
      90deg,
      #111 0px,
      #111 1px,
      transparent 1px,
      transparent 40px
    );
}

.banner-overlay h1 {
  color:#ff2e2e;
  font-size:48px;
  margin:0;
}

.banner-overlay p {
  margin:10px 0 20px;
}

.banner-btn {
  background:#ff2e2e;
  color:white;
  padding:10px 25px;
  text-decoration:none;
}

.banner-btn:hover {
  background:#fff;
  color:#000;
}

/* ===== HERO ===== */
.hero {
  padding:60px 20px;
}

.hero h2 {
  font-size:32px;
}

button {
  background:#ff2e2e;
  border:none;
  padding:12px 25px;
  color:white;
  font-family:inherit;
  cursor:pointer;
}

button:hover {
  background:#ffffff;
  color:#000;
}

.content {
  padding:40px 20px;
}

footer {
  padding:20px;
  border-top:1px solid #222;
  font-size:14px;
  text-align:center;
  color:#777;
}

/* ===== RESPONSIVE ===== */
@media (max-width:768px){

  nav {
    position:absolute;
    top:60px;
    right:0;
    background:#0d0d0d;
    width:100%;
    display:none;
    flex-direction:column;
    border-top:1px solid #222;
  }

  nav.active {
    display:flex;
  }

  nav a {
    margin:15px;
  }

  .menu-toggle {
    display:block;
  }

  .banner {
    height:240px;
  }

  .banner-overlay h1 {
    font-size:32px;
  }

  .hero {
    text-align:center;
  }

  .hero h2 {
    font-size:24px;
  }
}
/* MATRIX CANVAS */
/* #matrix {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-1;
  background:#000;
} */

/* Banner tetap di atas matrix */
/* .banner {
  position: relative;
  z-index: 2;
} */
/* ===== STORE ===== */
.store {
  padding:50px 20px;
  text-align:center;
}

.store h3 {
  color:#ff2e2e;
  margin-bottom:30px;
}

.book-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:25px;
  max-width:1000px;
  margin:auto;
}

.book-card {
  background:#111;
  border:1px solid #222;
  padding:20px;
  border-radius:6px;
  transition:0.3s;
}

.book-card:hover {
  border-color:#ff2e2e;
  transform:translateY(-5px);
}

.book-card img {
  width:100%;
  height:280px;
  object-fit:cover;
  border-radius:4px;
}

.book-card h4 {
  margin:15px 0 5px;
  color:#fff;
}

.book-card p {
  color:#ff2e2e;
  margin-bottom:15px;
}

.buy-btn {
  display:inline-block;
  background:#ff2e2e;
  color:white;
  padding:8px 18px;
  text-decoration:none;
  font-size:14px;
}

.buy-btn:hover {
  background:#fff;
  color:#000;
}
.book-card {
  background:#111;
  border:1px solid #222;
  padding:20px;
  border-radius:6px;
  position:relative;
  transition:0.3s;
}

.price-box {
  margin-bottom:15px;
}

.price-old {
  color:#777;
  text-decoration:line-through;
  font-size:14px;
  margin-right:8px;
}

.price-new {
  color:#ff2e2e;
  font-weight:bold;
  font-size:16px;
}

.badge-sale {
  position:absolute;
  top:10px;
  right:10px;
  background:#ff2e2e;
  color:white;
  font-size:11px;
  padding:3px 7px;
  border-radius:3px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  width: 420px;
  max-width: 90%;
  margin: 10% auto;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  padding: 24px;
  font-family: monospace;
  color: #e5e5e5;
}

.modal-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 1px;
}

.modal-content .subtext {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 14px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  margin-bottom: 12px;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  cursor: pointer;
}

.modal-content button:hover {
  background: #1a1a1a;
}

.warning {
  margin-top: 12px;
  font-size: 11px;
  color: #777;
  text-align: center;
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 20px;
  color: #777;
}

/* ===== MEMBER TABLE ===== */
.member {
  padding: 50px 20px;
  color: #e5e5e5;
}

.member h3 {
  color: #ff2e2e;
  margin-bottom: 25px;
  text-align: center;
}

.table-container {
  overflow-x: auto; /* scroll horizontal di HP */
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* biar tidak terlalu sempit di desktop */
}

thead {
  background: #111;
}

thead th {
  padding: 12px;
  border: 1px solid #222;
  color: #ff2e2e;
  text-align: left;
}

tbody td {
  padding: 12px;
  border: 1px solid #222;
  color: #fff;
}

tbody tr:nth-child(even) {
  background: #1a1a1a;
}

tbody tr:hover {
  background: #ff2e2e33; /* merah transparan */
  cursor: pointer;
}
/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  overflow: auto;
}

.modal-content {
  background: #111;
  border: 1px solid #ff2e2e;
  width: 90%;
  max-width: 400px;
  margin: 5% auto;
  padding: 25px;
  text-align: center;
  border-radius: 6px;
  box-sizing: border-box;
}

.modal-content h3 {
  color: #ff2e2e;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  background: #0d0d0d;
  border: 1px solid #222;
  color: #fff;
  font-family: inherit;
  text-align: center;
  box-sizing: border-box;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background: #ff2e2e;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
}

.modal-content button:hover {
  background: #fff;
  color: #000;
}

.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #ff2e2e;
}

/* Responsive modal */
@media (max-width:480px){
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }
  .modal-content input, .modal-content button {
    font-size: 14px;
  }
}
/* TABLET */
@media (max-width: 1024px) {
  .book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .book-card h4 {
    font-size: 14px;
    text-align: center;
  }

  .price-box {
    font-size: 13px;
  }
}

/* HP */
@media (max-width: 600px) {
  .book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .book-card {
    padding: 10px;
  }

  .book-card img {
    width: 100%;
    height: auto;
  }

  .book-card h4 {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
  }

  .price-box {
    font-size: 12px;
    text-align: center;
  }

  .buy-btn {
    width: 100%;
    font-size: 12px;
    padding: 8px 0;
  }

  .badge-sale {
    font-size: 10px;
    padding: 3px 6px;
  }
}
