/* ===========================================
   VARIABEL WARNA & THEME
=========================================== */
:root {
  --primary-red: #d10000;      /* Merah utama yang kuat */
  --dark-red: #900;            /* Merah tua untuk aksen */
  --blood-red: #b30000;        /* Merah darah untuk hover */
  --jet-black: #0a0a0a;        /* Hitam pekat */
  --deep-black: #111;          /* Hitam untuk background */
  --charcoal: #1a1a1a;         /* Hitam terang untuk card */
  --metal-gray: #222;          /* Abu-abu metalik */
  --light-gray: #333;          /* Abu-abu terang */
  --silver: #ddd;              /* Perak untuk teks */
  --gold: #ffd700;             /* Emas untuk aksen premium */
}

/* ===========================================
   RESET & BASE
=========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* BACKGROUND GLOBAL - GRADIEN MERAH HITAM */
body {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
  color: #ebebeb;
  min-height: 100vh;
  overflow-x: hidden;
}

/* TEXTURE OVERLAY - MENAMBAHKAN TEKSTUR METALIK */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(209, 0, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(209, 0, 0, 0.03) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.1) 70%);
  z-index: -2;
}

/* GLOW EFFECT PADA BACKGROUND */
body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(209, 0, 0, 0.1) 0%, transparent 70%);
  z-index: -3;
  animation: pulseGlow 20s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(1.1); }
}

