@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,700&family=Great+Vibes&display=swap');


:root{
  --bg: #0b141a;
  --panel: #0f1c23;
  --panel2:#0d1720;
  --card:#ffffff;
  --muted:#7b8a97;
  --text:#13212b;
  --line:#e8eef3;

  --sb:#08313a;
  --sb2:#062a32;

  --primary:#1aa0b7;
  --primary2:#118aa0;

  --green:#26a65b;
  --green2:#1f8a4b;

  --gold:#c6a35e;
  --gold2:#b58f47;

  --danger:#e5484d;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --shadow2: 0 14px 40px rgba(0,0,0,.16);
}



*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: linear-gradient(180deg, #0a141a, #0b1014 70%);
  color:#eaf2f7;
  overflow-x:hidden;
}

/* ===== LAYOUT ===== */
.sb{
  position:fixed; inset:0 auto 0 0;
  width:86px;
  background: linear-gradient(180deg, var(--sb), var(--sb2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 40px rgba(0,0,0,.25);
  display:flex; flex-direction:column;
  z-index:20;
}

.main{
  margin-left:86px;
  min-height:100vh;
  padding:18px 18px 10px;
}

@media (min-width: 1000px){
  .sb{width:92px}
  .main{margin-left:92px; padding:22px 22px 12px;}
}

/* ===== SIDEBAR ===== */
.sb-brand{
  display:flex; align-items:center; gap:12px;
  padding:18px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sb-logo{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  color:#fff; font-weight:800;
}
.sb-title{display:none}
.sb-name{font-weight:800; letter-spacing:.8px}
.sb-sub{font-size:12px; color:rgba(255,255,255,.7)}

@media (min-width: 1200px){
  .sb{width:220px}
  .main{margin-left:220px}
  .sb-title{display:block}
}

.sb-nav{padding:14px 10px; display:flex; flex-direction:column; gap:8px}
.sb-item{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:14px;
  color:rgba(255,255,255,.86);
  text-decoration:none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  transition:.18s;
}
.sb-item:hover{transform:translateY(-1px); background:rgba(255,255,255,.09)}
.sb-item.is-active{
  background: rgba(26,160,183,.18);
  border-color: rgba(26,160,183,.35);
}
.sb-ico{width:34px; text-align:center; font-size:18px}
.sb-text{display:none}
@media (min-width:1200px){ .sb-text{display:block} }

.sb-footer{margin-top:auto; padding:12px}
.sb-btn{
  width:100%;
  border:0;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

/* ===== TOPBAR ===== */
.topbar{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px;
  padding:10px 6px 16px;
}
.crumb{font-size:12px; color:rgba(255,255,255,.68)}
.page-title{margin:4px 0 0; font-size:22px; letter-spacing:.2px}
.topbar-right{display:flex; align-items:center; gap:12px}

.search{position:relative}
.search input{
  width: min(420px, 52vw);
  padding:12px 40px 12px 14px;
  border-radius:14px;
  border: 1px solid rgba(255,255,255,.10);
  outline:none;
  background: rgba(255,255,255,.06);
  color:#fff;
}
.search input::placeholder{color:rgba(255,255,255,.55)}
.search-ico{
  position:absolute; right:12px; top:50%;
  transform:translateY(-50%);
  opacity:.8;
}

.userchip{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.avatar{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.12);
  font-weight:800;
}
.userchip-name{font-weight:800; font-size:13px}
.userchip-sub{font-size:12px; color:rgba(255,255,255,.7)}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap:18px;
  padding:6px;
}
@media (min-width: 900px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (min-width: 1400px){
  .grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}

/* ===== CARD ===== */
.card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow2);
}

.cover{
  position:relative;
  height: 210px;
  background: #0b0f12;
}
.cover img{
  width:100%; height:100%; object-fit:cover;
  display:block;
  filter:saturate(1.04) contrast(1.02);
}
.cover::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38));
}
.badge{
  position:absolute; right:12px; bottom:12px;
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  color:#fff;
  font-weight:800;
}
.badge .dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  box-shadow: 0 0 0 4px rgba(198,163,94,.15);
}

