:root {
  --bg: #060608;
  --bg-2: #0e0e11;
  --card: #13131a;
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #ededf0;
  --muted: #8b8d98;
  --primary: #ededf0;
  --primary-2: #d4d4d8;
  --gradient: linear-gradient(135deg, #ededf0 0%, #d4d4d8 100%);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  display: none;
}

.stars {
  display: none;
}

.hidden { display: none !important; }

/* ============ AUTH ============ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand { text-align: center; margin-bottom: 28px; }

.brand-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #0a0a0f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.brand-logo.small { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; margin: 0; }
.brand-logo.small .brand-logo-img { border-radius: 10px; }

.brand-name { font-size: 26px; font-weight: 800; }
.brand-name span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-nav .brand-name { font-size: 19px; }
.brand-tag { color: var(--muted); font-size: 14px; margin-top: 4px; }

.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--gradient);
  color: #0a0a0f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { resize: vertical; min-height: 70px; }

.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.btn-primary {
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #0a0a0f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }

.blog-links { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.blog-links-title { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.blog-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.blog-link:hover { border-color: var(--primary); background: rgba(124, 58, 237, 0.12); }

.btn-ghost {
  padding: 9px 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover { color: var(--text); border-color: var(--primary); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  margin-top: 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-google:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.g-logo {
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23FFC107" d="M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3l5.7-5.7C34.4 6.1 29.5 4 24 4 13 4 4 13 4 24s9 20 20 20 20-9 20-20c0-1.3-.1-2.6-.4-3.9z"/><path fill="%23FF3D00" d="M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.9 1.2 8 3l5.7-5.7C34.4 6.1 29.5 4 24 4 16.3 4 9.7 8.3 6.3 14.7z"/><path fill="%234CAF50" d="M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z"/><path fill="%231976D2" d="M43.6 20.1H42V20H24v8h11.3c-.8 2.3-2.3 4.3-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z"/></svg>') center / contain no-repeat;
}

.btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  margin-top: 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-github:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.gh-logo {
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23ffffff"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>') center / contain no-repeat;
}

.form-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
  color: var(--red);
}

.form-msg.ok { color: var(--green); }

.kpi-row { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi {
  flex: 1;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.kpi .num { font-size: 18px; font-weight: 800; }
.kpi .lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

.empty { text-align: center; color: var(--muted); padding: 20px 10px; font-size: 13px; }

.auth-note {
  margin-top: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ APP ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-nav { display: flex; align-items: center; gap: 10px; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.14); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 90;
  animation: fadeIn 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: #0e0e11;
  border-left: 1px solid var(--card-border);
  z-index: 95;
  overflow-y: auto;
  padding: 18px 20px 40px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.25s ease;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}
.drawer-head h2 { font-size: 18px; font-weight: 800; }

.drawer-close {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.drawer-close:hover { color: var(--text); border-color: var(--primary); }

.drawer .pricing { margin-top: 0; }

/* ===== Drawer menu list & pages ===== */
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}
.menu-item:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--card-border); }
.menu-item .menu-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.menu-item strong { font-size: 15px; display: block; }
.menu-item small { color: var(--muted); font-size: 12px; }
.menu-item > div { flex: 1; }
.menu-item .menu-ico svg { width: 20px; height: 20px; }
.ad-ico svg { width: 34px; height: 34px; }
.chat-fab svg { width: 26px; height: 26px; }
.chat-img-btn svg { width: 16px; height: 16px; }
.menu-arrow { color: var(--muted); font-size: 20px; }

