/* ============================================================
   UI PRODUK: landing, auth, dashboard, modal, watermark
============================================================ */

/* ---------- Landing ---------- */
.landing-nav {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(247, 244, 239, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 21px;
  color: var(--ink); text-decoration: none;
}
.brand-logo svg { width: 24px; height: 24px; color: var(--accent); }
.brand-logo em { font-style: italic; color: var(--accent); }
.nav-actions { display: flex; gap: 9px; align-items: center; }

.hero-landing {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(70px, 12vh, 130px) clamp(20px, 5vw, 48px) 80px;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero-blob.b1 { width: 480px; height: 480px; background: rgba(201, 155, 98, .55); top: -180px; right: -120px; }
.hero-blob.b2 { width: 420px; height: 420px; background: rgba(226, 196, 158, .5); bottom: -200px; left: -140px; }
.hero-landing .inner { position: relative; max-width: 840px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(160, 106, 53, .1);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero-pill svg { width: 13px; height: 13px; }
.hero-landing h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 6.4vw, 68px);
  line-height: 1.08; font-weight: 800; margin-bottom: 20px;
}
.hero-landing h1 em { font-style: italic; color: var(--accent); }
.hero-landing p.lead {
  color: var(--muted); font-size: clamp(15px, 2vw, 18px);
  max-width: 56ch; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.mock-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 960px; margin: 64px auto 0; padding: 0 clamp(10px, 3vw, 30px); }
.mock-strip .tile { border-radius: 14px; aspect-ratio: 3/4; box-shadow: var(--shadow-md); animation: fadeUp .9s ease both; }
.mock-strip .tile:nth-child(1) { background: linear-gradient(150deg, #d9c3a3, #a8845c); animation-delay: .05s; }
.mock-strip .tile:nth-child(2) { background: linear-gradient(150deg, #cbb59a, #7d6247); animation-delay: .15s; transform: translateY(-16px); }
.mock-strip .tile:nth-child(3) { background: linear-gradient(150deg, #e3d3ba, #b99a72); animation-delay: .25s; }
.mock-strip .tile:nth-child(4) { background: linear-gradient(150deg, #c2ab8d, #8f7150); animation-delay: .35s; transform: translateY(-16px); }

.section { padding: clamp(60px, 9vw, 110px) clamp(20px, 5vw, 48px); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.sec-kicker { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.sec-title { font-family: var(--font-head); font-size: clamp(27px, 4vw, 40px); }
.sec-desc { color: var(--muted); font-size: 15px; margin-top: 10px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(160, 106, 53, .1); color: var(--accent); display: grid; place-items: center; margin-bottom: 15px; }
.feature-card .ic svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 1020px; margin: 0 auto; counter-reset: step; }
.step-card { text-align: left; border: 1.5px dashed var(--line); border-radius: 18px; padding: 24px; }
.step-num { counter-increment: step; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 13px; }
.step-num::before { content: counter(step); }
.step-card h3 { font-size: 15.5px; margin-bottom: 5px; }
.step-card p { font-size: 13.5px; color: var(--muted); }

.pricing-section {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(201, 155, 98, .16), transparent),
    linear-gradient(#f2ede4, #f7f4ef);
  border-top: 1px solid var(--line);
}
.price-cards { display: flex; gap: 22px; justify-content: center; align-items: stretch; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 30px;
  box-shadow: var(--shadow-sm); text-align: center;
  width: min(360px, 100%); display: flex; flex-direction: column;
}
.price-card.hot { border: 2px solid var(--accent-2); box-shadow: 0 20px 50px rgba(160, 106, 53, .18); transform: translateY(-8px); }
.price-badge {
  align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); color: #fff; border-radius: 999px; padding: 5px 14px; margin-top: -52px; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(160, 106, 53, .35);
}
.price-name { font-weight: 700; font-size: 17px; margin-bottom: 2px; }
.price-for { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price-val { font-family: var(--font-head); font-size: 38px; font-weight: 800; line-height: 1.1; }
.price-val small { font-size: 14px; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.price-feats { list-style: none; text-align: left; margin: 22px 0 26px; display: grid; gap: 11px; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.price-feats svg { width: 17px; height: 17px; color: #27ae60; flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: auto; }

.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq-item summary { font-weight: 600; font-size: 14.5px; cursor: pointer; list-style: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { font-size: 13.5px; color: var(--muted); margin-top: 9px; }

.cta-band {
  margin: 0 clamp(20px, 5vw, 48px);
  border-radius: 26px;
  background: linear-gradient(135deg, #2c2620, #191512);
  color: #fff; text-align: center;
  padding: clamp(44px, 7vw, 76px) 24px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,155,98,.4), transparent 65%);
  top: -160px; right: -100px;
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); position: relative; }
.cta-band p { color: rgba(255,255,255,.7); margin: 10px 0 26px; position: relative; }
.cta-band .btn { position: relative; }

.site-footer { text-align: center; padding: 34px 20px 46px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
  .mock-strip { grid-template-columns: repeat(2, 1fr); }
  .mock-strip .tile:nth-child(2), .mock-strip .tile:nth-child(4) { transform: none; }
}

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(201, 155, 98, .3), transparent),
    radial-gradient(800px 420px at 0% 110%, rgba(226, 196, 158, .35), transparent),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 42px);
  animation: popIn .45s cubic-bezier(.2,.9,.3,1.25) both;
}
.auth-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #efe9de; border-radius: 999px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  border: none; background: transparent; border-radius: 999px;
  padding: 10px; font-weight: 600; font-size: 14px; color: var(--muted);
  transition: all .25s ease;
}
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-card h1 { font-family: var(--font-head); font-size: 24px; text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }

.btn.google {
  width: 100%;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
  margin-bottom: 16px;
}
.btn.google:hover { background: #f6f2ea; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Dashboard ---------- */
.dash-nav {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px clamp(16px, 4vw, 44px);
  background: rgba(247, 244, 239, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.dash-user-info { line-height: 1.25; }
.dash-user-name { font-weight: 600; font-size: 14px; }
.dash-user-mail { font-size: 12px; color: var(--muted); }

.dash-main { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 44px) 90px; }

.sub-banner {
  border-radius: 20px; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #fffdf9, #f6efe3);
  box-shadow: var(--shadow-sm);
}
.sub-left { display: flex; align-items: center; gap: 15px; }
.sub-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; flex-shrink: 0;
}
.sub-icon svg { width: 23px; height: 23px; }
.sub-trial .sub-icon { background: rgba(232, 163, 61, .15); color: #cf8a20; }
.sub-active .sub-icon { background: rgba(39, 174, 96, .13); color: #27ae60; }
.sub-expired .sub-icon { background: rgba(192, 57, 43, .1); color: #c0392b; }
.sub-title { font-weight: 700; font-size: 15.5px; }
.sub-sub { font-size: 13px; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.badge.trial { background: rgba(232, 163, 61, .16); color: #b47416; }
.badge.active { background: rgba(39, 174, 96, .14); color: #1e8e51; }
.badge.expired { background: rgba(192, 57, 43, .12); color: #b03a2e; }

.dash-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 28px);
}
.card h2 { font-family: var(--font-head); font-size: 21px; margin-bottom: 18px; }
.card + .card { margin-top: 24px; }

.gal-list { display: grid; gap: 13px; }
.gal-item {
  display: flex; align-items: center; gap: 15px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 17px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gal-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gal-thumb {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
}
.gal-thumb svg { width: 22px; height: 22px; }
.gal-info { flex: 1; min-width: 0; }
.gal-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-meta { font-size: 12px; color: var(--muted); }
.gal-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: #57503f;
  display: grid; place-items: center; transition: all .2s;
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent-2); color: var(--accent); background: rgba(160, 106, 53, .06); }
.icon-btn.del:hover { border-color: #e74c3c; color: #c0392b; background: #fdf0ee; }
.icon-btn svg { width: 16px; height: 16px; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state svg { width: 46px; height: 46px; opacity: .4; margin: 0 auto 12px; }

.locked-overlay {
  text-align: center; padding: 30px 20px;
  background: repeating-linear-gradient(-45deg, #faf6ec, #faf6ec 12px, #f4eee1 12px, #f4eee1 24px);
  border: 1.5px dashed rgba(160, 106, 53, .4);
  border-radius: 14px; margin-top: 4px;
}
.locked-overlay p { font-size: 13.5px; color: #7a6a52; margin-bottom: 14px; }

.admin-box { border: 1.5px solid rgba(160,106,53,.35); }
.admin-box h2 span { font-size: 11px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; vertical-align: middle; margin-left: 8px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2200;
  background: rgba(20, 16, 12, .55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn .2s ease both;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: 22px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  animation: popIn .35s cubic-bezier(.2,.9,.3,1.2) both;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title { font-family: var(--font-head); font-size: 20px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #efe9de; color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.modal-close:hover { background: #e5dcc9; }
.modal-close svg { width: 16px; height: 16px; }

.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.plan-opt {
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px; text-align: center; transition: all .2s;
}
.plan-opt.active { border-color: var(--accent); background: rgba(160, 106, 53, .07); box-shadow: 0 0 0 3px rgba(201,155,98,.18); }
.plan-opt .po-label { font-weight: 700; font-size: 13.5px; }
.plan-opt .po-price { font-family: var(--font-head); font-weight: 800; font-size: 19px; margin-top: 2px; }
.plan-opt .po-save { font-size: 11px; color: #1e8e51; font-weight: 700; margin-top: 2px; }

.pay-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6; }

.qr-modal-img { display: block; margin: 6px auto 14px; border-radius: 14px; border: 1px solid var(--line); width: 210px; height: 210px; }
.link-box { display: flex; gap: 9px; margin-bottom: 12px; }
.link-box input {
  flex: 1; min-width: 0;
  border: 1.5px dashed rgba(160, 106, 53, .45);
  background: rgba(160, 106, 53, .05);
  border-radius: 12px; padding: 11px 14px; font-size: 12.5px; outline: none;
}
.link-box .btn { white-space: nowrap; }

.fb-mini-list { display: grid; gap: 11px; margin-top: 6px; }
.fb-mini {
  background: #fff; border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 15px;
}
.fb-mini-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fb-stars { display: inline-flex; gap: 1px; margin-left: auto; }
.fb-stars svg { width: 13px; height: 13px; fill: #e8a33d; }

/* ---------- Watermark di galeri klien ---------- */
.sp-watermark {
  position: fixed; z-index: 1500;
  right: 14px; bottom: 14px;
  background: rgba(20, 16, 12, .62);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.sp-watermark svg { width: 13px; height: 13px; }
.sp-watermark em { font-style: italic; color: #e6cba4; }

.loading-screen {
  min-height: 70vh; display: grid; place-items: center; color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .gal-actions { flex-wrap: wrap; justify-content: flex-end; }
  .sub-banner { flex-direction: column; align-items: flex-start; }
}