/* ===========================================
   HEADER - MERAH HITAM INTENS
=========================================== */
.header {
  background: linear-gradient(to bottom, #0a0a0a 0%, #1a0000 100%);
  border-bottom: 3px solid var(--primary-red);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(209, 0, 0, 0.3);
}

.header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.header .logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px rgba(209, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.header .logo:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 25px rgba(209, 0, 0, 0.8);
}

.header h1 {
  font-size: 21px;
  margin-bottom: 4px;
  background: linear-gradient(to right, #fff 0%, #ff9999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header .tag {
  font-size: 13px;
  color: #bbb;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* NAVIGASI - BUTTON STYLE AGGRESSIVE */
/* NAVBAR SIMPLE TAPI KEREN */
.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 2px solid #900;
}

.nav a {
    padding: 8px 16px;
    background: #111;
    border: 2px solid #900;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.nav a:hover {
    background: #900;
    transform: translateY(-2px);
}

/* Login button khusus */
.nav .btn-member-login {
    background: linear-gradient(to right, #900, #b00);
    margin-left: auto;
}

.nav .btn-member-login:hover {
    background: linear-gradient(to right, #b00, #d00);
}

/* Responsif */
@media (max-width: 768px) {
    .nav {
        justify-content: center;
    }
    
  .nav .btn-member-login {
    margin-left: 0;
    margin-top: 4px;
    width: 33%;
    text-align: center;
  }
}

/* ===========================================
   BUTTON STYLING - AGGRESSIVE RED
=========================================== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(209, 0, 0, 0.3);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, var(--blood-red) 0%, var(--primary-red) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(209, 0, 0, 0.5);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.btn.ghost:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* ===========================================
   CARD DESIGN - DARK WITH RED ACCENTS
=========================================== */
.card {
  background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
  padding: 28px;
  border-radius: 12px;
  margin: 30px 0;
  border: 1px solid rgba(209, 0, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-red) 0%, var(--dark-red) 100%);
}

.card h2 {
  margin-bottom: 20px;
  font-size: 22px;
  padding-left: 15px;
  color: #fff;
  border-left: 5px solid var(--primary-red);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* COLLAPSE BUTTON STYLING */
.min-btn {
  float: right;
  font-size: 14px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.min-btn:hover {
  background: linear-gradient(135deg, var(--blood-red) 0%, var(--primary-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(209, 0, 0, 0.4);
}

/* ===========================================
   SLIDER FIXED - RED THEME
=========================================== */
.slider-wrappers {
  width: 100%;
  margin-top: 20px;
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 3px solid rgba(209, 0, 0, 0.3);
  box-shadow: 0 0 30px rgba(209, 0, 0, 0.2);
}

.slide-fixed {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}

.slide-fixed .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.slide-fixed .title {
  font-size: 24px;
  font-weight: 900;
  color: white;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
}

/* ===========================================
   HERO SECTION - BLOOD RED THEME
=========================================== */
#hero .card {
  background: linear-gradient(145deg, #1a0000 0%, #0a0a0a 100%);
  border: 2px solid rgba(209, 0, 0, 0.4);
  text-align: center;
  padding: 40px 30px;
}

#hero h2 {
  font-size: 36px;
  font-weight: 900;
  margin: 10px 0;
  background: linear-gradient(to right, #fff 0%, #ff6666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: none;
  padding: 0;
}

#hero p {
  font-size: 18px;
  color: #ccc;
  margin: 8px 0;
}

#hero h3 {
  color: #ffdddd;
  margin-top: 20px;
  font-size: 24px;
  text-shadow: 0 2px 8px rgba(209, 0, 0, 0.5);
}

/* ===========================================
   GRID ITEMS - KEGIATAN & BERITA
=========================================== */
.grid {
  display: grid;
  gap: 24px !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-item {
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(209, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 10px 30px rgba(209, 0, 0, 0.2);
}

.card-item img.zoom-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(209, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.card-item img.zoom-img:hover {
  transform: scale(1.05);
}

.card-item h3 {
  font-size: 20px;
  color: #fff;
  margin-top: 10px;
}

.card-item p {
  color: #bbb;
  flex-grow: 1;
  line-height: 1.6;
}

.card-item .btn {
  align-self: flex-start;
  margin-top: 10px;
}

/* ===========================================
   STRUKTUR ORGANISASI - RED & BLACK PYRAMID
=========================================== */
.pyramid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}

.pyramid-level {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.p-node {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a0000 100%);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  max-width: 280px;
  border: 2px solid rgba(209, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.p-node:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 12px 35px rgba(209, 0, 0, 0.3);
}

.p-node img.photo {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid rgba(209, 0, 0, 0.5);
  margin-bottom: 15px;
}

.p-node .meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-node .name {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 5px;
}

.p-node .jab {
  color: #bbb;
  font-size: 14px;
}

.connector-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--primary-red) 0%, transparent 100%);
}

/* ===========================================
   MERCHANDISE SECTION
=========================================== */
.product {
  background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(209, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  height: 100%;
}

.product:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 12px 30px rgba(209, 0, 0, 0.25);
}

.product img.embuh {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(209, 0, 0, 0.3);
}

.product h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-top: 5px;
}

.product .muted {
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 800;
}

.product p {
  color: #bbb;
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.buy-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.cart.card {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a0000 100%);
  margin-top: 30px;
  border: 2px solid rgba(209, 0, 0, 0.3);
}

/* ===========================================
   FORM STYLING
=========================================== */
form input, form select, form textarea {
  width: 100%;
  padding: 14px 16px;
  margin: 12px 0;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(209, 0, 0, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  background: rgba(15, 15, 15, 0.9);
  box-shadow: 0 0 15px rgba(209, 0, 0, 0.2);
}

/* ===========================================
   MODAL STYLING
=========================================== */
#zoomModal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
}

#zoomModal img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
  border: 3px solid rgba(209, 0, 0, 0.5);
  box-shadow: 0 0 40px rgba(209, 0, 0, 0.4);
}

#productModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

#productModal > div {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a0000 100%);
  padding: 25px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  border: 2px solid rgba(209, 0, 0, 0.4);
  box-shadow: 0 15px 50px rgba(209, 0, 0, 0.3);
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */
@media (max-width: 768px) {
  .slider-wrappers {
    height: 220px;
    border-radius: 12px;
  }
  
  .slide-fixed .title {
    font-size: 14px;
  }
  
  .header h1 {
    font-size: 14px;
  }
  
  .nav {
    gap: 5px;
    justify-content: center;
  }
  
  .nav a {
    padding: 5px 12px;
    font-size: 13px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
  }
  
  .card-item img.zoom-img {
    height: 180px;
  }
  
  .p-node {
    min-width: 150px;
    max-width: 200px;
    padding: 15px;
  }
  
  .p-node img.photo {
    width: 80px;
    height: 80px;
  }
  
  #hero h2 {
    font-size: 28px;
  }
  
  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .slider-wrappers {
    height: 180px;
  }
  
  .slide-fixed .title {
    font-size: 16px;
    padding: 10px;
  }
  
  .brand {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .header .logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .pyramid-level {
    gap: 15px;
  }
  
  .p-node {
    min-width: 130px;
    max-width: 150px;
    padding: 12px;
  }
  
  .p-node img.photo {
    width: 70px;
    height: 70px;
  }
  
  .product img.embuh {
    height: 160px;
  }
}

/* ===========================================
   ANIMATIONS & EFFECTS
=========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .card-item, .product, .p-node {
  animation: fadeIn 0.6s ease-out;
}

/* SECTION EXPAND/COLLAPSE ANIMATION */
.section-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.section-expanded {
  max-height: 9999px !important;
  opacity: 1 !important;
}

.section-collapsed {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ===========================================
   SCROLLBAR STYLING
=========================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-red) 0%, var(--dark-red) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--blood-red) 0%, var(--primary-red) 100%);
}


/* ===========================================
   WRAP & TABLE — MISSING GLOBALS
=========================================== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* Legacy table class (used in older pages) */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ff6666;
  background: #1a0000;
  border-bottom: 2px solid #d10000;
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  font-size: 14px;
  color: #ebebeb;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.table tbody tr:hover { background: rgba(209,0,0,0.06); }

/* Small button variant */
.btn.small, .btn.sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Success message */
.success {
  background: #0a2a0a;
  border: 1px solid #2a6a2a;
  color: #6f6;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Muted text */
.muted { color: #888; }

@media (max-width: 768px) {
  .wrap { padding: 16px 12px; }
}
