
  @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:wght@400;500;600;700&display=swap');

  :root {
    --white: #ffffff;
    --bg: #f4f6f3;
    --bg2: #eef1ec;
    --emerald: #2d7a4f;
    --emerald-dark: #1e5c3a;
    --emerald-light: #e8f5ee;
    --emerald-mid: #4a9e6b;
    --sage: #7bab8b;
    --gold: #d4820a;
    --gold-light: #fef3e2;
    --gold-dark: #b36a06;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red: #dc2626;
    --red-light: #fef2f2;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ===== PAGE SYSTEM ===== */
  .page { display: none; min-height: 100vh; }
  .page.active { display: block; }
  
  /* ===== NAVBAR ===== */
  .navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
  }
  .nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    text-decoration: none;
  }
  .nav-logo-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
  .nav-logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 12px rgba(45,122,79,0.3);
  }
  .nav-logo-text { line-height: 1.2; }
  .nav-logo-text strong {
    display: block; font-size: 14px; font-weight: 700; color: var(--gray-900);
  }
  .nav-logo-text span {
    font-size: 11px; color: var(--gray-500); font-weight: 400;
  }
  .nav-links {
    display: flex; align-items: center; gap: 4px;
  }
  .nav-link {
    padding: 8px 14px; border-radius: 10px; font-size: 13.5px;
    font-weight: 500; color: var(--gray-600); cursor: pointer;
    transition: all 0.2s; border: none; background: none;
  }
  .nav-link:hover { background: var(--bg); color: var(--emerald); }
  .nav-link.active-nav { background: var(--emerald-light); color: var(--emerald); }
  .nav-cta {
    background: var(--emerald);
    color: white; border: none; padding: 9px 18px;
    border-radius: 10px; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
  }
  .nav-cta:hover { background: var(--emerald-dark); transform: translateY(-1px); }
  .nav-admin-btn {
    background: var(--gold-light); color: var(--gold-dark);
    border: 1px solid #f0d08a; padding: 7px 14px;
    border-radius: 10px; font-size: 12.5px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; margin-left: 8px;
  }
  .nav-admin-btn:hover { background: #fde8bb; }

  /* ===== CONTAINER ===== */
  .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-sm { padding: 48px 0; }

  /* ===== BUTTONS ===== */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.25s; border: none; text-decoration: none;
  }
  .btn-primary {
    background: var(--emerald); color: white;
    box-shadow: 0 4px 14px rgba(45,122,79,0.35);
  }
  .btn-primary:hover { background: var(--emerald-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,122,79,0.4); }
  .btn-secondary {
    background: white; color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
  }
  .btn-secondary:hover { border-color: var(--emerald); color: var(--emerald); transform: translateY(-2px); }
  .btn-gold {
    background: var(--gold); color: white;
    box-shadow: 0 4px 14px rgba(212,130,10,0.35);
  }
  .btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
  .btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 9px; }
  .btn-lg { padding: 15px 32px; font-size: 15.5px; border-radius: 14px; }

  /* ===== BADGE ===== */
  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600;
  }
  .badge-green { background: var(--emerald-light); color: var(--emerald-dark); }
  .badge-gold { background: var(--gold-light); color: var(--gold-dark); }
  .badge-blue { background: var(--blue-light); color: var(--blue); }
  .badge-red { background: var(--red-light); color: var(--red); }
  .badge-gray { background: var(--gray-100); color: var(--gray-600); }

  /* ===== SECTION HEADERS ===== */
  .section-header { text-align: center; margin-bottom: 56px; }
  .section-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--emerald-light); color: var(--emerald);
    padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 16px;
  }
  .section-title {
    font-family: 'Lora', serif;
    font-size: 36px; font-weight: 700; color: var(--gray-900);
    line-height: 1.25; margin-bottom: 14px;
  }
  .section-desc { font-size: 16px; color: var(--gray-500); max-width: 560px; margin: 0 auto; line-height: 1.7; }

  /* ===== CARDS ===== */
  .card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--gray-100);
    overflow: hidden; transition: all 0.3s;
  }
  .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

  /* ===== FOOTER ===== */
  footer {
    background: var(--gray-900); color: var(--gray-400);
    padding: 60px 0 32px;
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
  }
  .footer-brand-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  }
  .footer-brand-logo .icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }
  .footer-brand-logo strong { color: white; font-size: 15px; font-weight: 700; }
  .footer-desc { font-size: 13.5px; line-height: 1.7; margin-bottom: 20px; }
  .footer-socials { display: flex; gap: 10px; }
  .social-btn {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer; transition: all 0.2s;
  }
  .social-btn:hover { background: var(--emerald); }
  .footer-heading { color: white; font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
  .footer-links { list-style: none; }
  .footer-links li { margin-bottom: 10px; }
  .footer-links a {
    color: var(--gray-400); font-size: 13.5px; cursor: pointer;
    text-decoration: none; transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--sage); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px; text-align: center; font-size: 13px;
  }

  /* ===== HOMEPAGE ===== */
  /* Hero */
  .hero {
    background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 50%, var(--emerald-mid) 100%);
    padding: 100px 0 90px; position: relative; overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: var(--bg);
    clip-path: ellipse(60% 100% at 50% 100%);
  }
  .hero-content { position: relative; z-index: 1; max-width: 780px; }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px; border-radius: 20px;
    color: rgba(255,255,255,0.9); font-size: 12.5px; font-weight: 600;
    margin-bottom: 24px; letter-spacing: 0.04em;
  }
  .hero h1 {
    font-family: 'Lora', serif;
    font-size: 52px; font-weight: 700; color: white;
    line-height: 1.18; margin-bottom: 20px;
  }
  .hero h1 span { color: #a8d5b5; }
  .hero-sub {
    font-size: 17px; color: rgba(255,255,255,0.8);
    line-height: 1.7; margin-bottom: 40px; max-width: 540px;
  }
  .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-stat-row {
    position: relative; z-index: 1;
    display: flex; gap: 32px; margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 32px;
  }
  .hero-stat-item { color: rgba(255,255,255,0.9); }
  .hero-stat-num { font-size: 28px; font-weight: 800; }
  .hero-stat-label { font-size: 13px; opacity: 0.7; }
  .hero-deco {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 45%; display: flex; align-items: center; justify-content: center;
    z-index: 1; opacity: 0.12;
    font-size: 200px;
  }

  /* Sambutan */
  .sambutan-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  }
  .sambutan-img-wrap {
    position: relative;
  }
  .sambutan-img {
    width: 100%; height: 420px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--emerald-light), var(--bg2));
    display: flex; align-items: center; justify-content: center;
    font-size: 80px; border: 3px solid var(--emerald-light);
    overflow: hidden;
  }
  .sambutan-badge-float {
    position: absolute; bottom: 24px; left: 24px;
    background: white; border-radius: 14px;
    padding: 14px 20px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
  }
  .sambutan-badge-float strong { display: block; font-size: 15px; color: var(--gray-900); }
  .sambutan-badge-float span { font-size: 12.5px; color: var(--emerald); }
  .sambutan-quote {
    font-family: 'Lora', serif; font-size: 22px;
    color: var(--gray-700); line-height: 1.6;
    margin-bottom: 24px; font-style: italic;
    border-left: 4px solid var(--emerald);
    padding-left: 20px;
  }
  .sambutan-nama { font-weight: 700; font-size: 16px; color: var(--gray-900); }
  .sambutan-jabatan { font-size: 13.5px; color: var(--gray-500); }

  /* Services */
  .services-bg { background: white; }
  .services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  }
  .service-card {
    background: white; border-radius: var(--radius);
    border: 1.5px solid var(--gray-100);
    padding: 28px 24px; cursor: pointer; transition: all 0.3s;
    position: relative; overflow: hidden;
  }
  .service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--sage));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
  }
  .service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--emerald-light); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 18px;
  }
  .service-icon.green { background: var(--emerald-light); }
  .service-icon.gold { background: var(--gold-light); }
  .service-icon.blue { background: var(--blue-light); }
  .service-icon.purple { background: #f3e8ff; }
  .service-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
  .service-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
  .service-card .arrow {
    margin-top: 18px; color: var(--emerald); font-size: 18px;
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
  }

  /* News */
  .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .news-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); transition: all 0.3s; cursor: pointer; }
  .news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
  .news-img {
    height: 180px; background: var(--emerald-light);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
  }
  .news-body { padding: 20px; }
  .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .news-cat {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    color: var(--emerald); letter-spacing: 0.05em;
  }
  .news-date { font-size: 12px; color: var(--gray-400); }
  .news-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.45; }
  .news-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

  /* Stats */
  .stats-section { background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)); padding: 72px 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .stat-item { text-align: center; }
  .stat-num { font-family: 'Lora', serif; font-size: 48px; font-weight: 700; color: white; }
  .stat-label { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 4px; }

  /* ===== PROFIL DESA ===== */
  .profil-header {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    padding: 80px 0; color: white;
  }
  .profil-header h1 { font-family: 'Lora', serif; font-size: 42px; font-weight: 700; margin-bottom: 12px; }
  .profil-header p { font-size: 16px; opacity: 0.8; }
  .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13.5px; opacity: 0.75; }
  .vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .vm-card {
    background: white; border-radius: var(--radius); padding: 36px;
    border: 1px solid var(--gray-100); box-shadow: var(--shadow);
  }
  .vm-card h3 { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
  .vm-card ul { list-style: none; }
  .vm-card ul li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 14.5px; color: var(--gray-600); display: flex; gap: 10px; align-items: flex-start; }
  .vm-card ul li::before { content: '✦'; color: var(--emerald); flex-shrink: 0; font-size: 10px; margin-top: 4px; }
  .sejarah-card { background: white; border-radius: var(--radius); padding: 40px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); }
  .sejarah-card p { font-size: 15px; color: var(--gray-600); line-height: 1.85; margin-bottom: 16px; }
  .org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .org-card {
    background: white; border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--gray-100); box-shadow: var(--shadow);
    text-align: center;
  }
  .org-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-light), var(--bg2));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 14px;
    border: 2px solid var(--emerald-light);
  }
  .org-card h4 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
  .org-card span { font-size: 12.5px; color: var(--emerald); font-weight: 600; }
  .org-card p { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
  .org-chief { grid-column: 1 / -1; max-width: 280px; margin: 0 auto; }

  /* ===== LAYANAN PUBLIK ===== */
  .search-big {
    background: white; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); padding: 32px 36px;
    margin-bottom: 56px;
  }
  .search-big h2 { font-family: 'Lora', serif; font-size: 26px; font-weight: 700; margin-bottom: 16px; }
  .search-input-wrap { display: flex; gap: 12px; }
  .search-input {
    flex: 1; padding: 14px 20px; border: 1.5px solid var(--gray-200);
    border-radius: 12px; font-size: 14.5px; font-family: inherit;
    outline: none; transition: all 0.2s;
  }
  .search-input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(45,122,79,0.1); }
  .layanan-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .layanan-item {
    background: white; border-radius: var(--radius);
    border: 1.5px solid var(--gray-100); padding: 24px;
    display: flex; align-items: flex-start; gap: 16px;
    cursor: pointer; transition: all 0.25s; box-shadow: var(--shadow-sm);
  }
  .layanan-item:hover { border-color: var(--emerald); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .layanan-icon { font-size: 28px; flex-shrink: 0; }
  .layanan-item h4 { font-size: 14.5px; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
  .layanan-item p { font-size: 12.5px; color: var(--gray-500); line-height: 1.55; }
  .syarat-list { list-style: none; }
  .syarat-list li {
    padding: 12px 16px; border-radius: 10px; background: var(--bg);
    margin-bottom: 8px; font-size: 13.5px; color: var(--gray-600);
    display: flex; align-items: center; gap: 10px;
  }
  .syarat-list li .check { color: var(--emerald); font-weight: 700; }
  .alur-steps { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: 8px; }
  .alur-step {
    display: flex; flex-direction: column; align-items: center;
    min-width: 160px; position: relative;
  }
  .alur-step:not(:last-child)::after {
    content: '→'; position: absolute; right: -16px; top: 30px;
    font-size: 20px; color: var(--emerald); font-weight: 700;
    z-index: 1;
  }
  .alur-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
    color: white; font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(45,122,79,0.35); margin-bottom: 14px;
  }
  .alur-step-text { text-align: center; font-size: 13px; font-weight: 600; color: var(--gray-700); line-height: 1.45; }

  /* ===== MULTI STEP FORM ===== */
  .form-page-bg { background: var(--bg); min-height: 100vh; }
  .form-page-header { background: white; border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
  .form-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
  .form-title { font-family: 'Lora', serif; font-size: 30px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
  .form-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 36px; }
  /* Progress */
  .progress-steps { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
  .p-step {
    display: flex; flex-direction: column; align-items: center; flex: 1;
    position: relative;
  }
  .p-step:not(:last-child)::after {
    content: '';
    position: absolute; top: 20px; left: 50%; width: 100%;
    height: 2px; background: var(--gray-200); z-index: 0;
  }
  .p-step.done::after, .p-step.active::after { background: var(--emerald); }
  .p-circle {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; position: relative; z-index: 1;
    border: 2px solid var(--gray-200); background: white; color: var(--gray-400);
    transition: all 0.3s;
  }
  .p-step.active .p-circle { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-light); }
  .p-step.done .p-circle { border-color: var(--emerald); background: var(--emerald); color: white; }
  .p-label { font-size: 11px; color: var(--gray-400); margin-top: 8px; text-align: center; font-weight: 600; }
  .p-step.active .p-label { color: var(--emerald); }
  .p-step.done .p-label { color: var(--emerald-dark); }
  /* Form elements */
  .form-step { display: none; }
  .form-step.active { display: block; animation: fadeSlide 0.35s ease; }
  @keyframes fadeSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
  .form-card { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); }
  .form-card h2 { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
  .form-card .step-desc { font-size: 13.5px; color: var(--gray-500); margin-bottom: 28px; }
  .form-group { margin-bottom: 20px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; }
  .form-group label span { color: var(--red); }
  .form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--gray-200); border-radius: 10px;
    font-size: 14px; font-family: inherit; background: white;
    outline: none; transition: all 0.2s; color: var(--gray-800);
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(45,122,79,0.1);
  }
  .form-textarea { resize: vertical; min-height: 100px; }
  .upload-area {
    border: 2px dashed var(--gray-200); border-radius: 12px;
    padding: 24px; text-align: center; cursor: pointer;
    transition: all 0.2s;
  }
  .upload-area:hover { border-color: var(--emerald); background: var(--emerald-light); }
  .upload-area .icon { font-size: 32px; margin-bottom: 8px; }
  .upload-area p { font-size: 13px; color: var(--gray-500); }
  .upload-area strong { color: var(--emerald); font-size: 13.5px; }
  .upload-slots { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .upload-slot { background: var(--bg); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.2s; border: 1.5px solid var(--gray-200); }
  .upload-slot:hover { border-color: var(--emerald); background: var(--emerald-light); }
  .upload-slot-icon { font-size: 24px; }
  .upload-slot-text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--gray-800); }
  .upload-slot-text span { font-size: 12px; color: var(--gray-400); }
  .upload-slot .status-icon { margin-left: auto; font-size: 20px; color: var(--gray-300); }
  .upload-slot.uploaded .status-icon { color: var(--emerald); }
  .upload-slot.uploaded { border-color: var(--emerald); background: var(--emerald-light); }
  .konfirmasi-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; }
  .konfirmasi-row .label { color: var(--gray-500); }
  .konfirmasi-row .value { font-weight: 600; color: var(--gray-800); text-align: right; }
  .agree-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; cursor: pointer; }
  .agree-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--emerald); margin-top: 2px; flex-shrink: 0; }
  .agree-check span { font-size: 13.5px; color: var(--gray-600); line-height: 1.55; }
  .form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
  .btn-back { background: var(--gray-100); color: var(--gray-600); padding: 11px 22px; border-radius: 10px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
  .btn-back:hover { background: var(--gray-200); }

  /* ===== SUCCESS PAGE ===== */
  .success-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg); padding: 40px 24px;
  }
  .success-card {
    background: white; border-radius: var(--radius-xl);
    padding: 64px 56px; text-align: center;
    max-width: 560px; width: 100%;
    box-shadow: var(--shadow-xl); border: 1px solid var(--gray-100);
  }
  .success-icon {
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-light), #c8e8d4);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; margin: 0 auto 28px;
    animation: scaleIn 0.5s ease;
  }
  @keyframes scaleIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .success-card h2 { font-family: 'Lora', serif; font-size: 28px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
  .success-card > p { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
  .resi-box {
    background: var(--emerald-light); border: 2px solid var(--emerald);
    border-radius: 14px; padding: 20px; margin-bottom: 28px;
  }
  .resi-box .resi-label { font-size: 12px; color: var(--emerald); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
  .resi-box .resi-num { font-family: 'Lora', serif; font-size: 26px; font-weight: 700; color: var(--emerald-dark); letter-spacing: 0.04em; }
  .next-steps {
    background: var(--bg); border-radius: 12px;
    padding: 18px 20px; text-align: left; margin-bottom: 28px;
  }
  .next-steps h4 { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 12px; }
  .next-step-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--gray-600); }
  .next-step-item .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--emerald); color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
  .success-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

  /* ===== STATUS PAGE ===== */
  .status-wrap { max-width: 700px; margin: 0 auto; }
  .status-search { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); margin-bottom: 32px; }
  .status-result { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); }
  .status-result h3 { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
  .status-result .resi-mini { font-size: 13px; color: var(--gray-500); margin-bottom: 28px; }
  .timeline { position: relative; }
  .timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 2px; background: var(--gray-200);
  }
  .tl-item { display: flex; gap: 20px; margin-bottom: 28px; position: relative; }
  .tl-dot {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0; z-index: 1;
    border: 2px solid var(--gray-200); background: white;
  }
  .tl-item.done .tl-dot { background: var(--emerald); border-color: var(--emerald); }
  .tl-item.current .tl-dot { background: var(--gold-light); border-color: var(--gold); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,130,10,0.4); } 50% { box-shadow: 0 0 0 8px rgba(212,130,10,0); } }
  .tl-content { flex: 1; padding-top: 6px; }
  .tl-content h4 { font-size: 15px; font-weight: 700; color: var(--gray-900); }
  .tl-item.pending .tl-content h4 { color: var(--gray-400); }
  .tl-content p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
  .tl-content .tl-time { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

  /* ===== BERITA ===== */
  .news-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
  .filter-btn {
    padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--gray-200); background: white; color: var(--gray-600);
    cursor: pointer; transition: all 0.2s;
  }
  .filter-btn:hover, .filter-btn.active { background: var(--emerald); border-color: var(--emerald); color: white; }
  .transparansi-card { background: white; border-radius: var(--radius); padding: 28px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); }
  .transparansi-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
  .transparansi-card p { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
  canvas { max-height: 220px; }

  /* ===== GALERI ===== */
  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery-item {
    border-radius: var(--radius); overflow: hidden;
    background: var(--emerald-light); aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; cursor: pointer; transition: all 0.3s;
    position: relative;
  }
  .gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
  .gallery-item-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white; padding: 16px; font-size: 13px; font-weight: 600;
  }
  .gallery-item:nth-child(3n+1) { background: linear-gradient(135deg, #d4edda, #a8d5b5); }
  .gallery-item:nth-child(3n+2) { background: linear-gradient(135deg, #fef3e2, #f5d38a); }
  .gallery-item:nth-child(3n) { background: linear-gradient(135deg, #e0f0ff, #9bcde4); }

  /* ===== KONTAK ===== */
  .kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .kontak-info { display: flex; flex-direction: column; gap: 16px; }
  .kontak-item { background: white; border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); display: flex; align-items: flex-start; gap: 16px; }
  .kontak-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--emerald-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
  .kontak-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 3px; }
  .kontak-item span { font-size: 14px; color: var(--gray-600); }
  .kontak-form { background: white; border-radius: var(--radius); padding: 36px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); }
  .kontak-form h3 { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
  .kontak-form p { font-size: 13.5px; color: var(--gray-500); margin-bottom: 24px; }
  .map-placeholder { background: var(--emerald-light); border-radius: var(--radius); height: 220px; display: flex; align-items: center; justify-content: center; font-size: 48px; border: 1px solid var(--emerald-light); }

  /* ===== ADMIN ===== */
  .admin-layout { display: flex; min-height: 100vh; }
  .admin-sidebar {
    width: 256px; background: var(--gray-900); color: white;
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; bottom: 0; z-index: 50;
  }
  .admin-sidebar-logo {
    padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 12px;
  }
 .sidebar-logo-icon{
    width:40px;
    height:40px;
    border-radius:10px;
    background:var(--emerald); /* tetap hijau */
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.sidebar-logo-icon img{
    width:28px;
    height:28px;
    object-fit:contain;
}
  .admin-sidebar-logo strong { color: white; font-size: 13.5px; line-height: 1.3; }
  .admin-sidebar-logo span { color: rgba(255,255,255,0.5); font-size: 11.5px; }
  .admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
  .admin-nav-section { margin-bottom: 24px; }
  .admin-nav-section-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); padding: 0 8px; margin-bottom: 8px; font-weight: 700; }
  .admin-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px; cursor: pointer;
    transition: all 0.2s; font-size: 13.5px; color: rgba(255,255,255,0.65);
    margin-bottom: 2px; font-weight: 500;
  }
  .admin-nav-item:hover { background: rgba(255,255,255,0.06); color: white; }
  .admin-nav-item.active-admin-nav { background: var(--emerald); color: white; }
  .admin-nav-item .icon { font-size: 17px; }
  .admin-main { margin-left: 256px; flex: 1; background: var(--bg); }
  .admin-topbar {
    background: white; border-bottom: 1px solid var(--gray-200);
    padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 40;
  }
  .admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--gray-900); }
  .admin-user { display: flex; align-items: center; gap: 12px; }
  .admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--emerald-light); display: flex; align-items: center; justify-content: center; font-size: 16px; }
  .admin-user-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--gray-900); }
  .admin-user-info span { font-size: 11.5px; color: var(--gray-500); }
  .admin-content { padding: 32px; }
  .admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
  .admin-stat-card { background: white; border-radius: var(--radius); padding: 22px; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
  .admin-stat-card .icon { font-size: 28px; margin-bottom: 12px; }
  .admin-stat-card .num { font-size: 30px; font-weight: 800; color: var(--gray-900); }
  .admin-stat-card .label { font-size: 12.5px; color: var(--gray-500); margin-top: 4px; }
  .admin-stat-card .trend { font-size: 12px; font-weight: 600; margin-top: 8px; }
  .admin-stat-card .trend.up { color: var(--emerald); }
  .admin-stat-card .trend.warn { color: var(--gold); }
  .admin-2col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 24px; }
  .admin-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
  .admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
  .admin-card-header h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); }
  .admin-card-body { padding: 20px 24px; }
  /* Table */
  .data-table { width: 100%; border-collapse: collapse; }
  .data-table th { padding: 11px 14px; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--gray-100); }
  .data-table td { padding: 13px 14px; font-size: 13.5px; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); }
  .data-table tr:hover td { background: var(--gray-50); }
  .data-table tr:last-child td { border-bottom: none; }
  .action-btns { display: flex; gap: 6px; }
  .action-btn { padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
  .action-btn.verify { background: var(--emerald-light); color: var(--emerald); }
  .action-btn.verify:hover { background: var(--emerald); color: white; }
  .action-btn.detail { background: var(--blue-light); color: var(--blue); }
  .action-btn.detail:hover { background: var(--blue); color: white; }
  .action-btn.reject { background: var(--red-light); color: var(--red); }
  .action-btn.reject:hover { background: var(--red); color: white; }
  .table-toolbar { padding: 16px 24px; border-bottom: 1px solid var(--gray-100); display: flex; gap: 12px; align-items: center; }
  .table-search { flex: 1; padding: 9px 14px; border: 1.5px solid var(--gray-200); border-radius: 9px; font-size: 13px; font-family: inherit; outline: none; }
  .table-search:focus { border-color: var(--emerald); }
  .table-filter { padding: 9px 12px; border: 1.5px solid var(--gray-200); border-radius: 9px; font-size: 13px; font-family: inherit; background: white; outline: none; }
  /* Login */
  .login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)); padding: 24px; }
  .login-card { background: white; border-radius: var(--radius-xl); padding: 56px 48px; max-width: 440px; width: 100%; box-shadow: var(--shadow-xl); }
  .login-logo { text-align: center; margin-bottom: 36px; }
  .login-logo .icon { font-size: 48px; display: block; margin-bottom: 12px; }
  .login-logo h2 { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: var(--gray-900); }
  .login-logo p { font-size: 13.5px; color: var(--gray-500); }
  .activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-50); }
  .activity-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .activity-dot.green { background: var(--emerald-light); }
  .activity-dot.gold { background: var(--gold-light); }
  .activity-dot.blue { background: var(--blue-light); }
  .activity-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); }
  .activity-text span { font-size: 12px; color: var(--gray-400); }
  .admin-panel {
    display: flex;
}

  /* ===== TOAST ===== */
  .toast {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    background: var(--gray-900); color: white;
    padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-xl); transform: translateY(100px); opacity: 0;
    transition: all 0.35s; pointer-events: none; display: flex; align-items: center; gap: 10px;
  }
  .toast.show { transform: translateY(0); opacity: 1; }
  .toast.success { background: var(--emerald-dark); }
  .toast.error { background: var(--red); }

  /* ===== RESPONSIVE HELPERS ===== */
  @media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-2col { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .hero h1 { font-size: 34px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .vm-grid { grid-template-columns: 1fr; }
    .org-grid { grid-template-columns: repeat(2, 1fr); }
    .kontak-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .layanan-list { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .sambutan-wrap { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
   .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1000;
}

.admin-sidebar.show {
    transform: translateX(0);
}
    .admin-main { margin-left: 0; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-deco { display: none; }
    .hero-stat-row { flex-wrap: wrap; gap: 20px; }
  }
.hidden-home{
    display:none !important;
}

/* Tombol menu mobile */
.mobile-menu-btn,
.admin-menu-btn{
    display:none;
    border:none;
    background:none;
    font-size:28px;
    cursor:pointer;
    color:var(--gray-800);
}

@media (max-width:768px){

    .mobile-menu-btn{
        display:block;
    }

    .admin-menu-btn{
        display:block;
    }

    .nav-links{
        display:none;
        position:absolute;
        top:68px;
        left:0;
        right:0;
        background:#fff;
        flex-direction:column;
        padding:20px;
        gap:10px;
        box-shadow:var(--shadow-md);
        z-index:999;
    }

    .nav-links.show{
        display:flex;
    }

    .admin-sidebar{
        position:fixed;
        left:-260px;
        top:0;
        width:256px;
        height:100%;
        transition:.3s;
        z-index:9999;
    }

    .admin-sidebar.show{
        left:0;
    }

    .admin-main{
        margin-left:0;
        width:100%;
    }

    .admin-topbar{
        padding:0 16px;
    }

    .admin-content{
        padding:16px;
    }
}
/* ================= MOBILE ADMIN ================= */
@media (max-width:768px){

    .admin-content{
        padding:16px;
    }

    .admin-card,
    .vm-card,
    .transparansi-card{
        padding:18px;
    }

    .admin-stats-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .admin-2col{
        grid-template-columns:1fr;
    }

    .table-toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .table-search,
    .table-filter{
        width:100%;
    }

    .admin-card-body{
    overflow:visible !important;
}
   .data-table{
    width:100%;
}

    .form-row{
        grid-template-columns:1fr;
    }

    .form-card{
        padding:20px;
    }

    .form-actions{
        flex-direction:column;
        gap:12px;
    }

    .form-actions button{
        width:100%;
    }

    .admin-topbar h1{
        font-size:18px;
    }

    .admin-user-info{
        display:none;
    }

    .admin-avatar{
        width:32px;
        height:32px;
        font-size:14px;
    }
    .user-card-actions form{
    width:100%;
}

.user-card-actions form button{
    width:100%;
}

}
/* ===== USER RESPONSIVE ===== */

.desktop-table{
    display:block;
}

.mobile-users{
    display:none;
}

@media (max-width:768px){

    .desktop-table{
        display:none;
    }

    .mobile-users{
        display:flex;
        flex-direction:column;
        gap:16px;
    }

   .user-card{
    background:#fff;
    border-radius:14px;
    padding:18px;
    box-shadow:var(--shadow-sm);
    border:1px solid var(--gray-200);
}


.user-card-header{
    flex-direction:column;
}

.user-card-header .badge{
    width:max-content;
}

    .user-card-header h4{
        margin:0;
        font-size:16px;
    }

    .user-card-header span{
        font-size:13px;
        color:var(--gray-500);
        word-break:break-word;
    }

    .user-card-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
}

.user-card-actions form{
    width:100%;
    margin:0;
}

.user-card-actions .btn,
.user-card-actions button,
.user-card-actions .action-btn{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:12px;
    white-space:nowrap;
}
}




/* FIX MOBILE ADMIN USER PANEL */

@media(max-width:768px){

    .admin-card{
        overflow:hidden;
    }

    .admin-card-header{
        padding:16px;
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    .admin-card-header .btn{
        width:100%;
        justify-content:center;
    }


    .user-card-header{
        flex-direction:column;
        gap:10px;
    }


    .user-card-header > div{
        max-width:100%;
        overflow:hidden;
    }


    .user-card-header span{
        overflow-wrap:anywhere;
    }


    .user-card-actions{
        width:100%;
    }


    .user-card-actions a,
    .user-card-actions button{
        width:100%;
    }

}
/* MOBILE USER ACTION HORIZONTAL SCROLL */
@media(max-width:768px){

    .user-card-actions{
        display:flex;
        flex-wrap:nowrap;
        gap:10px;
        overflow-x:auto;
        padding-bottom:8px;
        width:100%;
        scrollbar-width:none;
    }

    .user-card-actions::-webkit-scrollbar{
        display:none;
    }

    .user-card-actions a,
    .user-card-actions button,
    .user-card-actions form{
        flex:0 0 auto;
        width:auto;
    }

    .user-card-actions .action-btn,
    .user-card-actions .btn{
        white-space:nowrap;
        min-width:max-content;
    }

    .user-card-actions form button{
        width:auto;
    }

}