.menu-page { animation: fadeUp 0.25s ease; }
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}
.page-head h3 { font-size: 16px; font-weight: 800; }
.page-back {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.page-back:hover { color: var(--text); border-color: var(--primary); }

.brand-code {
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.profile-card { text-align: center; padding: 18px 0 14px; }
.profile-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info { margin: 14px 0 18px; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.profile-info .p-row { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--card-border); }
.profile-info .p-row:last-child { border-bottom: none; }
.profile-info .p-row span:first-child { color: var(--muted); }
.profile-info .p-row span:last-child { font-weight: 700; }

.creator-card { text-align: center; padding: 24px 10px; }
.creator-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  box-shadow: 0 10px 34px rgba(124, 58, 237, 0.45);
}
.creator-card h2 { font-size: 22px; font-weight: 800; }
.creator-card h2 span { color: #c4b5fd; }
.creator-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 12px 0 16px; }
.creator-links { display: flex; flex-direction: column; gap: 8px; }
.creator-links a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.creator-links a:hover { border-color: var(--primary); }

/* ===== Drawer hero (style ndxhs) ===== */
.drawer-hero {
  text-align: center;
  padding: 14px 6px 20px;
  animation: fadeUp 0.3s ease;
}
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1f1400;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  margin-bottom: 12px;
}
.drawer-hero h1 { font-size: 24px; font-weight: 800; }
.drawer-hero p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ===== Package cards (style ndxhs) ===== */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: fadeUp 0.35s ease;
}
.pkg-card {
  position: relative;
  background: #140a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.pkg-card:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.pkg-card.selected {
  background: #ffffff;
  border-color: #ffffff;
}
.pkg-card.popular { border-color: rgba(245, 158, 11, 0.5); }
.pkg-card.owned { border-style: dashed; }
.pkg-pop {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #1f1400;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pkg-name {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pkg-card.selected .pkg-name { color: #000; }
.pkg-owned-tag {
  font-size: 9px;
  font-weight: 800;
  color: #0a0a0f;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 999px;
}
.pkg-price { font-size: 18px; font-weight: 800; margin: 6px 0 2px; }
.pkg-card.selected .pkg-price { color: #000; }
.pkg-price span { font-size: 10px; color: var(--muted); font-weight: 500; }
.pkg-card.selected .pkg-price span { color: #555; }
.pkg-detail { font-size: 11px; color: var(--muted); margin-top: 3px; }
.pkg-card.selected .pkg-detail { color: #333; }
.pkg-detail strong { color: var(--text); }
.pkg-card.selected .pkg-detail strong { color: #000; }
.pkg-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}
.pkg-card.selected .pkg-tag { background: #eee; color: #333; }
.pkg-tag.premium-tag { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.pkg-card.selected .pkg-tag.premium-tag { background: #e8f7ee; color: #15803d; }
.pkg-label { margin-top: 10px; font-size: 10px; color: #6b6b7b; }
.pkg-card.selected .pkg-label { color: #888; }

/* ===== Action section (style ndxhs) ===== */
.action-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  animation: fadeUp 0.4s ease;
}
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #0a0a0f;
  background: var(--gradient);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn-buy:not(:disabled):hover { transform: translateY(-1px); }
.btn-buy:disabled {
  background: #1a1a24;
  color: #4a4c5a;
  cursor: not-allowed;
}
.hint-text {
  text-align: center;
  color: #6b6b7b;
  font-size: 11px;
  margin-top: 10px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.user-chip {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #a1a1aa;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }

.hero { text-align: center; padding: 20px 0 30px; animation: fadeUp 0.5s ease; }

.hero-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.2; }
.hero-title span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); max-width: 520px; margin: 12px auto 0; font-size: 15px; line-height: 1.6; }

.limit-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}

.limit-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.limit-info h3 { font-size: 16px; font-weight: 700; }
.limit-info p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.limit-num { font-size: 30px; font-weight: 800; }
.limit-num span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.limit-reset { color: var(--muted); font-size: 12px; margin-top: 10px; }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, opacity 0.3s;
  animation: fadeUp 0.5s ease;
}

.step-card.locked { opacity: 0.45; }
.step-card.unlocked { border-color: rgba(255, 255, 255, 0.18); }

.step-head { display: flex; gap: 14px; margin-bottom: 16px; }
.step-head h3 { font-size: 16px; font-weight: 700; }
.step-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #0a0a0f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ad-box {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 4px;
  margin-bottom: 16px;
}

.ad-box-inner {
  border-radius: 11px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s;
}

.ad-box-inner.watching { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.16); }
.ad-box-inner.done { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.4); }

.ad-ico { font-size: 34px; }
.ad-box-inner p { color: var(--muted); font-size: 13px; }

.ad-timer {
  font-size: 34px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-hint { color: var(--muted); font-size: 12px; margin-top: 12px; text-align: center; }
.ad-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4c5a;
  line-height: 1.5;
}
.step-card.locked .step-hint { color: rgba(139, 141, 152, 0.6); }

.success-card {
  margin-top: 26px;
  text-align: center;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius);
  padding: 36px 24px;
  animation: fadeUp 0.5s ease;
}

.success-ico { font-size: 52px; margin-bottom: 12px; }
.success-card h2 { font-size: 22px; margin-bottom: 10px; }
.success-card p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 20px; line-height: 1.6; }

.how-card {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}

.how-card h2 { font-size: 20px; text-align: center; margin-bottom: 20px; }

.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.how-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.how-item span {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #0a0a0f;
}

.how-item p { font-size: 13px; }

.how-note {
  margin-top: 18px;
  text-align: center;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--card-border);
  padding: 26px 20px 40px;
  text-align: center;
}

