/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Background: hitam premium */
  --bg:  #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --bg4: #1f1f1f;

  /* Accent: #FBF6F6 off-white hangat */
  --gold:     #FBF6F6;
  --gold2:    #ffffff;
  --gold3:    #e8e0e0;
  --gold-dim: rgba(251,246,246,0.07);

  --white: #FBF6F6;
  --gray:  #888888;
  --gray2: #555555;

  --red:   #e05555;
  --green: #4caf82;

  --border:  rgba(251,246,246,0.12);
  --border2: rgba(251,246,246,0.06);
  --shadow:  0 12px 48px rgba(0,0,0,0.8);
  --radius: 20px; --radius-sm: 12px; --radius-xs: 8px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--white); min-height: 100vh; overflow-x: hidden; }
.gold { color: var(--gold); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(251,246,246,0.3); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.96); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.8); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 36px;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-icon { color: var(--white); font-size: 22px; opacity: 0.9; }
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--white); font-family: 'Inter', sans-serif; }
.logo-accent { color: var(--white); opacity: 0.6; }
.nav-menu { display: flex; gap: 40px; list-style: none; }
.nav-link {
  color: var(--gray); font-size: 16px; font-weight: 500; letter-spacing: 0.2px;
  cursor: pointer; position: relative; padding-bottom: 5px; transition: color 0.3s; user-select: none;
  font-family: 'Inter', sans-serif;
}
.nav-link::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--white); transition:width 0.3s; border-radius:2px; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.admin-link { color: rgba(251,246,246,0.5) !important; font-size: 17px; }
.admin-link:hover { color: var(--white) !important; }
.hamburger { display:none; flex-direction:column; gap:6px; background:none; border:none; cursor:pointer; padding:4px; }
.hamburger span { display:block; width:26px; height:2px; background:var(--white); border-radius:2px; transition:all 0.3s; }

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(251,246,246,0.05) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 80%, rgba(251,246,246,0.03) 0%, transparent 50%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FBF6F6' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 720px; text-align: center; animation: fadeUp 0.8s ease; }
.hero-sub { font-size: 11px; letter-spacing: 6px; text-transform: uppercase; color: var(--gray); margin-bottom: 20px; font-weight: 500; font-family: 'Inter', sans-serif; }
.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  letter-spacing: -1px;
}
.hero-title em {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--white);
}
.hero-desc { font-size: 17px; color: var(--gray); margin-bottom: 44px; line-height: 1.8; font-family: 'Inter', sans-serif; font-weight: 300; }
.hero-search {
  display: flex; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 28px;
  max-width: 520px; margin-left: auto; margin-right: auto; transition: border-color 0.3s;
}
.hero-search:focus-within { border-color: rgba(251,246,246,0.4); box-shadow: 0 0 0 3px rgba(251,246,246,0.06); }
.hero-search input { flex:1; padding:18px 24px; background:none; border:none; outline:none; color:var(--white); font-family:'Poppins',sans-serif; font-size:16px; }
.hero-search input::placeholder { color: var(--gray2); }
.hero-search button { padding:18px 24px; background:var(--white); border:none; cursor:pointer; font-size:20px; transition:background 0.3s; color:#0a0a0a; }
.hero-search button:hover { background: var(--gold3); }
.hero-filters { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.filter-btn {
  padding: 12px 28px; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--gray); font-family:'Poppins',sans-serif;
  font-size: 16px; cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--white); color: #0a0a0a; border-color: var(--white); font-weight: 700; }
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--gray2); font-size: 11px; letter-spacing: 3px; animation: bounce 2s infinite;
}

/* ===== SECTION ===== */
.section { max-width: 1280px; margin: 0 auto; padding: 80px 28px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}
.section-header h2 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
}
.section-header p { color: var(--gray); font-size: 17px; }

/* ===== FILTER BAR ===== */
.filter-bar { display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 40px; }
.search-input, .filter-select {
  padding: 15px 20px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: 'Poppins',sans-serif; font-size: 16px; outline: none; transition: border-color 0.3s;
}
.search-input { flex:1; min-width:220px; }
.search-input::placeholder { color: var(--gray2); }
.search-input:focus, .filter-select:focus { border-color: var(--gold); }
.filter-select option { background: var(--bg3); }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  animation: fadeUp 0.5s ease both; position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(251,246,246,0.15);
  border-color: rgba(251,246,246,0.2);
}
.product-card.is-sold { cursor: default; }
.product-card.is-sold:hover { transform: none; box-shadow: none; border-color: var(--border2); }

