/* Clean modern style (DigitalOcean-ish). No build required. */
:root{
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: rgba(255,255,255,.75);
  --border: rgba(148,163,184,.35);
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --shadow2: 0 12px 34px rgba(2,6,23,.12);
  --ring: rgba(14,165,233,.45);
  --kicker: #0284c7;
  --surface: rgba(241,245,249,.6);
}
html.dark{
  --bg: #020617;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: rgba(15,23,42,.55);
  --border: rgba(51,65,85,.65);
  --shadow: 0 14px 38px rgba(0,0,0,.35);
  --shadow2: 0 18px 50px rgba(0,0,0,.45);
  --ring: rgba(56,189,248,.55);
  --kicker: #38bdf8;
  --surface: rgba(2,6,23,.25);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; }
strong{ font-weight: 650; }

.page{
  min-height: 100vh;
  padding: 40px 16px 80px;
}
@media (min-width: 640px){
  .page{ padding: 56px 16px 96px; }
}
.header{
  margin: 0 auto 28px;
  max-width: 900px;
}
.kicker{
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--kicker);
}
.title{
  margin: 10px 0 0;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (min-width: 640px){
  .title{ font-size: 44px; }
}
.subtitle{
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.card{
  margin: 0 auto;
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head{
  padding: 18px 18px 8px;
}
@media (min-width: 640px){
  .card-head{ padding: 22px 22px 10px; }
}
.card-head h2{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card-head p{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.list{
  padding: 10px 10px 16px;
}
@media (min-width: 640px){
  .list{ padding: 12px 12px 20px; }
}

.item{
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.35);
}
html.dark .item{ background: rgba(2,6,23,.18); }
.item + .item{ margin-top: 12px; }

.item-header{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
@media (min-width: 640px){
  .item-header{ padding: 16px 16px; }
}
.item-header:hover{ background: var(--surface); }
.item-header:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.logo{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(148,163,184,.15);
  flex: none;
  position: relative;
}
.logo img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.item-main{ min-width: 0; flex: 1; }
.item-name{
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge{
  font-size: 11px;
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(241,245,249,.55);
}
html.dark .badge{ background: rgba(15,23,42,.45); }
.item-sub{
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev{
  width: 22px; height: 22px;
  flex: none;
  color: rgba(100,116,139,.9);
  transition: transform 220ms ease;
}
html.dark .chev{ color: rgba(148,163,184,.9); }
.item[data-open="true"] .chev{ transform: rotate(180deg); }

.item-panel{
  border-top: 1px solid var(--border);
  padding: 14px 14px 16px;
  overflow: hidden;

  /* accordion animation */
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 300ms ease, opacity 220ms ease, transform 300ms ease;
}
@media (min-width: 640px){
  .item-panel{ padding: 16px 16px 18px; }
}
.item[data-open="true"] .item-panel{
  max-height: 420px; /* cukup untuk konten kita */
  opacity: 1;
  transform: translateY(0);
}

.panel-text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.row{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 640px){
  .row{ flex-direction: row; align-items: center; justify-content: space-between; }
}

.copy-area{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(241,245,249,.7);
  cursor: pointer;
  user-select: none;
}
html.dark .copy-area{ background: rgba(2,6,23,.25); }
.copy-area:hover{ filter: brightness(1.02); }
.copy-area code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: var(--text);
}
.copy-hint{
  font-size: 12px;
  color: var(--muted);
}

.btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease;
}
@media (min-width: 640px){
  .btn{ width: auto; }
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.btn-primary{
  background: #0284c7;
  color: white;
  box-shadow: 0 10px 20px rgba(2,132,199,.18);
}
.btn-primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }

.btn-secondary{
  background: rgba(255,255,255,.7);
  color: var(--text);
  border-color: var(--border);
}
html.dark .btn-secondary{ background: rgba(15,23,42,.55); }
.btn-secondary:hover{ filter: brightness(1.03); transform: translateY(-1px); }

.btn-disabled{
  background: rgba(148,163,184,.25);
  color: rgba(100,116,139,.9);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: .8;
}

.qr{
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  overflow: hidden;
  position: relative;
}
html.dark .qr{ background: rgba(15,23,42,.55); }
.qr img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  display: block;
}

.footer{
  margin: 24px auto 0;
  max-width: 900px;
  text-align: center;
  font-size: 13px;
  color: rgba(100,116,139,.95);
}
html.dark .footer{ color: rgba(148,163,184,.95); }

.theme-toggle-wrap{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
}
.icon-btn{
  height: 40px;
  width: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 22px rgba(2,6,23,.12);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease;
}
html.dark .icon-btn{ background: rgba(15,23,42,.55); }
.icon-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.icon-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), var(--shadow2);
}
.icon{
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
}
.icon svg{
  width: 20px; height: 20px;
  color: rgba(51,65,85,.95);
}
html.dark .icon svg{ color: rgba(226,232,240,.95); }

.fab{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  display: grid;
  place-items: center;
  transition: transform 120ms ease, filter 160ms ease;
  backdrop-filter: blur(10px);
}
html.dark .fab{ background: rgba(15,23,42,.6); }
.fab:hover{ transform: translateY(-2px); filter: brightness(1.02); }
.fab:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,.45), var(--shadow2); }
.fab img{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  display:block;
}

.toast-viewport{
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}
.toast{
  pointer-events: auto;
  width: fit-content;
  max-width: 90vw;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  color: var(--text);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
  animation: toast-in 160ms ease-out;
}
html.dark .toast{ background: rgba(15,23,42,.85); }
@keyframes toast-in{
  from{ opacity:0; transform: translateY(-6px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