.footer p { font-size: 13px; color: var(--text); }
.footer-dis { color: var(--muted); font-size: 12px !important; margin-top: 6px; }

/* ============ AD BANNER ============ */
.ad-banner {
  display: flex;
  justify-content: center;
  margin: 26px auto 0;
  max-width: 728px;
}
.ad-banner > div, .ad-banner > ins, .ad-banner > iframe, .ad-banner > script { margin: 0 auto; }

/* ============ SUBSCRIPTION ============ */
.sub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 26px;
  animation: fadeUp 0.4s ease;
}

.sub-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sub-left div { min-width: 0; }

.sub-badge {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--gradient);
  font-weight: 800;
  font-size: 13px;
  color: #0a0a0f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.sub-card h3 { font-size: 15px; font-weight: 700; }
.sub-card p { color: var(--muted); font-size: 12px; margin-top: 3px; }

.btn-small { padding: 10px 18px; font-size: 13px; flex-shrink: 0; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.plan-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0a0a0f;
}

/* ============ PRICING ============ */
.pricing { margin-top: 44px; }

.pricing-head { text-align: center; margin-bottom: 24px; }
.pricing-head h2 { font-size: 26px; font-weight: 800; }
.pricing-head h2 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }

.plan-card.featured {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  color: #0a0a0f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.plan-emoji { font-size: 34px; display: block; margin-bottom: 8px; }
.plan-emoji svg { width: 34px; height: 34px; }

.plan-card h3 { font-size: 20px; font-weight: 800; }
.plan-tag { color: var(--muted); font-size: 12px; margin-top: 3px; }

.plan-price { font-size: 30px; font-weight: 800; margin: 14px 0; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 600; }

.plan-feats { list-style: none; margin-bottom: 20px; }
.plan-feats li { font-size: 13px; padding: 7px 0; color: var(--muted); border-top: 1px dashed rgba(255,255,255,0.07); }
.plan-feats li:first-child { border-top: none; }
.plan-feats li strong { color: var(--text); }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: fadeUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--card-border);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--text); border-color: var(--primary); }

.modal-head { text-align: center; margin-bottom: 20px; }
.modal-head h2 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.modal-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.buy-price {
  display: inline-block;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.buy-order h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.pay-steps { padding-left: 18px; }
.pay-steps li { font-size: 13px; color: var(--muted); padding: 5px 0; line-height: 1.5; }
.pay-steps code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #a1a1aa;
}

.qris-box {
  margin: 18px 0;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}

.qris-box img { width: 100%; max-width: 220px; border-radius: 10px; }
.qris-box p { color: #666; font-size: 12px; margin-top: 10px; }

.pending-box { text-align: center; padding: 16px 0; }
.pending-ico { font-size: 46px; display: block; margin-bottom: 10px; }
.pending-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.pending-box p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.pending-box code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #a1a1aa;
}