/* Image */
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg3); }
.card-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; color: transparent; }
.product-card:not(.is-sold):hover .card-img-wrap img { transform: scale(1.07); }
.card-img-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size: 72px; background: linear-gradient(145deg, var(--bg3), var(--bg4));
}

/* Sold overlay */
.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  backdrop-filter: blur(3px);
}
.sold-overlay-text {
  font-size: 26px; font-weight: 800; letter-spacing: 4px;
  color: var(--red); border: 2px solid var(--red);
  padding: 10px 28px; border-radius: var(--radius-xs);
  transform: rotate(-8deg);
  text-shadow: 0 0 20px rgba(224,85,85,0.5);
}
.sold-overlay-sub { font-size: 14px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }

/* Badge */
.card-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 50px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.badge-new { background: var(--white); color: #0a0a0a; }

/* Body */
.card-body { padding: 20px 20px 18px; }
.card-merk { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; font-weight: 700; }
.card-name { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--white); line-height: 1.3; font-family: 'Inter', sans-serif; }
.card-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 16px; }
.card-tag {
  font-size: 13px; padding: 5px 14px;
  background: var(--gold-dim); border: 1px solid var(--border);
  border-radius: 50px; color: var(--gray);
}
.card-footer { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.card-price { font-size: 21px; font-weight: 800; color: var(--white); }
.card-ambil {
  padding: 12px 22px; border-radius: var(--radius-sm);
  background: var(--white); color: #0a0a0a;
  border: none; font-family: 'Poppins',sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.5px; white-space: nowrap;
}
.card-ambil:hover { background: var(--gold3); transform: scale(1.05); }
.card-ambil.sold-btn {
  background: transparent; color: var(--red);
  border: 1px solid rgba(224,85,85,0.4); cursor: not-allowed;
  font-size: 11px; padding: 8px 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align:center; padding:100px 24px; color:var(--gray); }
.empty-icon { font-size:72px; margin-bottom:16px; opacity:0.5; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 860px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative;
  animation: scaleIn 0.3s ease;
}
.modal-sm { max-width: 420px; }
.modal-form { max-width: 680px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  background: rgba(255,255,255,0.08); border: none; color: var(--white);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px;
  transition: background 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.18); }

