/* ==========================================================================
   SEDARA MARKETPLACE - MODERN & LUXURY THEME
   ========================================================================== */

:root {
  /* Color Palette */
  --ivory: #faf7f2;
  --ink: #11100f;
  --gold: #b89453;
  --gold-hover: #9c7b3f;
  --gold-light: #f6f1e7;
  --muted: #7a736a;
  --line: #e8e2d8;
  --card: #ffffff;
  --danger: #d9534f;
  --success: #2e7d32;
  
  /* Elevation & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(31, 29, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 29, 26, 0.08);
  --shadow-lg: 0 16px 32px rgba(31, 29, 26, 0.12);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   1. Base & Reset Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font: 400 15px/1.6 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   2. Header & Topbar Navigation
   -------------------------------------------------------------------------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 6vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  font: 600 26px/1 'Cormorant Garamond', serif;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}

.brand span {
  color: var(--gold);
}

.topbar nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.topbar nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.topbar nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.topbar nav a:hover {
  color: var(--gold);
}

.topbar nav a:hover::after {
  width: 100%;
}

.who {
  color: var(--muted);
  font-size: 13px;
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(184, 148, 83, 0.2);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Main Content & Layout Containers
   -------------------------------------------------------------------------- */
main {
  padding: 24px 3vw 64px; /* Padding kiri-kanan dikurangi dari 6vw jadi 3vw */
  min-height: 75vh;
  max-width: 1680px;      /* Ditingkatkan dari 1400px agar memanfaatkan layar lebar */
  margin: 0 auto;
}

footer {
  padding: 24px 6vw;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Typography & Flash Messages
   -------------------------------------------------------------------------- */
.judul {
  font: 600 36px/1.15 'Cormorant Garamond', serif;
  margin: 8px 0 20px;
  letter-spacing: -0.01em;
}

h3 {
  font: 600 22px/1.2 'Cormorant Garamond', serif;
  margin: 28px 0 12px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

.flash {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   5. Hero Banner
   -------------------------------------------------------------------------- */
.hero {
  height: 340px;
  background: linear-gradient(90deg, rgba(31, 29, 26, 0.3) 0%, rgba(31, 29, 26, 0) 100%), #e9e6e0 center/cover no-repeat;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8vw;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-text {
  text-align: right;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 28px 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.hero-text p {
  color: var(--gold);
  letter-spacing: 0.25em;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero-text h1 {
  font: 600 44px/1.05 'Cormorant Garamond', serif;
  margin: 0;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   6. Form Controls & Inputs
   -------------------------------------------------------------------------- */
.filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter input[type=search] {
  flex: 1;
  min-width: 260px;
}

input, select, textarea, button {
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 148, 83, 0.15);
}

/* Buttons */
.btn, button.btn {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn:hover, button.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-kecil {
  background: var(--gold-light);
  color: var(--ink) !important;
  border: 1px solid var(--gold);
  padding: 10px 28px !important; /* Memaksa padding lebih lega */
  min-width: 100px; /* Menjaga lebar tombol agar tidak tertekan */
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-kecil:hover {
  background: var(--gold);
  color: #ffffff !important;
  border-color: var(--gold);
}

.ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost:hover {
  background: var(--ivory);
  border-color: var(--gold);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   7. Product Grid & Cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 148, 83, 0.4);
  box-shadow: var(--shadow-md);
}

.thumb {
  aspect-ratio: 3/4;
  background: #eee6da;
  overflow: hidden;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.harga {
  font-weight: 600;
  color: var(--gold-hover);
  font-size: 16px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--gold);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. Product Detail Page
   -------------------------------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.detail-img {
  aspect-ratio: 3/4;
  background: #eee6da;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sizes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sz {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.sz:hover {
  border-color: var(--gold);
}

.sz.habis {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f5f5;
}

.sz input {
  margin-right: 8px;
  accent-color: var(--gold);
}

.qty {
  width: 100px;
}

/* --------------------------------------------------------------------------
   9. Tables & Data Display
   -------------------------------------------------------------------------- */
.tabel {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.tabel th {
  background: var(--ivory);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.tabel td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tabel tr:last-child td {
  border-bottom: none;
}

.tabel tr:hover td {
  background-color: var(--ivory);
}

.inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 2px 4px 2px 0;
}

.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-hover);
}

/* --------------------------------------------------------------------------
   10. Checkout & Forms Layout
   -------------------------------------------------------------------------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.form.kecil {
  max-width: 400px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.ringkasan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  align-self: start;
  box-shadow: var(--shadow-sm);
}

.baris {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.kotak {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.status {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-hover);
  border: 1px solid rgba(184, 148, 83, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Progress Tracker & Logs
   -------------------------------------------------------------------------- */
.progres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.kartu-progres {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.kartu-progres strong {
  display: block;
  font-size: 26px;
  color: var(--ink);
}

.kartu-progres span {
  font-size: 13px;
  color: var(--muted);
}

.log {
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}

.log li {
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   12. Admin Kanban Board (Papan Progres)
   -------------------------------------------------------------------------- */
.papan {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.kolom-papan {
  background: #f3ead8;
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 160px;
  border: 1px solid var(--line);
}

.kolom-papan h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.badge {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}

.kartu-pesanan {
  display: block;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}

.kartu-pesanan:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kartu-pesanan span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .papan {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .detail, .checkout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero {
    height: 260px;
    justify-content: center;
    padding: 0 5vw;
    background-position: 30% center;
  }
  
  .hero-text {
    max-width: 100%;
    text-align: center;
    padding: 20px;
  }
  
  .hero-text h1 {
    font-size: 32px;
  }
  
  .topbar {
    padding: 12px 5vw;
  }
  
  .tabel {
    font-size: 13px;
  }
}

/* Styling Search & Nav Elements di Header */
.topbar-search {
  flex: 1;
  max-width: 380px;
  margin: 0 16px;
}

.topbar-search input[type="search"] {
  width: 100%;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 4px;
  transition: var(--transition);
}

.nav-icon:hover {
  color: var(--gold);
}

.topbar .divider {
  color: var(--line);
  font-weight: 300;
  margin: 0 2px;
}

/* Layout Topbar & Navigasi Kiri */
.header-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 10px;
}

.header-nav-left a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}

/* Dropdown Kategori Dinamis */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card);
  min-width: 160px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  z-index: 200;
  padding: 6px 0;
  margin-top: 8px;
}

.dropdown-content a {
  color: var(--ink);
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: var(--gold-light);
  color: var(--gold-hover);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Penyesuaian Posisi Search Bar di Kanan */
/* Styling Header Topbar Single Line */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 5vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Search Bar di Tengah */
.topbar-search {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
}

.topbar-search input[type="search"] {
  width: 100%;
  padding: 8px 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Navigasi Kanan */
.topbar nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

.topbar nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: var(--transition);
}

.topbar nav a:hover {
  color: var(--gold);
}

/* Dropdown Kategori */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-btn:hover {
  color: var(--gold);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  z-index: 200;
  padding: 6px 0;
  margin-top: 8px;
}

.dropdown-content a {
  color: var(--ink);
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
}

.dropdown-content a:hover {
  background-color: var(--gold-light);
  color: var(--gold-hover);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Badge Keranjang */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 99px;
  padding: 2px 5px;
  line-height: 1;
}

.topbar .divider {
  color: var(--line);
  font-weight: 300;
}


/* ==========================================================================
   LAYOUT KATALOG (SIDEBAR FILTER DI KIRI + GRID PRODUK DI KANAN)
   ========================================================================== */
.katalog-container {
  display: grid;
  grid-template-columns: 260px 1fr; /* 260px untuk Filter Kiri, sisa layar untuk Produk */
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.sidebar-filter {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px; /* Ikut melayang saat halaman di-scroll */
}

.produk-content {
  min-width: 0; /* Mencegah overflow grid di layar ketat */
}

/* Responsif untuk Layar Tablet/Mobile (kembali 1 kolom) */
@media (max-width: 850px) {
  .katalog-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar-filter {
    position: static;
  }
}


/* Styling Button Trigger Keranjang */
.cart-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 4px;
}

/* Background Overlay saat Drawer Terbuka */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Cart Drawer Panel (1/4 Halaman Kanan) */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px; /* Sembunyi di luar layar kanan */
  width: 380px;
  max-width: 85vw;
  height: 100vh;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0; /* Slide ke kanan layar */
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  margin: 0;
  font-size: 20px;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-drawer-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item-img {
  width: 60px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--ivory);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.harga-item {
  font-weight: 600;
  color: var(--gold-hover);
  font-size: 14px;
  margin-top: 4px;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 16px;
}


/* Button Navigasi sebagai pengganti tag a */
.nav-link-btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.nav-link-btn:hover {
  color: var(--gold);
}

/* Tombol Google Login */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #d2e3fc;
}

/* Garis Pemisah "atau" */
.drawer-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-divider::before,
.drawer-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.drawer-divider span {
  padding: 0 10px;
}

/* Form Styling di Drawer */
.form-drawer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-drawer label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.form-drawer input {
  width: 100%;
}


/* ==========================================================================
   USER DROPDOWN FIX (PADDING & SPACING)
   ========================================================================== */
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px; /* Lebarkan sedikit agar teks email & menu lega */
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 200;
  padding: 12px 0 !important;
  margin-top: 10px;
}

.user-dropdown-menu.open {
  display: block;
}

/* Header Profil (Nama & Email) */
.user-dropdown-header {
  padding: 8px 18px 12px 18px !important;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.user-dropdown-header strong {
  font-size: 14px;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}

.user-dropdown-header span {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

/* Link Menu dalam Dropdown */
.user-dropdown-menu a {
  display: block !important;
  padding: 10px 18px !important; /* Memberi ruang space kanan & kiri 18px */
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
  transition: var(--transition);
}

.user-dropdown-menu a:hover {
  background-color: var(--gold-light) !important;
  color: var(--gold-hover) !important;
}

/* Informasi Poin */
.user-dropdown-item-info {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  color: var(--muted);
  background: var(--ivory);
  margin: 6px 0 !important;
}

.user-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer !important; /* Memastikan kursor berubah jadi kursor jari */
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: var(--transition);
}

/* Garis Pemisah */
.dropdown-divider {
  height: 1px;
  background-color: var(--line);
  margin: 8px 0 !important;
}