* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
	--primary: #f4511e;
	--primary-dark: #d84315;
	--ink: #1c2434;
	--muted: #6b7280;
	--bg: #f7f7fb;
	--card: #ffffff;
	--line: #e5e7eb;
	--ok: #16a34a;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.55;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.nav {
	background: var(--card);
	border-bottom: 1px solid var(--line);
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	position: sticky;
	top: 0;
	z-index: 10;
	flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo .beta {
	font-size: 10px; font-weight: 700; text-transform: uppercase;
	background: #fff3e0; color: var(--primary-dark);
	border: 1px solid #ffcc9c; border-radius: 99px;
	padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}
.nav nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.inline { display: inline; }
.linklike {
	background: none; border: none; color: var(--muted);
	font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 0;
}

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
main.wide { max-width: 1080px; }

h1 { font-size: 24px; margin: 10px 0 6px; }
h2 { font-size: 17px; margin: 18px 0 10px; }
h3 { font-size: 15px; margin: 6px 0; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 13px; }

.btn {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	border: 1px solid var(--primary);
	border-radius: 10px;
	padding: 11px 18px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}
.btn:active { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.wfull { width: 100%; }

.hero { text-align: center; padding: 34px 6px 8px; }
.hero h1 { font-size: 28px; line-height: 1.25; }
.hero em { color: var(--primary); font-style: normal; }
.hero p { margin: 12px auto; max-width: 420px; color: var(--muted); }
.cta { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; flex-wrap: wrap; }

.notice {
	background: #fff8e1; border: 1px solid #ffe082; color: #7a5c00;
	padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin: 12px 0;
}
.alert {
	background: #fdecea; border: 1px solid #f5c6c0; color: #a13529;
	padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin: 10px 0;
}

.card {
	background: var(--card); border: 1px solid var(--line);
	border-radius: 14px; padding: 14px 16px; margin: 10px 0;
}
.cards3 { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cards2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) {
	.cards3 { grid-template-columns: repeat(3, 1fr); }
	.cards2 { grid-template-columns: repeat(2, 1fr); }
	.hero h1 { font-size: 34px; }
}
.steps .num {
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--primary); color: #fff; font-weight: 800;
	display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }

