:root {
  --blue: #1769aa;
  --blue2: #0f4f87;
  --sky: #eaf5ff;
  --navy: #0f3154;
  --cream: #faf7f1;
  --text: #15314e;
  --muted: #6d7f91;
  --line: #e4eaf0;
  --white: #fff;
  --green: #1d9b5f;
  --amber: #e79a22;
  --red: #d9534f;
  --shadow: 0 12px 35px rgba(27,62,94,.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef7ff, #f8fbfd 45%, #f7f4ee);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
.app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: auto;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15,49,84,.04);
}
.screen {
  display: block;
  min-height: 100vh;
  background: #f8fafc;
  padding-bottom: 90px;
}
.topbar {
  height: 70px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #edf2f7;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--blue); font-size: 16px; }
.logo img { width: 30px; height: 30px; object-fit: contain; }
.logo span { letter-spacing: .3px; }
.icon-btn { border: 0; background: #f1f5f9; width: 40px; height: 40px; border-radius: 12px; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.icon-btn:hover { background: #e2e8f0; }

.hero {
  padding: 26px 20px 22px;
  background:
    radial-gradient(circle at 85% 18%, rgba(23,105,170,.14), transparent 30%),
    linear-gradient(150deg, #fff 0%, #f7fbff 48%, #f9f3e8 100%);
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.badge { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border: 1px solid #dbe8f2; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; color: var(--blue); box-shadow: 0 2px 8px rgba(23,105,170,0.06); }
h1 { font-size: 36px; line-height: 1.08; margin: 18px 0 12px; letter-spacing: -1.2px; }
.hero p { font-size: 14px; line-height: 1.7; color: #536b81; max-width: 320px; }
.cta-row { display: flex; gap: 10px; margin-top: 22px; }
.btn-primary, .btn-secondary {
  border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: all .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff; box-shadow: 0 8px 18px rgba(23,105,170,.22); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: #fff; border: 1px solid #dce6ee; color: var(--navy); }
.hero-art {
  margin-top: 25px; border-radius: 24px; background: linear-gradient(145deg, #e4f2ff, #f6eadb);
  height: 270px; position: relative; overflow: hidden; border: 1px solid #e9eef4;
}
.box { position: absolute; border-radius: 12px; background: linear-gradient(150deg, #f8f2e7, #e7dccb); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 14px 24px rgba(32,49,63,.12); }
.box:before { content: ""; position: absolute; left: 15%; right: 15%; top: 12px; height: 8px; border-radius: 8px; background: rgba(50,87,109,.13); }
.b1 { width: 115px; height: 78px; left: 26px; bottom: 38px; }
.b2 { width: 95px; height: 120px; left: 145px; bottom: 30px; background: linear-gradient(150deg, #7195a4, #315b6d); }
.b3 { width: 100px; height: 150px; right: 20px; bottom: 25px; }
.b4 { width: 80px; height: 55px; left: 48px; bottom: 120px; }
.person {
  position: absolute; right: 95px; top: 32px; width: 92px; height: 92px; background: #fff; border-radius: 50%;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 38px; color: var(--blue);
}
.floating { position: absolute; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 10px; font-weight: 700; box-shadow: var(--shadow); }
.f1 { right: 14px; top: 120px; }
.f2 { left: 14px; top: 18px; }
.section { padding: 28px 20px; }
.section h2 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; }
.section .sub { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 16px; box-shadow: 0 8px 24px rgba(31,56,81,.05); }
.benefit i { width: 38px; height: 38px; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 12px; }
.benefit b { font-size: 13px; }
.benefit p { font-size: 11px; color: var(--muted); line-height: 1.55; margin: 6px 0 0; }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.step b { font-size: 13px; }
.step p { font-size: 11px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.bottom-cta { margin: 0 20px 28px; border-radius: 22px; background: linear-gradient(140deg, #edf7ff, #f7ead8); padding: 22px; text-align: center; }
.bottom-cta h3 { margin: 0 0 8px; font-size: 20px; }
.bottom-cta p { font-size: 12px; color: var(--muted); line-height: 1.6; }

.form-wrap { padding: 22px 20px 30px; }
.form-wrap h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.form-wrap .lead { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 700; margin: 0 0 7px; color: #334155; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 13px 15px; color: var(--text); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: none; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,170,.10); }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.form-actions button, .form-actions a { flex: 1; }
.small-link { font-size: 11px; text-align: center; color: var(--muted); margin-top: 16px; }
.small-link b, .small-link a { color: var(--blue); font-weight: 700; }

.login-card { margin: 35px 20px; background: #fff; border: 1px solid #edf2f7; border-radius: 24px; padding: 24px; box-shadow: 0 14px 35px rgba(15,49,84,.06); }
.login-card h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.login-card > p { font-size: 12px; color: var(--muted); margin: 0 0 22px; }

.dashboard { background: #f8fafc; }
.profile-head { padding: 18px 20px 8px; display: flex; justify-content: space-between; align-items: center; }
.user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #d5eaf8, #edf4f8); display: grid; place-items: center; color: var(--blue); font-size: 18px; box-shadow: 0 4px 12px rgba(23,105,170,.12); }
.user small { display: block; color: var(--muted); font-size: 10px; }
.user b { font-size: 14px; font-weight: 700; }

.metrics { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 20px; }
.metric { text-align: center; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #1769aa 0%, #0f4f87 100%); color: #fff; box-shadow: 0 10px 24px rgba(23,105,170,0.22); border: 0; }
.metric b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.metric span { font-size: 11px; opacity: 0.9; letter-spacing: .3px; text-transform: uppercase; font-weight: 600; margin-top: 2px; display: block; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px; }
.quick button, .quick a { border: 1px solid #e2e8f0; background: #fff; border-radius: 16px; padding: 14px 10px; box-shadow: 0 6px 16px rgba(31,56,81,.04); font-size: 10px; font-weight: 700; color: var(--text); text-align: center; display: block; transition: transform .2s, box-shadow .2s; }
.quick button:hover, .quick a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,56,81,.08); border-color: #cbd5e1; }
.quick i { display: block; color: var(--blue); font-size: 20px; margin-bottom: 8px; }

.list-title { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 12px; }
.list-title h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); }
.list-title a { font-size: 11px; color: var(--blue); font-weight: 700; }

.content-item {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(27,51,77,0.04);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,51,77,0.08);
}
.content-thumb {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.thumb-tiktok { background: #010101; color: #ffffff; }
.thumb-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: #ffffff; }
.thumb-facebook { background: #1877f2; color: #ffffff; }
.thumb-youtube { background: #ff0000; color: #ffffff; }
.thumb-shopee { background: #ee4d2d; color: #ffffff; }
.thumb-default { background: linear-gradient(145deg, #eaf4fb, #efe5d8); color: #8aa2b3; }

.content-body { flex: 1; min-width: 0; }
.content-body b { font-size: 12px; font-weight: 700; color: var(--navy); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 10px; color: var(--muted); margin: 4px 0 8px; display: flex; align-items: center; gap: 5px; }

.content-url-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #475569;
  word-break: break-all;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-link-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  background: #edf7ff;
  border: 1px solid #cbe4f7;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .2s;
}
.btn-link-action:hover { background: #dceefc; color: var(--blue2); }

.btn-delete-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #e53e3e;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.btn-delete-action:hover { background: #fed7d7; color: #9b2c2c; }

.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); height: 72px; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid #edf2f7;
  display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30;
}
.bottom-nav a, .bottom-nav button { border: 0; background: transparent; font-size: 10px; color: #8393a2; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: color .2s; }
.bottom-nav i { display: block; font-size: 19px; margin-bottom: 4px; }
.bottom-nav .active { color: var(--blue); font-weight: 800; }

.page-pad { padding: 18px 20px; }
.page-title { font-size: 24px; font-weight: 800; margin: 3px 0 7px; letter-spacing: -.5px; }
.page-sub { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; }

.check { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--muted); line-height: 1.5; margin: 16px 0; }
.check input { accent-color: var(--blue); width: 16px; height: 16px; margin-top: 1px; }

.profile-card { margin: 18px 20px; padding: 22px; border: 1px solid #edf2f7; border-radius: 22px; text-align: center; background: #fff; box-shadow: 0 10px 25px rgba(27,51,77,0.04); }
.profile-card .avatar { margin: auto; width: 68px; height: 68px; font-size: 24px; box-shadow: 0 6px 16px rgba(23,105,170,.15); }
.profile-card h3 { margin: 12px 0 2px; font-size: 18px; font-weight: 800; }
.profile-card p { font-size: 11px; color: var(--muted); margin: 0; }

.menu-list { padding: 0 20px; }
.menu-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf1f4; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s; }
.menu-row:hover { color: var(--blue); }
.menu-row i:first-child { width: 26px; color: var(--blue); font-size: 15px; }

@media(min-width: 800px) {
  body { padding: 30px 0; }
  .app { border-radius: 26px; min-height: 900px; box-shadow: 0 25px 80px rgba(22,52,78,.18); }
  .bottom-nav { bottom: 30px; border-radius: 0 0 26px 26px; }
}