/* Detail modal layout */
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img-wrap {
  aspect-ratio: 3/4; background: var(--bg3);
  border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; position: relative;
}
.modal-img-wrap img { width:100%; height:100%; object-fit:cover; color: transparent; }
.modal-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:90px; }
.modal-sold-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.modal-sold-text {
  font-size: 28px; font-weight: 800; letter-spacing: 5px; color: var(--red);
  border: 3px solid var(--red); padding: 10px 28px; border-radius: var(--radius-xs);
  transform: rotate(-10deg); text-shadow: 0 0 30px rgba(229,62,62,0.6);
}
.modal-info { padding: 36px 32px; display:flex; flex-direction:column; gap:18px; }
.modal-merk { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); font-weight: 700; }
.modal-name { font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--white); font-family: 'Inter', sans-serif; letter-spacing: -0.5px; }
.modal-price { font-size: 34px; font-weight: 800; color: var(--white); }
.modal-tags { display:flex; gap:8px; flex-wrap:wrap; }
.modal-tag { padding:7px 18px; border-radius:50px; background:var(--gold-dim); border:1px solid var(--border); font-size:14px; color:var(--gray); }
.modal-status-badge { display:inline-block; padding:8px 20px; border-radius:50px; font-size:13px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.status-tersedia { background:rgba(76,175,130,0.12); color:var(--green); border:1px solid rgba(76,175,130,0.3); }
.status-sold { background:rgba(224,85,85,0.12); color:var(--red); border:1px solid rgba(224,85,85,0.3); }
.modal-desc { font-size:16px; color:var(--gray); line-height:1.8; flex:1; }
.btn-ambil {
  padding: 18px 28px; border-radius: var(--radius-sm);
  background: var(--white); color: #0a0a0a; border: none;
  font-family: 'Poppins',sans-serif; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ambil:hover { background: var(--gold3); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(251,246,246,0.1); }
.btn-ambil:disabled { background: var(--bg3); color: var(--gray2); cursor: not-allowed; transform: none; box-shadow: none; border: 1px solid var(--border2); }

/* ===== PROFIL ===== */
.profil-card {
  max-width: 620px; margin: 0 auto; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 56px 48px; text-align: center; animation: fadeUp 0.5s ease;
}
.profil-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--white); margin: 0 auto 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.profil-name { font-size: 32px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.profil-tagline { color: var(--gray); font-size: 16px; letter-spacing: 1px; }
.profil-divider { width: 60px; height: 1px; background: var(--border); margin: 28px auto; border-radius: 2px; }
.profil-desc { color: var(--gray); font-size: 16px; line-height: 1.9; margin-bottom: 36px; }
.profil-contacts { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom: 40px; }
.contact-btn {
  padding: 15px 30px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.contact-btn.whatsapp { background:rgba(37,211,102,0.12); color:#25d366; border:1px solid rgba(37,211,102,0.3); }
.contact-btn.whatsapp:hover { background:rgba(37,211,102,0.22); transform:translateY(-2px); }
.contact-btn.instagram { background:rgba(225,48,108,0.12); color:#e1306c; border:1px solid rgba(225,48,108,0.3); }
.contact-btn.instagram:hover { background:rgba(225,48,108,0.22); transform:translateY(-2px); }
.profil-stats { display:flex; border-top:1px solid var(--border); padding-top:32px; }
.stat { flex:1; text-align:center; }
.stat:not(:last-child) { border-right:1px solid var(--border); }
.stat-num { display:block; font-size:36px; font-weight:800; color:var(--white); }
.stat-label { font-size:14px; color:var(--gray); letter-spacing:0.5px; }

/* ===== ADMIN PANEL ===== */
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.admin-header h2 { font-size: 32px; font-weight: 700; }
.btn-gold {
  padding: 14px 32px; border-radius: var(--radius-sm);
  background: var(--white); color: #0a0a0a; border: none;
  font-family: 'Poppins',sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}
.btn-gold:hover { background: var(--gold3); transform: translateY(-1px); }
.btn-outline {
  padding: 12px 28px; border-radius: var(--radius-sm);
  background: transparent; color: var(--gray); border: 1px solid var(--border);
  font-family: 'Poppins',sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--bg3); }
.admin-table th {
  padding: 18px 20px; text-align: left; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
  font-weight: 700; white-space: nowrap;
}
.admin-table td { padding: 18px 20px; font-size: 15px; border-top: 1px solid var(--border2); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-prod-info { display:flex; align-items:center; gap:14px; }
.admin-prod-img {
  width: 52px; height: 52px; border-radius: var(--radius-xs);
  object-fit: cover; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0; overflow: hidden;
}
.admin-prod-img img { width:100%; height:100%; object-fit:cover; }
.admin-prod-name { font-weight: 600; font-size: 16px; }
.admin-prod-merk { font-size: 12px; color: var(--gray); letter-spacing: 1px; }
.status-toggle {
  padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; cursor: pointer; border: none; transition: all 0.3s;
  font-family: 'Poppins',sans-serif;
}
.status-toggle.tersedia { background:rgba(76,175,130,0.15); color:var(--green); border:1px solid rgba(76,175,130,0.3); }
.status-toggle.tersedia:hover { background:rgba(224,85,85,0.15); color:var(--red); border-color:rgba(224,85,85,0.3); }
.status-toggle.sold { background:rgba(224,85,85,0.15); color:var(--red); border:1px solid rgba(224,85,85,0.3); }
.status-toggle.sold:hover { background:rgba(76,175,130,0.15); color:var(--green); border-color:rgba(76,175,130,0.3); }
.action-btns { display:flex; gap:8px; }
.btn-edit {
  padding: 9px 18px; border-radius: var(--radius-xs);
  background: var(--gold-dim); color: var(--white);
  border: 1px solid var(--border); font-family:'Poppins',sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.btn-edit:hover { background: var(--white); color: #0a0a0a; }
.btn-delete {
  padding: 9px 16px; border-radius: var(--radius-xs);
  background: rgba(224,85,85,0.1); color: var(--red);
  border: 1px solid rgba(224,85,85,0.25); font-family:'Poppins',sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.btn-delete:hover { background: rgba(224,85,85,0.25); }

/* ===== LOGIN BOX ===== */
.login-box { padding: 40px 36px; text-align: center; display:flex; flex-direction:column; gap:16px; }
.login-icon { font-size: 40px; color: var(--white); }
.login-box h3 { font-size: 26px; font-weight: 700; }
.login-box p { color: var(--gray); font-size: 16px; }
.login-input {
  padding: 16px 20px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: 'Poppins',sans-serif; font-size: 16px; outline: none;
  transition: border-color 0.3s; width: 100%;
}
.login-input:focus { border-color: rgba(251,246,246,0.4); }
.login-hint { font-size: 12px; color: var(--gray2); }
.login-hint code { color: var(--white); background: var(--gold-dim); padding: 2px 8px; border-radius: 4px; }

/* ===== FORM ===== */
.form-box { padding: 36px 32px; }
.form-box h3 { font-size: 26px; font-weight: 700; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.form-full { grid-column: 1 / -1; }
.form-group { display:flex; flex-direction:column; gap:8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray); letter-spacing: 0.5px; text-transform: uppercase; }
.form-input {
  padding: 14px 18px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-xs); color: var(--white);
  font-family: 'Poppins',sans-serif; font-size: 15px; outline: none;
  transition: border-color 0.3s; width: 100%;
}
.form-input:focus { border-color: rgba(251,246,246,0.35); }
.form-input option { background: var(--bg3); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-actions { display:flex; gap:12px; justify-content:flex-end; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--bg3); border: 1px solid rgba(251,246,246,0.2);
  color: var(--white); padding: 16px 36px; border-radius: var(--radius-sm);
  font-size: 16px; z-index: 9999; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9998; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px;
}
.loading-overlay.hidden { display: none; }
.loader-ring { width:52px; height:52px; border:3px solid var(--border); border-top-color:var(--white); border-radius:50%; animation:spin 0.8s linear infinite; }
.loader p { color: var(--gray); font-size: 15px; letter-spacing: 2px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(10px); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 80px; left: 0; right: 0;
    background: rgba(10,10,10,0.98); flex-direction: column; gap: 0;
    padding: 12px 0; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.3s; backdrop-filter: blur(20px);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { padding: 16px 32px; }
  .hamburger { display: flex; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img-wrap { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4/3; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
  .profil-card { padding: 36px 22px; }
  .filter-bar { flex-direction: column; }
  .search-input { min-width: unset; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4),
  .admin-table th:nth-child(5), .admin-table td:nth-child(5) { display: none; }
}

/* ===== CHECKOUT MODAL ===== */
.modal-checkout { max-width: 820px; }
.checkout-box {
  display: grid; grid-template-columns: 1fr 1.2fr;
}

/* Kiri — info produk */
.checkout-product {
  background: var(--bg3);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid var(--border2);
}
.co-img {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; overflow: hidden;
}
.co-img img { width: 100%; height: 100%; object-fit: cover; }
.co-merk { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.co-nama { font-size: 18px; font-weight: 700; font-family: 'Inter', sans-serif; line-height: 1.3; }
.co-harga { font-size: 24px; font-weight: 800; color: var(--white); }
.co-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.co-tag { font-size: 11px; padding: 4px 12px; background: var(--gold-dim); border: 1px solid var(--border); border-radius: 50px; color: var(--gray); }

/* Kanan — form */
.checkout-form {
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 6px;
}
.checkout-step { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gray); font-weight: 500; margin-bottom: 4px; }
.checkout-title { font-size: 22px; font-weight: 700; font-family: 'Inter', sans-serif; margin-bottom: 20px; }
.checkout-fields { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.btn-pesan {
  margin-top: 20px; padding: 16px;
  background: var(--white); color: #0a0a0a;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; width: 100%;
}
.btn-pesan:hover { background: var(--gold3); transform: translateY(-1px); }
.btn-pesan:disabled { background: var(--bg3); color: var(--gray2); cursor: not-allowed; transform: none; }
.checkout-note { font-size: 12px; color: var(--gray2); text-align: center; margin-top: 10px; line-height: 1.6; }

/* Success state */
.checkout-success {
  padding: 60px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.success-icon { font-size: 56px; }
.success-title { font-size: 28px; font-weight: 700; font-family: 'Inter', sans-serif; }
.success-desc { font-size: 17px; color: var(--gray); line-height: 1.7; max-width: 360px; }
.success-detail {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 28px;
  text-align: left; width: 100%; max-width: 400px;
}
.success-detail p { font-size: 15px; color: var(--gray); margin-bottom: 6px; }
.success-detail p span { color: var(--white); font-weight: 600; }
.btn-tutup {
  padding: 15px 48px; border-radius: var(--radius-sm);
  background: var(--white); color: #0a0a0a;
  border: none; font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.btn-tutup:hover { background: var(--gold3); }

@media (max-width: 640px) {
  .checkout-box { grid-template-columns: 1fr; }
  .checkout-product { border-radius: var(--radius) var(--radius) 0 0; border-right: none; border-bottom: 1px solid var(--border2); }
  .co-img { aspect-ratio: 16/9; }
}