/* ============ PAYMENT ============ */
.skeleton {
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pay-count { display: flex; gap: 12px; margin-bottom: 16px; }

.count-box {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.count-lbl { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.count-time { font-size: 16px; font-weight: 800; }
.count-time.low { color: #f87171; }

.status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
}

.status-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fbbf24;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-pill.success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); color: #4ade80; }
.status-pill.success .dot { background: #4ade80; animation: none; }
.status-pill.error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
.status-pill.error .dot { background: #f87171; animation: none; }

.manual-pay {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(167, 139, 250, 0.4);
  text-align: center;
}
.manual-pay h3 { font-size: 15px; margin: 0 0 4px; color: var(--text); }
.manual-pay p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.manual-pay .btn-ghost {
  display: block;
  text-align: center;
  margin-bottom: 8px;
}


.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.toast.success { border-color: rgba(34, 197, 94, 0.5); color: #86efac; }

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0a0a0f;
  box-shadow: 0 8px 26px rgba(237, 237, 240, 0.12);
  cursor: pointer;
  z-index: 95;
  border: none;
  transition: transform 0.2s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: min(340px, calc(100vw - 36px));
  max-height: 460px;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 95;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--card-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.chat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-tab {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.chat-tab.active { background: var(--gradient); border-color: transparent; color: #0a0a0f; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.chat-mode-hint {
  margin: 0;
  padding: 7px 14px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
}
.chat-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  border: 1px solid var(--card-border);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.chat-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.chat-avatar.bot {
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  font-size: 15px;
}
.chat-avatar-photo {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.chat-bubble { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-name { font-size: 12px; font-weight: 700; color: var(--primary); }
.chat-name.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chat-mail { font-size: 10px; color: var(--muted); margin-left: 5px; }
.chat-time { font-size: 10px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.chat-text {
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 3px;
  word-break: break-word;
}
.chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--card-border); align-items: center; min-width: 0; }
.chat-input-row input { flex: 1; min-width: 0; }
.chat-input-row .btn-primary { flex: none; }
.chat-img-btn, .chat-img-preview, .chat-img-remove { flex: none; }
.chat-img-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-img-btn:active { transform: scale(0.95); }
.chat-img-preview {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.chat-img-remove {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.chat-img {
  display: block;
  max-width: min(220px, 60vw);
  max-height: 220px;
  border-radius: 10px;
  margin-top: 6px;
  border: 1px solid var(--card-border);
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .how-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ MOBILE (ponsel) ============ */
* { -webkit-tap-highlight-color: transparent; }
button, a, .menu-item, .pkg-card, .chat-fab, input, textarea, select { touch-action: manipulation; }

@media (max-width: 767px) {
  .container { padding: 22px 16px 40px; }

  .navbar { position: sticky; top: 0; }
  .nav-inner {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: 12px;
    padding-left: 15px;
    padding-right: 15px;
    gap: 8px;
  }
  .nav-right { gap: 8px; }
  .hamburger { width: 38px; height: 38px; }
  .brand-nav .brand-name { display: none; }
  .user-chip {
    max-width: 100px;
    font-size: 12px;
    padding: 6px 10px;
  }
  .plan-chip { font-size: 10px; padding: 4px 10px; }
  @media (max-width: 480px) {
    .navbar .btn-ghost { display: none; }
  }

  .drawer { width: min(340px, 88vw); padding: 16px 16px calc(30px + env(safe-area-inset-bottom)); }

  .auth-wrap { padding: 18px 16px; }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .field input, .field textarea { font-size: 16px; padding: 13px 14px; }
  .field input[type="number"] { font-size: 16px; }
  .chat-input-row input,
  .modal-card input,
  .modal-card textarea,
  .auth-card input { font-size: 16px; }

  .limit-card, .step-card, .how-card { padding: 18px; }
  .limit-info { flex-wrap: wrap; gap: 8px; }

  .sub-card { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .sub-left { justify-content: center; }

  .steps-grid { gap: 16px; }

  .how-grid { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 320px; }

  .packages-grid { gap: 10px; }
  .pkg-card { padding: 13px 10px 10px; }
  .pkg-name { font-size: 13px; }
  .pkg-detail { font-size: 10px; }
  .pkg-pop { font-size: 8px; padding: 2px 7px; }

  .btn-buy { height: 50px; }

  .hero { padding: 18px 0 24px; }
  .hero-sub { font-size: 14px; }

  /* Modal = bottom sheet di HP */
  .modal { padding: 0; align-items: flex-end; }
  .modal-card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
  }
  .success-card { padding: 30px 18px; }

  /* Chat = bottom sheet di HP */
  .chat-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
  .chat-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: 72vh;
    border-radius: 16px 16px 0 0;
  }
  .chat-body { max-height: none; }
  .chat-input-row {
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
  }
  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); width: 92%; }
}

@media (max-width: 380px) {
  .kpi-row { gap: 8px; }
  .kpi { min-width: 80px; padding: 10px; }
  .limit-num { font-size: 26px; }
}

/* ===== Superstar Tools ===== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  animation: fadeUp 0.35s ease;
}
.tool-card {
  position: relative;
  background: #140a24;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
  overflow: hidden;
}
.tool-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.tool-card .tool-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 10px;
}
.tool-card .tool-ico svg { width: 20px; height: 20px; color: #fff; }
.tool-card strong { display: block; font-size: 13.5px; color: #fff; }
.tool-card small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; min-height: 30px; }
.tool-card .tool-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff;
  color: #111;
}
.tool-card .tool-badge svg { width: 9px; height: 9px; }
.tool-card.tool-mega {
  grid-column: 1 / -1;
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #1a1024, #0e0a16);
}
.tool-card.tool-mega .tool-badge { background: #111; color: #fff; }
.tool-card.locked .tool-badge { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.tool-card.tool-mega.locked .tool-badge { border-color: rgba(255, 255, 255, 0.35); }

.tool-json {
  margin-top: 12px;
  background: #0c0714;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #b7b7c0;
  overflow-x: auto;
  max-height: 260px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tool-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.tool-media img, .tool-media video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  background: #0c0714;
  border: 1px solid var(--card-border);
}
.tool-media a {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  word-break: break-all;
}