.card-body{
  background:#fff;
  color:var(--text);
  padding:14px 14px 16px;
}
.card-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.title{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#0e2430;
}
.smallnote{
  font-size:12px;
  color:#6b7a86;
  margin:6px 0 0;
}

.row-actions{
  display:flex; gap:10px;
  margin-top:12px;
}
.btn{
  border:0; cursor:pointer;
  border-radius:12px;
  padding:11px 12px;
  font-weight:800;
  font-size:13px;
  display:inline-flex;
  align-items:center; justify-content:center;
  gap:8px;
  text-decoration:none;
  transition:.16s;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
}
.btn.success{
  background: linear-gradient(180deg, var(--green), var(--green2));
  color:#fff;
}
.btn.ghost{
  background: #fff;
  color:#0f2a36;
  border: 1px solid #dce7ef;
}
.btn.danger{
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color:#fff;
}
.btn.small{padding:10px 12px; border-radius:12px}

.meta{
  margin-top:12px;
  border-top: 1px solid var(--line);
  padding-top:12px;
  display:grid;
  gap:8px;
}
.meta .mrow{
  display:grid;
  grid-template-columns: 130px 8px 1fr;
  gap:10px;
  align-items:center;
  font-size:13px;
}
.meta .k{color:#5e6b76; font-weight:700}
.meta .v{color:#0f2733; font-weight:800}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#eef6ff;
  border:1px solid #d7e7ff;
  color:#134b78;
}
.pill.on{background:#ecfdf5; border-color:#bbf7d0; color:#166534}
.pill.off{background:#fff1f2; border-color:#fecdd3; color:#9f1239}

.tools{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.tools .btn{flex:1 1 130px}
.tools .btn.ghost{background:#f8fbff}

.foot{
  padding:18px 10px;
  color:rgba(255,255,255,.55);
  font-size:12px;
}

/* ===== MODAL ===== */
.modal{position:fixed; inset:0; display:none; z-index:50}
.modal.is-open{display:block}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.modal-card{
  position:relative;
  width: min(520px, calc(100% - 28px));
  margin: 10vh auto 0;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  background: #fff;
  color: var(--text);
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  border-bottom:1px solid var(--line);
}
.modal-title{font-weight:1000; font-size:16px}
.modal-sub{font-size:12px; color:#6c7a86; margin-top:2px}
.iconbtn{
  width:38px;height:38px;border-radius:12px;
  border:1px solid var(--line);
  background:#fff; cursor:pointer;
  font-weight:900;
}
.modal-body{padding:14px 16px 16px}

.lbl{display:block; font-size:12px; color:#5b6a76; font-weight:800; margin-bottom:8px}
.copyrow{display:flex; gap:10px}
.copyinp{
  flex:1;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fbfdff;
  font-weight:800;
  color:#0f2733;
}

.share-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.share-actions .btn{flex:1}
.btn.wa{
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color:#fff;
}
.note{
  margin-top:12px;
  font-size:12px;
  color:#5b6a76;
  background:#f6fbff;
  border:1px solid #e3f0ff;
  padding:10px 12px;
  border-radius:14px;
}

.sb-footer{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
}

/* ===== AKUN SECTION (mirip MENU) ===== */

.sb-acc-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 6px 10px;
  margin-bottom:6px;
}

.sb-acc-logo{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.10);
  font-weight:900;
  color:#fff;
  flex:0 0 auto;
}

.sb-acc-title{
  line-height:1.1;
}

.sb-acc-name-title{
  font-weight:900;
  letter-spacing:.8px;
  color:#fff;
}

.sb-acc-subtitle{
  font-size:12px;
  color:rgba(255,255,255,.65);
}

/* box akun */
.sb-account{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom:12px;
}

.sb-acc-ico{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.12);
  font-weight:900;
  color:#fff;
}

.sb-acc-text{
  line-height:1.15;
}

.sb-acc-name{
  font-weight:900;
  font-size:14px;
  color:#fff;
}

.sb-acc-sub{
  font-size:12px;
  color:rgba(255,255,255,.70);
  margin-top:4px;
}

/* jarak antar tombol akun */
.sb-acc-actions{
  display:flex;
  flex-direction:column;
  gap:10px; /* <<< JARAK Profil Akun & Login */
}

/* ===== AKUN: samakan dengan header MENU ===== */
.sb-footer{
  margin-top:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* pakai style sb-brand tapi posisinya di bawah */
.sb-brand-account{
  padding:14px 10px 10px;          /* mirip sb-brand */
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 0;
}

/* tombol akun jaraknya rapi */
.sb-acc-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
/* ===== Samakan jarak menu AKUN dengan menu atas ===== */
.sb-acc-actions{
  display: flex;
  flex-direction: column;
  gap: 8px;              /* SAMA seperti .sb-nav */
}

/* optional: pastikan tombol akun full lebar & konsisten */
.sb-acc-actions .sb-item{
  margin: 0;             /* pastikan tidak ada margin tambahan */
}


/* ===== Badge kecil di AKUN ===== */
.sb-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.2px;
  color:#fff;
  background: rgba(198,163,94,.22);
  border: 1px solid rgba(198,163,94,.45);
}

/* ===== Hover effect khusus area akun (lebih halus) ===== */
.sb-account-hover{
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  border-radius:16px;
}
.sb-account-hover:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

/* ===== Disable style item yang butuh login (ketika belum login) ===== */
body.is-guest .sb-require-login,
body.is-guest .tools .btn.require-login{
  opacity: .55;
  filter: grayscale(1);
}

body.is-guest .sb-require-login{
  cursor: not-allowed;
}

body.is-guest .sb-require-login:hover{
  transform:none; /* supaya tidak terasa aktif */
  background: rgba(255,255,255,.06);
}

/* Tombol di card yang butuh login */
body.is-guest .tools .btn.require-login,
body.is-guest .row-actions .btn.require-login{
  cursor: not-allowed;
  pointer-events: auto; /* tetap bisa klik untuk prompt login */
}

.sb-acc-actions{
  display:flex;
  flex-direction:column;
  gap:14px;            /* jarak Profil <-> Login */
  margin-top:10px;     /* jarak dari header akun ke tombol */
}

/* error box di modal login */
#loginErr{ border:1px solid rgba(239,68,68,.25); }

.sb-logo-avatar{
  overflow:hidden;
}
.sb-logo-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.modal{ display:none; }
.modal.is-open{ display:block; }

/* ===== DASHBOARD HEADER CENTERED ===== */

.topbar-center{
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 32px;
}

.dashboard-header{
  width:100%;
  max-width: 720px;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.dashboard-title{
  font-size: 13px;
  letter-spacing: .25em;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}

.page-title-center{
  font-size: 34px;            /* 🔥 lebih besar */
  font-weight: 900;
  letter-spacing: .4px;
  margin: 0;
  color: #ffffff;
}

/* Search di tengah */
.search-dashboard{
  width:100%;
  max-width: 420px;
}

.search-dashboard input{
  height: 46px;
  border-radius: 16px;
  font-size: 14px;
  text-align: center;
}

/* Mobile tuning */
@media (max-width: 640px){
  .page-title-center{
    font-size: 26px;
  }
}

/* ============================= */
/* DASHBOARD LUXURY HEADER */
/* ============================= */

.topbar-lux{
  padding-top: 36px;
  padding-bottom: 24px;
  display: flex;
  justify-content: center;
}

.dashboard-hero{
  width:100%;
  max-width: 760px;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* Judul utama DASHBOARD */
.dashboard-title-lux{
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;

  /* efek mewah */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e5e7eb 45%,
    #9ca3af 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 6px 20px rgba(255,255,255,.08);
}

/* Search di tengah */
.search-dashboard{
  width:100%;
  max-width: 460px;
}

.search-dashboard input{
  height: 50px;
  border-radius: 18px;
  font-size: 14px;
  text-align: center;
}

/* ============================= */
/* SECTION TITLE */
/* ============================= */

.page-title-section{
  margin: 8px 0 22px;
  padding-left: 0;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
}

/* Mobile tuning */
@media (max-width: 640px){
  .dashboard-title-lux{
    font-size: 30px;
    letter-spacing: 1px;
  }

  .page-title-section{
    font-size: 20px;
  }
}

.dashboard-title-lux{ font-size: 52px; }

/* ============================= */
/* PREMIUM HERO + CENTER LAYOUT */
/* ============================= */

.main-center{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.topbar-hero{
  width:100%;
  padding: 44px 22px 18px;
  display:flex;
  justify-content:center;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(700px 340px at 20% 20%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(700px 340px at 80% 25%, rgba(59,130,246,.16), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 70%);
}

.hero-wrap{
  width:100%;
  max-width: 860px;
  text-align:center;
  position:relative;
}

.hero-kicker{
  font-size: 12px;
  letter-spacing: .32em;
  font-weight: 800;
  color: rgba(255,255,255,.62);
}

.hero-title{
  margin-top: 10px;
  font-size: 48px;
  font-weight: 950;
  letter-spacing: .6px;
  line-height: 1.05;

  background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 45%, #9ca3af 110%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.hero-sub{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.68);
}

.search-hero{
  margin: 18px auto 0;
  width: min(560px, 92vw);
}

.search-hero input{
  height: 52px;
  border-radius: 18px;
  font-size: 14px;
  text-align:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(0,0,0,.25);
}

.search-hero input:focus{
  outline:none;
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 4px rgba(34,197,94,.14), 0 18px 52px rgba(0,0,0,.28);
}

.section-head{
  width:100%;
  max-width: 860px;
  padding: 12px 22px 18px;
}

.page-title-section{
  margin:0;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

/* Center grid content */
.grid{
  width:100%;
  max-width: 860px;
  padding: 0 22px 18px;
}

/* card lebih premium sedikit */
.card{
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}

/* Mobile */
@media (max-width: 640px){
  .topbar-hero{ padding-top: 32px; }
  .hero-title{ font-size: 30px; }
  .page-title-section{ font-size: 20px; }
}

/* =========================
   WHITE DASHBOARD (LIKE IMG 1)
========================= */

.main-white{
  background: #f4f6f8;
  min-height: 100vh;
  padding-bottom: 32px;
}

.w-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Topbar putih */
.w-topbar{
  background: #ffffff;
  border-bottom: 1px solid #e9edf2;
  padding: 18px 0 14px;
}

.w-title{
  text-align:center;
  font-weight: 900;
  font-size: 22px;
  color:#3b3b3b;
}

.w-btn-create{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 12px auto 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #17a34a;
  color:#fff;
  font-weight: 800;
  text-decoration:none;
  width: fit-content;
}

.w-note{
  text-align:center;
  color:#6b7280;
  font-size: 12px;
  margin-top: 4px;
}

.w-help{
  display:block;
  text-align:center;
  text-decoration:none;
  color:#2563eb;
  font-weight: 700;
  margin-top: 8px;
}

/* Panel putih besar */
.w-panel{
  padding: 18px 0 8px;
}

.w-info-pill{
  margin: 10px auto 14px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background:#14b8a6;
  color:#fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
}

.w-total-title{
  text-align:center;
  font-style: italic;
  color:#6b7280;
  margin-bottom: 12px;
}

.w-stats{
  display:flex;
  gap: 16px;
  justify-content:center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.w-stat{
  min-width: 240px;
  border-radius: 26px;
  padding: 14px 18px;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.w-stat-num{
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}
.w-stat-label{
  font-size: 12px;
  opacity: .95;
  margin-top: 6px;
  font-weight: 800;
}

.w-stat.premium{ background: #0ea5b7; }
.w-stat.free{ background: #fbbf24; color:#2b2b2b; }
.w-stat.total{ background: #22c55e; }

.w-promo-strip{
  margin-top: 10px;
  background:#fbbf24;
  color:#1f2937;
  font-weight: 950;
  text-align:center;
  padding: 8px 10px;
  border-radius: 10px;
}

.w-promo-card{
  background:#ffffff;
  border:1px solid #e9edf2;
  border-radius: 16px;
  padding: 18px;
  margin-top: 14px;
  text-align:center;
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

.w-promo-text{
  color:#4b5563;
  font-weight: 600;
  margin-bottom: 10px;
}

.w-price-old{
  color:#ef4444;
  text-decoration: line-through;
  font-weight: 900;
  margin-bottom: 2px;
}
.w-price-new{
  color:#111827;
  font-weight: 950;
  font-size: 22px;
}

.w-count-title{
  margin-top: 12px;
  color:#6b7280;
  font-weight: 800;
  font-size: 12px;
}

.w-countdown{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.w-cd{
  width: 74px;
  background:#111827;
  color:#fff;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.w-cd b{
  display:block;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}
.w-cd span{
  display:block;
  font-size: 11px;
  opacity: .8;
  margin-top: 6px;
}

.w-link{
  display:inline-block;
  margin-top: 10px;
  color:#2563eb;
  text-decoration:none;
  font-weight: 800;
}

/* List section */
.w-list{
  padding: 18px 0 10px;
}

.w-list-title{
  text-align:center;
  font-weight: 900;
  color:#6b7280;
  margin: 6px 0 12px;
}

.w-searchbar{
  display:flex;
  align-items:center;
  gap:10px;
  background:#ffffff;
  border:1px solid #e9edf2;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  max-width: 980px;
  margin: 0 auto 12px;
}

.w-searchbar input{
  flex:1;
  border:none;
  outline:none;
  font-size: 13px;
  background: transparent;
}

.w-searchbtn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e9edf2;
  background:#f8fafc;
  cursor:pointer;
}

.w-filter{
  text-align:center;
  color:#6b7280;
  font-weight: 700;
  margin: 10px 0 18px;
  font-size: 12px;
}
.w-filter-title{ margin-bottom: 6px; font-weight: 900; letter-spacing:.06em; }
.w-filter label{ margin: 0 10px; }

.grid-white{ padding: 0; }
.foot-white{ color:#6b7280; }

/* center layout untuk topbar */
.w-topbar-center{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* wrapper khusus badge */
.w-badge-wrap{
  margin: 12px 0 6px;
  display: flex;
  justify-content: center;
}

/* badge hijau tetap seperti tombol */
.w-badge-green{
  cursor: default;
  user-select: none;
}

/* =========================
   PERLEBAR CARD UNDANGAN
========================= */

/* container utama */
.w-container{
  max-width: 1400px;   /* sebelumnya 1200px */
}

/* grid daftar undangan */
.grid,
.grid-white{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* card undangan */
.card{
  width: 100%;
  max-width: none;     /* hilangkan limit lama */
}

/* cover image tetap proporsional */
.card .cover img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Desktop besar: card lebih lebar */
@media (min-width: 1200px){
  .grid,
  .grid-white{
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  }
}

/* ===== FORCE CENTER BADGE ===== */
.w-topbar .w-container.w-topbar-center{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
}

.w-topbar .w-badge-wrap{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  margin: 12px 0 6px !important;
}

.w-topbar .w-btn-create.w-badge-green{
  display:inline-flex !important;
  width: fit-content !important;
  margin: 0 auto !important;
  cursor: default;
  user-select:none;
}

/* ===== FORCE GRID LEBAR (CARD TIDAK TERPOTONG) ===== */
.w-list .grid,
.w-list .grid-white,
.grid.grid-white{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
}

.w-list .card,
.grid .card{
  width:100% !important;
  max-width:none !important;
}

/* =========================
   GRID UNDANGAN: MAKS 2 KOLOM
========================= */

/* Desktop: selalu 2 kolom */
.w-list .grid,
.w-list .grid-white,
.grid.grid-white,
#grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(380px, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Card jangan memaksa terlalu lebar */
.w-list .card,
#grid .card{
  width: 100% !important;
  max-width: none !important;
}

/* Tablet: bisa 1 kolom kalau sempit */
@media (max-width: 980px){
  .w-list .grid,
  .w-list .grid-white,
  .grid.grid-white,
  #grid{
    grid-template-columns: 1fr !important;
  }
}

/* Desktop besar: tetap 2 kolom (jangan jadi 3+) */
@media (min-width: 1400px){
  .w-list .grid,
  .w-list .grid-white,
  .grid.grid-white,
  #grid{
    grid-template-columns: repeat(2, minmax(420px, 1fr)) !important;
  }
}

/* =========================
   HILANGKAN OVERLAY & GARIS COVER
========================= */

/* 1. Matikan overlay gelap di atas gambar */
.card .cover::before,
.card .cover::after,
.cover::before,
.cover::after{
  content: none !important;
  display: none !important;
}

/* 2. Pastikan tidak ada background / filter */
.card .cover{
  background: transparent !important;
  filter: none !important;
}

/* 3. Gambar tampil full & bersih */
.card .cover img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: none !important;
}

/* 4. Hilangkan garis hitam bawah (border / shadow lama) */
.card .cover,
.card .cover img{
  border: none !important;
  box-shadow: none !important;
}

/* =========================
   HILANGKAN TOMBOL TERTENTU
========================= */

/* Tombol Setting */
.card .btn-setting,
.card button[title="Setting"],
.card a[title="Setting"]{
  display: none !important;
}

/* Tombol Edit Konten */
.card .btn-edit-content,
.card button[title="Edit Konten"],
.card a[title="Edit Konten"]{
  display: none !important;
}

/* Tombol Hapus */
.card .btn-delete,
.card button[title="Hapus"],
.card a[title="Hapus"],
.card .btn-danger{
  display: none !important;
}

/* =========================
   STYLE DETAIL UNDANGAN (LIKE IMG 2)
========================= */

.card-meta{
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.meta-row{
  display: grid;
  grid-template-columns: 120px 1fr; /* dari 160px → 120px */
  gap: 6px;                         /* dari 12px → 6px */
  padding: 8px 14px;               /* sedikit dipadatkan */
  font-size: 13px;
}

@media (max-width: 520px){
  .meta-row{
    grid-template-columns: 100px 1fr;
    gap: 6px;
    padding: 8px 12px;
  }
}

.meta-row:last-child{
  border-bottom: none;
}

.meta-label{
  white-space: nowrap;
}

.meta-value{
  line-height: 1.4;
}


/* highlight template */
.meta-value.highlight{
  color: #d946ef;
}

/* status aktif */
.meta-value.status-active{
  color: #16a34a;
  font-weight: 800;
}

/* =========================
   JUDUL PERNIKAHAN ELEGANT
========================= */

.card h3,
.card .title,
.card .card-title{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.3px;
  color: #1f2937;
  margin-bottom: 6px;
}

/* highlight nama pasangan */
.card h3 span,
.card .title span{
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 28px;
  color: #b8945a; /* gold wedding */
}

/* ===============================
   GLOBAL BUTTON STYLE (PREMIUM)
================================ */

.btn,
.card .btn,
.action-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 44px;
  padding: 0 18px;

  border-radius: 10px;
  border: none;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;
  transition: all .2s ease;
}

/* ICON */
.btn i,
.btn svg {
  font-size: 16px;
}

/* ===============================
   WARNA TOMBOL
================================ */

/* Lihat Undangan */
.btn-view {
  background: linear-gradient(135deg, #1aa6b7, #1697a6);
  color: #fff;
}

/* Sebarkan Undangan */
.btn-share {
  background: linear-gradient(135deg, #2fb65d, #23994b);
  color: #fff;
}

/* Edit / Custom */
.btn-edit,
.btn-custom {
  background: linear-gradient(135deg, #17a2b8, #0f8fa3);
  color: #fff;
}

/* Setting */
.btn-setting {
  background: linear-gradient(135deg, #f4b400, #e0a800);
  color: #1f1f1f;
}

/* Hapus */
.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

/* ===============================
   HOVER EFFECT
================================ */

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  opacity: .95;
}

.btn-ico{ width:18px; height:18px; fill: currentColor; }

/* beda warna sesuai fungsi */
.btn-edit{
  background: linear-gradient(135deg, #2f80ed, #1c62c4) !important; /* biru */
  color:#fff !important;
}

.btn-custom{
  background: linear-gradient(135deg, #12b981, #0f9a6c) !important; /* hijau */
  color:#fff !important;
}

.btn-custom{
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
  color:#fff !important;
}

/* =========================
   SAMAKAN GRID TOMBOL (ATAS & BAWAH)
========================= */

.card .row-actions,
.card .tools{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
}

/* semua tombol di 2 baris jadi full lebar */
.card .row-actions .btn,
.card .tools .btn{
  width: 100% !important;
  height: 52px !important;   /* samakan tinggi */
  border-radius: 14px !important;
}

/* rapikan icon + teks agar center */
.card .row-actions .btn,
.card .tools .btn{
  justify-content: center !important;
}

/* Mobile: tetap 1 kolom biar tidak sempit */
@media (max-width: 520px){
  .card .row-actions,
  .card .tools{
    grid-template-columns: 1fr !important;
  }
}

/* ===============================
   FIX TOMBOL SEBARKAN (MOBILE)
================================ */

/* pastikan semua tombol patuh container */
.card .row-actions .btn{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* khusus tombol sebarkan */
.card .row-actions .btn-share{
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* HP only */
@media (max-width: 520px){
  .card .row-actions{
    grid-template-columns: 1fr !important;
  }

  .card .row-actions .btn{
    height: 48px;
    font-size: 14px;
  }
}

/* =========================
   Mobile real device: jangan paksa 518x930
   ========================= */
.mobile-canvas{
  width: 100%;
  max-width: 518px;      /* rasa 518 di layar besar */
  margin: 0 auto;
  min-height: 100vh;     /* penuh layar */
  height: auto;          /* JANGAN fixed 930 */
  overflow: visible;     /* biar tidak kepotong */
}

@media (max-width: 600px){
  .mobile-canvas{
    max-width: none;     /* di HP: full lebar layar */
    border-radius: 0;    /* opsional biar rapih */
  }
}

/* ===== Sidebar Drawer (ALL SIZE) ===== */
.sb{
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 60;
  transform: translateX(-105%);
  transition: transform .2s ease;
}

/* saat dibuka */
body.sb-open .sb{
  transform: translateX(0);
}

/* overlay */
.sb-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 50;
}
body.sb-open .sb-overlay{
  opacity: 1;
  pointer-events: auto;
}

/* main FULL (karena sidebar drawer) */
.main{
  margin-left: 0 !important;
}

/* tombol toggle */
.w-topbar .w-container{ position: relative; }
.sb-toggle{
  position: absolute;
  left: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 70;
}

/* ===== Floating Menu Button (Mobile) ===== */
.fab-menu{
  position: fixed;
  left: 16px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg,#18a3a8,#0e7c86);
  color: #fff;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  cursor: pointer;
  z-index: 120;
}

/* efek tekan */
.fab-menu:active{
  transform: scale(.95);
}

/* MOBILE ONLY */
@media (max-width: 900px){
  .fab-menu{ display: flex; }

  /* sembunyikan tombol menu di topbar */
  .sb-toggle{ display:none !important; }
}

body.sb-open .fab-menu{
  background: linear-gradient(135deg,#ff6b6b,#c0392b);
}
body.sb-open .fab-menu i::before{
  content: "\f00d"; /* icon X */
}


/* ===== MOBILE: Sidebar tampil FULL seperti desktop ===== */
@media (max-width: 900px){

  /* Lebarkan sidebar drawer */
  .sb{
    width: 280px !important;   /* bisa 260-320 sesuai selera */
    max-width: 86vw !important;
  }

  /* Pastikan semua bagian sidebar tampil normal */
  .sb .sb-title,
  .sb .sb-text,
  .sb .sb-brand,
  .sb .sb-brand-account,
  .sb .sb-sub{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
  }

  /* Kalau ada rule yang mengecilkan item nav jadi ikon-only */
  .sb .sb-item{
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }

  .sb .sb-ico{
    width: 36px; 
    min-width: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .sb .sb-text{
    white-space: nowrap;
  }
}

@media (max-width: 900px){
  .sb{
    border-radius: 0 18px 18px 0;
    box-shadow: 12px 0 28px rgba(0,0,0,.28);
  }
}

/* ===== Modal (Reusable) ===== */
.modal{ position: fixed; inset:0; display:none; z-index: 2000; }
.modal.is-open{ display:block; }

.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);
}

.modal-card{
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  overflow: hidden;
}

.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f4;
}

.modal-title{ font-weight: 800; letter-spacing:.3px; }

.modal-x{
  width: 36px; height: 36px;
  border: 0; border-radius: 12px;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-body{ padding: 14px 16px 6px; }
.modal-foot{
  display:flex; gap:10px; justify-content:flex-end;
  padding: 12px 16px 16px;
}

.form-row{ display:flex; flex-direction:column; gap:8px; }
.form-label{ font-weight:700; color:#334155; }
.form-input{
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d9e1ea;
  padding: 0 12px;
  outline: none;
}
.form-input:focus{ border-color:#18a3a8; box-shadow: 0 0 0 4px rgba(24,163,168,.12); }
.form-help{ font-size: 12px; color:#64748b; }

/* tombol sederhana */
.btn-ghost{
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}
.btn-primary{
  border: 0;
  background: linear-gradient(135deg,#18a3a8,#0e7c86);
  color:#fff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.meta-list{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.meta-row{
  display: grid;
  grid-template-columns: 120px 14px 1fr; /* label | : | value */
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
}

/* 🔹 SELANG-SELING WARNA */
.meta-row:nth-child(odd){
  background: #ffffff;
}
.meta-row:nth-child(even){
  background: #f3f4f6; /* abu-abu lembut */
}

.meta-label{
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
}

.meta-sep{
  text-align: center;
  color: #6b7280;
  font-weight: 600;
}

.meta-value{
  color: #111827;
  font-weight: 500;
  line-height: 1.4;
}

/* optional highlight seperti template */
.meta-value.highlight{
  color: #ec4899;
  font-weight: 600;
}

@media (max-width: 520px){
  .meta-row{
    grid-template-columns: 105px 12px 1fr;
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

.tools .btn.btn-reservasi{
  background: linear-gradient(135deg,#16a085,#0f8a72);
}
.tools .btn.btn-komentar{
  background: linear-gradient(135deg,#f2994a,#d97822);
}

.tools .btn {
  color: #fff;
}

.tools .btn .btn-ico {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: #fff;              /* PENTING: icon putih */
  flex-shrink: 0;
}

.tools .btn span {
  color: #fff;             /* teks putih */
}