.authbox { max-width: 380px; margin: 24px auto; }
.authwrap { max-width: 380px; margin: 14px auto; }
.center { text-align: center; }
.btn-big { padding: 14px 34px; font-size: 17px; border-radius: 12px; }
.joinbtns { display: flex; gap: 8px; margin-top: 10px; }
.joinbtns.center2 { justify-content: center; }
.spaced { margin-top: 8px; }
a.wfull { display: block; }
form label { display: block; font-weight: 600; font-size: 13.5px; margin: 10px 0; }
input, textarea, select {
	width: 100%; padding: 10px 12px; margin-top: 4px;
	border: 1px solid var(--line); border-radius: 10px;
	font: inherit; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #ffab91; border-color: var(--primary); }

.balances .card { text-align: center; padding: 10px 6px; }
.bal-label { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.bal-val { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }
.bal-val.ok { color: var(--ok); }

.pastebox textarea { margin-bottom: 10px; }
.newlink { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.linkrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linkrow code, code.short {
	background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px;
	padding: 6px 10px; font-size: 13px; word-break: break-all;
}

.list { display: flex; flex-direction: column; gap: 8px; }
.linkitem { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.linkmeta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.linkmeta .dest {
	color: var(--muted); font-size: 12px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px;
}
.convitem { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.convmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.pill { border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.st-pending  { background: #fff8e1; color: #8a6d00; border: 1px solid #ffe082; }
.st-approved { background: #e3f2fd; color: #1258a8; border: 1px solid #a6d1fa; }
.st-paid     { background: #e8f5e9; color: #196c2e; border: 1px solid #a5d6a7; }
.st-rejected { background: #fdecea; color: #a13529; border: 1px solid #f5c6c0; }

.empty { text-align: center; padding: 26px 16px; }

footer {
	border-top: 1px solid var(--line);
	padding: 16px; text-align: center;
	color: var(--muted); font-size: 12px;
	max-width: 640px; margin: 0 auto;
}

/* ===== App shell (member area ala aplikasi) ===== */
:root { --navy: #16224d; --navy2: #1d2c63; --gold: #f5b301; }
body.appbody { background: #eef1f7; }
.appbar {
	background: #fff; border-bottom: 1px solid var(--line);
	display: flex; align-items: center; gap: 10px;
	padding: 14px 16px; position: sticky; top: 0; z-index: 10;
}
.applogo { width: 40px; height: 40px; border-radius: 12px; }
.apptitle { display: flex; flex-direction: column; line-height: 1.25; }
.apptitle strong { font-size: 20px; letter-spacing: .3px; }
.apptitle span { font-size: 12px; color: var(--muted); }
.logoimg { width: 22px; height: 22px; border-radius: 6px; vertical-align: -4px; margin-right: 2px; }

.appwrap { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 14px 14px 84px; }
.appwrap h1 { font-size: 21px; margin: 8px 0 4px; }
.appwrap h2 { font-size: 15.5px; margin: 18px 0 8px; }

.apphero {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
	border-radius: 20px; padding: 16px 14px 18px; color: #fff;
	box-shadow: 0 8px 24px rgba(22, 34, 77, .25);
}
.pasterow {
	display: flex; align-items: center; gap: 8px;
	background: #fff; border-radius: 99px; padding: 6px 12px; margin-bottom: 10px;
}
.pasterow input { border: none; padding: 8px 2px; margin: 0; flex: 1; min-width: 0; font-size: 14px; }
.pasterow input:focus { outline: none; }
.pasteicon { width: 20px; height: 20px; color: var(--navy); flex: none; }
.mp-mini { flex: none; font-size: 18px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #232323; }
.btn-gold:active { background: #dda000; }
.ayo { text-align: center; font-weight: 700; font-size: 13.5px; margin: 14px 0 10px; color: #fff; }
.estnote { color: #dfe5f5; font-size: 12px; text-align: center; margin-top: 8px; }
.estnote strong { color: var(--gold); }
.steps4 { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; text-align: center; }
.step span { font-size: 10.5px; line-height: 1.3; color: #dfe5f5; }
.stepicon {
	width: 46px; height: 46px; border-radius: 50%;
	background: #fff; color: var(--navy);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.stepicon svg { width: 22px; height: 22px; }
.stepicon img { width: 30px; height: 30px; border-radius: 50%; }
.stepline { flex: 1; height: 2px; background: rgba(255,255,255,.35); margin-top: 22px; min-width: 6px; }

.mpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mpcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; text-align: center; }
.mpcard strong { font-size: 12.5px; }
.mpicon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mp-off { opacity: .55; }
.tag { font-size: 10px; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: #eef1f7; color: var(--muted); }
.tag-on { background: #e8f5e9; color: #196c2e; }

.bottomnav {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
	background: #fff; border-top: 1px solid var(--line);
	display: flex; justify-content: space-around;
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	max-width: 480px; margin: 0 auto;
}
.bottomnav a {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
	padding: 4px 14px; border-radius: 12px; min-width: 72px;
}
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.active { color: var(--navy); background: #eef1f7; }

.appfoot { border: none; padding: 10px 16px 90px; text-align: center; color: var(--muted); font-size: 11px; max-width: 480px; margin: 0 auto; }

.profilcard { display: flex; align-items: center; gap: 12px; }
.avatar {
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--navy); color: #fff; font-weight: 800; font-size: 22px;
	display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.profilinfo { display: flex; flex-direction: column; }
.rowbetween { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bigcode { font-size: 20px; display: block; }

/* Admin */
body.admin main { max-width: 1080px; }
.stat { text-align: center; }
.tablewrap { overflow-x: auto; padding: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); white-space: nowrap; }
.statusform { display: flex; gap: 6px; align-items: center; }
.statusform select { width: auto; padding: 5px 8px; margin: 0; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.grid2 button { grid-column: 1 / -1; margin-top: 10px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
