/* ==========================================================================
   Biro Jodohku — Design System
   Palet & tipografi mengikuti template Biro Jodoh Rumaysho
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
  --primary-50: #ffedec;
  --primary-100: #fedad8;
  --primary-200: #fcc8c5;
  --primary-300: #fab5b3;
  --primary-400: #f7a2a0;
  --primary-500: #dc3545;
  --primary-600: #bf2d3b;
  --primary-700: #a32531;
  --primary-800: #881d27;
  --primary-900: #6e151e;
  --primary-950: #3d0a14;

  --ink: #171717;
  --ink-2: #262626;
  --ink-3: #404040;
  --muted: #737373;
  --muted-2: #a3a3a3;
  --line: #e5e5e5;
  --line-soft: #f0f0f0;
  --bg: #f5f5f5;
  --card: #ffffff;

  --green: #128a5a;
  --green-soft: #e6f6ee;
  --amber: #a86400;
  --amber-soft: #fff4e0;
  --blue: #1d5fd0;
  --blue-soft: #e8f0fe;

  --radius-sm: 0.6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.06);
  --shadow: 0 6px 24px -12px rgba(23, 23, 23, 0.18);
  --shadow-lg: 0 24px 60px -28px rgba(61, 10, 20, 0.35);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-arabic: 'Amiri', 'Times New Roman', serif;

  --header-h: 4rem;
  --wrap: 64rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
svg { display: block; }

::selection { background: var(--primary-200); color: var(--primary-950); }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0 0.9rem; }
.wrap-wide { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.5rem 0; }
.section-tight { padding: 1.75rem 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: 0.75rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: 1fr; }
.center { text-align: center; }
.mt-1 { margin-top: 0.35rem; } .mt-2 { margin-top: 0.75rem; } .mt-3 { margin-top: 1.25rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.35rem; } .mb-2 { margin-bottom: 0.75rem; } .mb-3 { margin-bottom: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.xs { font-size: 0.75rem; }
.bold { font-weight: 700; }
.hidden { display: none !important; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-600);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(229, 229, 229, 0.8);
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(14px);
}
.site-header .inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(140deg, var(--primary-500), var(--primary-800));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -8px rgba(191, 45, 59, 0.8);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-size: 16px; letter-spacing: -0.03em; color: var(--ink); font-weight: 800; }
.brand-text span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }

.pill-nav {
  display: none; align-items: center; gap: 2px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm);
}
.pill-nav a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 0.85rem;
  border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--ink-3);
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.pill-nav a:hover { background: #f5f5f5; color: var(--ink); }
.pill-nav a.active { background: var(--ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .link-login { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 42px; padding: 0 1.15rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 800; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s, background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s;
  background: #fff; color: var(--ink);
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--primary-600); color: #fff;
  box-shadow: 0 10px 22px -14px rgba(191, 45, 59, 0.9);
}
.btn-primary:hover { background: var(--primary-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--muted-2); }
.btn-white { background: #fff; color: var(--primary-950); }
.btn-white:hover { background: var(--primary-50); }
.btn-lg { height: 50px; padding: 0 1.6rem; font-size: 0.95rem; }
.btn-sm { height: 34px; padding: 0 0.85rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { background: #1fbe5b; }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.15rem; }
.card-hover { transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9d9d9; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.divider { height: 1px; background: var(--line-soft); margin: 0.9rem 0; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
  background: #f2f2f2; color: var(--ink-3); white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge-free { background: #f2f2f2; color: #525252; }
.badge-premium { background: linear-gradient(135deg, #fff2d6, #ffe0a8); color: #7a4a00; border: 1px solid #f5d79a; }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-danger { background: #ffe9e9; color: #b42318; }
.badge-info { background: var(--blue-soft); color: var(--blue); }
.badge-dark { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  margin: 0.4rem 0 0; padding: 1.6rem;
  border-radius: var(--radius-xl);
  background: var(--primary-950);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.55), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.7rem; font-weight: 700; color: #ffd9dc; letter-spacing: 0.02em;
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
.hero h1 {
  margin-top: 0.9rem; color: #fff; font-size: 1.9rem; line-height: 1.1;
  letter-spacing: -0.035em; max-width: 22ch;
}
.hero h1 em { font-style: normal; color: #ffb3b8; }
.hero-sub { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; max-width: 44ch; }
.hero-actions { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hero-quote {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
}
.hero-quote .ar { font-family: var(--font-arabic); font-size: 1.45rem; color: #ffd9dc; line-height: 1; }
.hero-quote .src { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); font-weight: 600; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.1rem; }
.hero-stats div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; padding: 0.65rem 0.7rem; }
.hero-stats b { display: block; font-size: 1.05rem; color: #fff; letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.66rem; color: rgba(255, 255, 255, 0.6); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.35rem; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.section-head a { font-size: 0.8rem; font-weight: 800; color: var(--primary-600); white-space: nowrap; }

/* kelas / article cards */
.media-card { overflow: hidden; display: flex; flex-direction: column; }
.media-thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #fbe0e1, #f2c4c8);
  display: grid; place-items: center;
}
.media-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23a32531' stroke-opacity='.12' stroke-width='1'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E");
}
.media-thumb .glyph { position: relative; font-family: var(--font-arabic); font-size: 3rem; color: rgba(110, 21, 30, 0.42); line-height: 1; }
.media-thumb .tag {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(6px);
  padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.65rem; font-weight: 800; color: var(--primary-800);
}
.media-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.media-body h3 { font-size: 0.95rem; }
.media-body .price { font-size: 0.85rem; font-weight: 800; color: var(--primary-700); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 0.7rem; }
.step {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.95rem 1rem; box-shadow: var(--shadow-sm);
}
.step .num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-100);
}
.step h4 { font-size: 0.92rem; }
.step p { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

/* feature mini */
.feature { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem; }
.feature .ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--primary-50); color: var(--primary-600);
}
.feature .ico svg { width: 19px; height: 19px; }
.feature h4 { font-size: 0.9rem; }
.feature p { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* pricing */
.price-card { position: relative; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.price-card.popular { border-color: var(--primary-300); box-shadow: 0 20px 45px -30px rgba(191, 45, 59, 0.65); }
.price-card .pop-tag {
  position: absolute; top: -11px; right: 1rem;
  background: var(--primary-600); color: #fff; font-size: 0.64rem; font-weight: 800;
  padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.price-card h3 { font-size: 1.05rem; }
.price-card .price { font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.price-card .price small { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.price-card li { display: flex; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-3); align-items: flex-start; }
.price-card li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.price-card li.off { color: var(--muted-2); }
.price-card li.off svg { color: var(--muted-2); }

/* testimonial */
.quote-card { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.quote-card .txt { font-size: 0.85rem; color: var(--ink-3); line-height: 1.65; }
.quote-foot { display: flex; align-items: center; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }
.quote-foot .av { width: 34px; height: 34px; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.quote-foot b { font-size: 0.78rem; display: block; }
.quote-foot span { font-size: 0.7rem; color: var(--muted); }

/* faq */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.95rem 1.05rem; box-shadow: var(--shadow-sm);
}
.faq details + details { margin-top: 0.6rem; }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 0.87rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.1rem; font-weight: 600; color: var(--muted); line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.6rem; font-size: 0.83rem; color: var(--muted); line-height: 1.7; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-800), var(--primary-950));
  color: #fff; padding: 1.6rem; text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 1.35rem; }
.cta-band p { color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; margin-top: 0.5rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 2rem; padding: 2rem 0 1.5rem; }
.site-footer .cols { display: grid; gap: 1.5rem; }
.site-footer h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.6rem; }
.site-footer a { display: block; font-size: 0.83rem; color: var(--ink-3); padding: 0.2rem 0; }
.site-footer a:hover { color: var(--primary-600); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: 0.75rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.label { font-size: 0.78rem; font-weight: 700; color: var(--ink-2); }
.label .req { color: var(--primary-600); }
.hint { font-size: 0.72rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 0.85rem;
  border: 1px solid var(--line); border-radius: 0.75rem; background: #fff;
  font-family: inherit; font-size: 0.87rem; color: var(--ink);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 96px; padding: 0.65rem 0.85rem; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }
.form-grid { display: grid; gap: 0.85rem; }
.form-grid-2 { display: grid; gap: 0.85rem; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: var(--ink-3); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary-600); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }

.auth-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 0.9rem 3rem; }
.auth-card { width: 100%; max-width: 30rem; }
.auth-head { text-align: center; margin-bottom: 1.25rem; }
.auth-head h1 { font-size: 1.4rem; letter-spacing: -0.03em; }
.auth-head p { color: var(--muted); font-size: 0.84rem; margin-top: 0.35rem; }
.auth-card .card { padding: 1.25rem; }
.form-err {
  display: none; padding: 0.65rem 0.8rem; border-radius: 0.7rem;
  background: #fff1f1; border: 1px solid #ffd4d4; color: #b42318;
  font-size: 0.8rem; font-weight: 600;
}
.form-err.show { display: block; }
.form-ok { background: var(--green-soft); border: 1px solid #bfe8d3; color: var(--green); }

/* upload */
.upload {
  border: 1.5px dashed #d8d8d8; border-radius: var(--radius); background: #fafafa;
  padding: 1.1rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.upload:hover { border-color: var(--primary-300); background: #fff8f8; }
.upload svg { width: 22px; height: 22px; margin: 0 auto 0.4rem; color: var(--muted); }
.upload b { font-size: 0.82rem; color: var(--ink-2); display: block; }
.upload span { font-size: 0.72rem; color: var(--muted); }
.preview { margin-top: 0.6rem; position: relative; display: none; }
.preview.show { display: block; }
.preview img { border-radius: 0.8rem; border: 1px solid var(--line); max-height: 220px; object-fit: contain; margin: 0 auto; background: #fff; }
.preview .rm {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.65); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
}

/* ---------------------------------------------------------------- app shell */
.app-body { background: #f7f7f7; }
.app-top {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.app-top .inner { max-width: 78rem; margin: 0 auto; height: 3.75rem; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-layout { max-width: 78rem; margin: 0 auto; display: flex; gap: 1.5rem; padding: 1rem; align-items: flex-start; }
.side-nav { display: none; width: 232px; flex-shrink: 0; position: sticky; top: 4.75rem; }
.side-nav a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 0.75rem;
  font-size: 0.84rem; font-weight: 700; color: var(--ink-3); margin-bottom: 2px;
}
.side-nav a svg { width: 17px; height: 17px; color: var(--muted); }
.side-nav a:hover { background: #efefef; }
.side-nav a.active { background: var(--primary-50); color: var(--primary-800); }
.side-nav a.active svg { color: var(--primary-600); }
.side-nav .nav-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted-2); font-weight: 800; padding: 0.9rem 0.75rem 0.35rem; }
.app-main { flex: 1; min-width: 0; padding-bottom: 5rem; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0.3rem 0; font-size: 0.63rem; font-weight: 700; color: var(--muted); border-radius: 0.6rem;
}
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active { color: var(--primary-600); }

.page-title { font-size: 1.25rem; letter-spacing: -0.03em; }
.page-sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 0.95rem; box-shadow: var(--shadow-sm);
}
.stat span { font-size: 0.7rem; color: var(--muted); font-weight: 700; }
.stat b { display: block; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); margin-top: 0.1rem; }

/* member cards */
.member-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; }
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.member-photo { aspect-ratio: 1 / 1.06; background: linear-gradient(150deg, #f6e7e8, #efd3d6); position: relative; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 800; color: rgba(61, 10, 20, 0.35); letter-spacing: -0.02em;
}
.member-photo .vtag {
  position: absolute; left: 0.45rem; top: 0.45rem;
  background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 0.12rem 0.42rem;
  font-size: 0.6rem; font-weight: 800; color: var(--green); display: flex; align-items: center; gap: 3px;
}
.member-photo .vtag svg { width: 10px; height: 10px; }
.member-info { padding: 0.6rem 0.7rem 0.75rem; display: flex; flex-direction: column; gap: 0.15rem; }
.member-info b { font-size: 0.84rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-info .meta { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-info .chips { display: flex; gap: 0.25rem; margin-top: 0.3rem; flex-wrap: wrap; }

/* profile detail */
.profile-hero { display: flex; gap: 1rem; align-items: center; }
.profile-hero .av { width: 84px; height: 84px; border-radius: 1.2rem; overflow: hidden; flex-shrink: 0; background: linear-gradient(150deg, #f6e7e8, #efd3d6); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: rgba(61, 10, 20, 0.35); }
.profile-hero .av img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.45rem 0.8rem; font-size: 0.83rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink-2); font-weight: 600; }

.locked {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem;
  background: linear-gradient(120deg, #fff8ee, #fff3e0); border: 1px solid #f6dfb8;
  border-radius: var(--radius); color: #7a4a00; font-size: 0.8rem;
}
.locked svg { width: 20px; height: 20px; flex-shrink: 0; }

/* photo manager */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.photo-grid-sm { max-width: 26rem; }
.photo-slot {
  aspect-ratio: 1; border-radius: 0.8rem; border: 1px dashed #d8d8d8; background: #fafafa;
  display: grid; place-items: center; overflow: hidden; position: relative; cursor: pointer;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot.filled { border-style: solid; border-color: var(--line); }
.photo-slot .del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer;
}
.photo-slot .plus { color: var(--muted); font-size: 1.3rem; line-height: 1; }

/* table (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th { text-align: left; padding: 0.7rem 0.85rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: #fafafa; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .u { display: flex; align-items: center; gap: 0.5rem; }
td .u .av { width: 30px; height: 30px; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; overflow: hidden; }
td .u .av img { width: 100%; height: 100%; object-fit: cover; }
td .u b { font-size: 0.8rem; color: var(--ink); display: block; }
td .u span { font-size: 0.7rem; color: var(--muted); }

.tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 2px; }.tab {
  height: 36px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); cursor: pointer; white-space: nowrap;
}
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* segmented control (aksi tabel admin) */
.seg { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fafafa; }
.seg button {
  height: 26px; padding: 0 0.55rem; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.68rem; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button.on[data-tier="premium"] { color: #7a4a00; }
td.actions { white-space: nowrap; }

/* modal */
.modal-back {
  position: fixed; inset: 0; z-index: 80; background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(3px); display: none; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-back.show { display: flex; }
.modal {
  background: #fff; width: 100%; max-width: 34rem; border-radius: 1.25rem 1.25rem 0 0;
  max-height: 92dvh; overflow-y: auto; padding: 1.1rem; animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.modal-head h3 { font-size: 1rem; }
.modal-close { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--muted); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; z-index: 120; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* whatsapp float (landing only) */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #06301a; font-weight: 800; font-size: 0.82rem;
  padding: 0.6rem 0.95rem; border-radius: 999px;
  box-shadow: 0 12px 28px -12px rgba(37, 211, 102, 0.9);
}
.wa-float svg { width: 18px; height: 18px; }

.skeleton { background: linear-gradient(90deg, #eee, #f5f5f5, #eee); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 0.6rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-size: 0.85rem; }
.empty svg { width: 34px; height: 34px; margin: 0 auto 0.6rem; color: var(--muted-2); }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 640px) {
  .hero { padding: 2.2rem; }
  .hero h1 { font-size: 2.35rem; }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-back { align-items: center; padding: 1rem; }
  .modal { border-radius: 1.25rem; }
}

@media (min-width: 900px) {
  .site-header .inner { height: 4.5rem; }
  .pill-nav { display: flex; }
  .header-actions .link-login { display: inline-flex; }
  .hero { padding: 2.75rem; }
  .hero h1 { font-size: 2.85rem; }
  .hero-sub { font-size: 0.95rem; }
  .wrap { max-width: 64rem; }
  .section { padding: 3.25rem 0; }
  .section-head h2 { font-size: 1.6rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .side-nav { display: block; }
  .bottom-nav { display: none; }
  .app-main { padding-bottom: 2rem; }
  .member-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
  .hero-quote { margin-top: 2rem; }
  .hero-grid .hero-stats { grid-template-columns: 1fr; align-content: center; gap: 0.55rem; margin-top: 0; }
  .hero-grid .hero-stats div { padding: 0.75rem 1rem; display: flex; align-items: baseline; gap: 0.6rem; }
  .hero-grid .hero-stats b { font-size: 1.2rem; }
  .hero-grid .hero-stats span { font-size: 0.72rem; }
}

@media (max-width: 560px) {
  #hdrName { display: none !important; }
  .app-top .brand-text span { display: none; }
  .hero-stats b { font-size: 0.98rem; }
  .hero-stats span { font-size: 0.62rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.7rem; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-2 { grid-template-columns: 1fr; }
}
