/* StickerEcho web v1.1. Brutalism, aksen hijau. Ikon CSS saja, tanpa emoji. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #FFFDF0; --fg: #111111; --muted: #5a5a5a; --card: #FFFFFF;
  --line: #111111; --sh: #111111; --yel: #FFD400; --accent: #1FA855;
  --accent-fg: #fff; --ok-bg: #B9F2CF; --warn-bg: #FFE89A; --err: #E03131;
}
html[data-theme="gelap"] {
  --bg: #161616; --fg: #FFFDF0; --muted: #A8A8A8; --card: #1E1E1E;
  --line: #FFFDF0; --sh: #000000; --ok-bg: #123B22; --warn-bg: #3A2E00;
}
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #111111; color: #FFFDF0; padding: 14px 18px;
  border-bottom: 3px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo { width: 56px; height: 56px; border-radius: 12px; border: 2px solid #25D366; flex: none; }
h1 { margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.ver { border: 2px solid #FFD400; color: #FFD400; font-size: 11px; font-weight: 800; padding: 1px 7px; letter-spacing: 1px; }
.tagline { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: #FFD400; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--card); border: 3px solid var(--line); border-radius: 16px;
  padding: 16px 18px; margin: 14px 0; box-shadow: 5px 5px 0 var(--sh);
}
h2 { margin: 0 0 10px; font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; }
h3 { margin: 14px 0 6px; font-size: 14px; font-weight: 900; text-transform: uppercase; }
.nomor {
  display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center;
  background: var(--yel); color: #111; border: 2px solid var(--line); border-radius: 50%; margin-right: 6px;
}
.muted { color: var(--muted); font-size: 13px; }
.note { background: var(--warn-bg); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.error { color: var(--err); font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button {
  flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 3px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg);
  padding: 12px 6px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase;
  cursor: pointer; box-shadow: 3px 3px 0 var(--sh);
}
.tabs button.on { background: var(--accent); color: #fff; box-shadow: 1px 1px 0 var(--sh); }
.ico { display: inline-block; width: 28px; height: 21px; position: relative; flex: none; }
.ico-video { border: 3px solid currentColor; border-radius: 5px; }
.ico-video::after { content: ""; position: absolute; left: 10px; top: 5px; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ico-photo { border: 3px solid currentColor; border-radius: 5px; }
.ico-photo::before { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; left: 4px; top: 3px; }
.ico-photo::after { content: ""; position: absolute; left: 3px; bottom: 2px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 8px solid currentColor; }
.ico-note::before { content: ""; position: absolute; left: 9px; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.ico-note::after { content: ""; position: absolute; left: 16px; bottom: 4px; width: 3px; height: 17px; background: currentColor; }
.ico-gif { border: 3px solid currentColor; border-radius: 5px; }
.ico-gif::after { content: "GIF"; position: absolute; left: 0; right: 0; top: 4px; font-size: 9px; font-weight: 900; text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.filebtn {
  display: inline-block; padding: 10px 16px; border-radius: 10px; border: 3px solid var(--line);
  background: var(--accent); color: var(--accent-fg); font-weight: 900; text-transform: uppercase;
  cursor: pointer; box-shadow: 4px 4px 0 var(--sh);
}
.btn {
  padding: 10px 18px; border-radius: 10px; border: 3px solid var(--line); background: var(--card);
  color: var(--fg); font: inherit; font-weight: 900; text-transform: uppercase; cursor: pointer;
  box-shadow: 4px 4px 0 var(--sh); text-decoration: none; display: inline-block;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.utama { background: var(--accent); color: var(--accent-fg); }
.btn.kecil { padding: 6px 12px; font-size: 12.5px; }
.btn.saweria { background: var(--yel); color: #111; }
input[type="text"], input[type="tel"], select {
  padding: 8px; border-radius: 8px; border: 2px solid var(--line);
  background: var(--card); color: var(--fg); font: inherit; font-weight: 600; max-width: 100%;
}
input[type="range"] { width: 100%; accent-color: var(--accent); }
label { font-weight: 700; font-size: 14px; }
#videoPrev, #imgPrev { display: block; width: 100%; max-height: 300px; background: #000; border: 3px solid var(--line); border-radius: 10px; object-fit: contain; }
#cropWrap { position: relative; display: inline-block; max-width: 100%; }
#cropImg { display: block; max-width: 100%; max-height: 320px; border: 3px solid var(--line); border-radius: 10px; }
#cropBox {
  position: absolute; border: 3px solid #FFD400; background: rgba(255, 212, 0, .08);
  cursor: move; touch-action: none;
}
#cropHandle {
  position: absolute; right: -10px; bottom: -10px; width: 28px; height: 28px;
  background: #FFD400; border: 3px solid var(--line); border-radius: 6px; cursor: nwse-resize;
}
.result { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
#resultImg {
  width: 150px; height: 150px; object-fit: contain; border: 3px solid var(--line); border-radius: 10px;
  background: repeating-conic-gradient(#bbb 0 25%, #eee 0 50%) 50% / 18px 18px;
}
details { margin-top: 10px; border-top: 2px solid var(--line); padding-top: 10px; }
summary { cursor: pointer; font-weight: 900; }
.tentang { text-align: center; }
@media (max-width: 520px) {
  h1 { font-size: 18px; }
  .logo { width: 48px; height: 48px; }
}
