:root {
  --primary: #6C3DE1; --primary-dark: #4f2aad; --accent: #F5A623;
  --bg: #F8F7FF; --card: #FFFFFF; --text: #1A1A2E;
  --muted: #6B7280; --success: #10B981; --danger: #EF4444;
  --border: #E5E7EB; --radius: 16px;
  --shadow: 0 4px 24px rgba(108,61,225,0.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { text-decoration: none; }

/* NAVBAR */
.navbar { background: var(--card); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar-brand { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.navbar-back { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }

/* CONTAINER */
.container { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }

/* CARD */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }

/* FORM */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.95rem; color: var(--text); background: var(--bg); transition: border 0.2s; outline: none; }
.form-input:focus { border-color: var(--primary); background: white; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* BUTTONS */
.btn { width: 100%; padding: 14px; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #8b5cf6); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(108,61,225,0.3); }
.btn-success { background: linear-gradient(135deg, var(--success), #059669); color: white; }
.btn-wa { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.btn-outline { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-danger-outline { background: white; color: var(--danger); border: 2px solid var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 8px; width: auto; }
.btn-xs { padding: 5px 10px; font-size: 0.75rem; border-radius: 7px; width: auto; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }

/* POSTER */
.poster-wrap { width: 100%; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(135deg, var(--primary), #a78bfa); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; }
.poster-placeholder { text-align: center; color: white; padding: 20px; }
.poster-img { width: 100%; height: 100%; object-fit: cover; }
.webinar-tag { background: rgba(255,255,255,0.2); border-radius: 20px; padding: 4px 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; display: inline-block; margin-bottom: 10px; color: white; }
.poster-placeholder h1 { font-size: 1.4rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.poster-placeholder p { font-size: 0.8rem; opacity: 0.85; }
.poster-date { position: absolute; bottom: 14px; right: 14px; background: var(--accent); color: white; border-radius: 10px; padding: 6px 12px; font-size: 0.75rem; font-weight: 700; }

/* COPYWRITING */
.copywriting-section { background: var(--card); border-radius: 0 0 var(--radius) var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.copywriting-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.copywriting-section p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.highlight-list { list-style: none; margin-top: 14px; }
.highlight-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text); margin-bottom: 8px; }
.highlight-list li::before { content: "✦"; color: var(--accent); font-size: 0.75rem; margin-top: 2px; flex-shrink: 0; }

/* INFO / WARNING BOXES */
.info-box { background: #EEF2FF; border-left: 4px solid var(--primary); border-radius: 8px; padding: 12px 14px; font-size: 0.83rem; color: var(--text); line-height: 1.6; }
.warning-box { background: #FFFBEB; border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; font-size: 0.83rem; color: #92400E; line-height: 1.6; }
.success-box { background: #ECFDF5; border-left: 4px solid var(--success); border-radius: 8px; padding: 12px 14px; font-size: 0.83rem; color: #065F46; line-height: 1.6; }
.error-box { background: #FEF2F2; border-left: 4px solid var(--danger); border-radius: 8px; padding: 12px 14px; font-size: 0.83rem; color: #991B1B; line-height: 1.6; }

/* INVOICE */
.invoice-header { background: linear-gradient(135deg, var(--primary), #8b5cf6); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; color: white; text-align: center; }
.invoice-header .label { font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.invoice-header .code { font-size: 1.8rem; font-weight: 800; letter-spacing: 3px; margin: 4px 0; }
.invoice-header .amount { font-size: 1.1rem; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; margin-top: 10px; }
.status-pending { background: rgba(245,166,35,0.2); color: var(--accent); }
.status-paid    { background: rgba(16,185,129,0.2); color: var(--success); }
.status-review  { background: rgba(59,130,246,0.2); color: #3B82F6; }
.status-cancelled { background: rgba(239,68,68,0.2); color: var(--danger); }

/* REKENING */
.rekening-item { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.bank-name  { font-weight: 700; font-size: 0.9rem; }
.acc-number { font-size: 1rem; font-weight: 600; color: var(--primary); letter-spacing: 1px; }
.acc-name   { font-size: 0.78rem; color: var(--muted); }
.copy-btn { background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; color: var(--primary); transition: all 0.2s; }
.copy-btn:hover { background: var(--primary); color: white; }
.copy-btn.copied { background: var(--success); color: white; border-color: var(--success); }

/* UPLOAD AREA */
.upload-area { border: 2px dashed var(--border); border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg); }
.upload-area:hover { border-color: var(--primary); background: #f0ebff; }
.upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-area p { color: var(--muted); font-size: 0.85rem; }
.upload-label { color: var(--primary); font-weight: 600; }
.proof-thumb { width: 100%; border-radius: 10px; margin-top: 10px; border: 2px solid var(--border); max-height: 300px; object-fit: contain; }

/* THANK YOU */
.thankyou-hero { text-align: center; padding: 40px 20px 20px; }
.thankyou-hero .icon { font-size: 4rem; margin-bottom: 16px; }
.thankyou-hero h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.thankyou-hero p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.wa-group-btn { background: linear-gradient(135deg, #25D366, #128C7E); color: white; border-radius: 14px; padding: 16px; text-align: center; display: block; font-weight: 700; font-size: 1rem; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(37,211,102,0.3); }

/* DIVIDER */
.divider { text-align: center; margin: 16px 0; color: var(--muted); font-size: 0.82rem; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* ADMIN LOGIN */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1A1A2E, #16213E); padding: 20px; }
.admin-login-card { background: var(--card); border-radius: 20px; padding: 36px 28px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.admin-login-card .logo { text-align: center; margin-bottom: 28px; }
.admin-login-card .logo span { font-size: 2.5rem; }
.admin-login-card .logo h2 { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.admin-login-card .logo p { color: var(--muted); font-size: 0.82rem; }

/* ADMIN NAV */
.admin-nav { background: linear-gradient(135deg, var(--primary), #4f2aad); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.admin-nav-brand { color: white; font-weight: 800; font-size: 1rem; }
.admin-nav-actions { display: flex; gap: 10px; }
.admin-nav-btn { background: rgba(255,255,255,0.15); color: white; border: none; border-radius: 8px; padding: 6px 12px; font-size: 0.78rem; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; }
.admin-nav-btn:hover { background: rgba(255,255,255,0.25); }

/* ADMIN TABS */
.admin-tabs { background: var(--card); padding: 0 16px; border-bottom: 2px solid var(--border); display: flex; gap: 4px; overflow-x: auto; }
.admin-tab { padding: 14px 16px; font-size: 0.82rem; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-decoration: none; display: inline-block; }
.admin-tab:hover { color: var(--primary); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-content { padding: 20px 16px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.stat-num   { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ORDERS */
.order-item { background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.order-item-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.order-item-name { font-weight: 700; font-size: 0.95rem; }
.order-item-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.order-item-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* WEBINAR LIST */
.webinar-select-item { border: 2px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.webinar-poster-mini { width: 60px; height: 60px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #a78bfa); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; flex-shrink: 0; }
.webinar-name  { font-weight: 700; font-size: 0.9rem; }
.webinar-date  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.webinar-price { font-size: 0.88rem; color: var(--primary); font-weight: 600; margin-top: 2px; }
.webinar-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* REKENING ADMIN */
.rekening-admin-item { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.rekening-admin-info { font-size: 0.85rem; }
.rekening-admin-info strong { display: block; font-size: 0.9rem; }
.primary-badge { background: var(--primary); color: white; font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; display: inline-block; margin-left: 6px; }
.active-badge  { background: var(--success); color: white; font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; display: inline-block; margin-left: 6px; }

/* FLASH MESSAGE */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.85rem; font-weight: 600; }
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 20px; padding: 24px; width: 100%; max-width: 420px; max-height: 80vh; overflow-y: auto; position: relative; }
.modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.modal-close  { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }

/* MISC */
.text-muted { color: var(--muted); font-size: 0.85rem; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table th { text-align: left; padding: 8px 10px; background: var(--bg); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
table td { padding: 10px; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
