/* ── Login page layout ── */
.login-container {
  display: grid;
  gap: 24px;
  max-width: 460px;
}

@media (min-width: 900px) {
  .login-container {
    max-width: 1000px;
    grid-template-columns: 1fr 420px;
    align-items: start;
    gap: 40px;
  }
}

/* ── Promo box ── */
.promo-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 26px 24px;
  animation: fadeUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}

.promo-box::before {
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 40%;
  border-radius: var(--r-lg) var(--r-lg) 60px 60px / var(--r-lg) var(--r-lg) 80px 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}

.promo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Pricing grid/card styles moved to login-neo.css (neobrutalism variant) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

/* ── Login card ── */
.login-card {
  animation: fadeUp 0.6s ease 0.1s both;
}

/* ── Dashboard page ── */
.dashboard-container {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 900px) {
  .dashboard-container {
    max-width: 600px;
  }
}

.dashboard-card { animation: fadeUp 0.6s ease 0.15s both; }

/* ── Fix info-row value tidak wrap aneh di desktop ── */
.info-row {
  flex-wrap: nowrap;
  min-height: 44px;
}

.info-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-align: right;
}

/* ── Tab panel juga centered ── */
.tab-panel {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.logout-btn {
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.logout-btn:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.03em;
}
.status-pill.ok {
  background: rgba(255,255,255,0.12);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.25);
}
.status-pill.warn {
  background: rgba(255,107,107,0.12);
  color: var(--red);
  border: 1px solid rgba(255,107,107,0.3);
}

.info-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: stretch;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  padding: 6px 0;
  border-radius: var(--r-sm);
  position: relative;
}

.bnav-item.active {
  color: var(--ink);
}

.bnav-item.active::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-grad);
}

.bnav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.bnav-item.active .bnav-icon {
  transform: translateY(-1px);
}

.bnav-label {
  line-height: 1;
}

/* Di layar lebar, bottom-nav jadi dock mengambang & centered — supaya
   tidak terasa "kepanjangan"/pecah, konsisten dengan gaya pill/glass situs. */
@media (min-width: 720px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 40px));
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }
}

/* ── Tombol API di bottom-nav — NEOBRUTALISM, sengaja "beda sendiri" dari
   4 tab lain (.bnav-item) yang bergaya liquid-glass. Ini bukan tab, tapi
   link langsung ke /api-docs.html — dibedakan lewat warna solid, border
   tebal hitam, dan hard-shadow (bukan blur) khas neobrutalism. ── */
.bnav-api {
  flex: 0 0 auto;
  width: 58px;
  margin: 8px 4px 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  background: #D6FF3F;
  color: #0A0A0A;
  border: 2.5px solid #0A0A0A;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #0A0A0A;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bnav-api-icon {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.bnav-api-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.bnav-api:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0A0A0A;
}

.bnav-api:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #0A0A0A;
}

@media (min-width: 720px) {
  .bnav-api { width: 62px; }
}

/* ══════════════════════════════════════════
   TAB PANELS
══════════════════════════════════════════ */
.dash-page {
  padding-bottom: 80px !important;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.35s ease both;
}

.tab-panel.active {
  display: block;
}

/* ══════════════════════════════════════════
   HISTORY LIST
══════════════════════════════════════════ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  animation: fadeUp 0.3s ease both;
}

.history-item:last-child { border-bottom: none; }

.history-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
}

.history-body { flex: 1; min-width: 0; }

.history-action {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 3px;
}

.history-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.history-empty {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 32px 0;
}

/* ══════════════════════════════════════════
   NEW SECRET BOX
══════════════════════════════════════════ */
.new-secret-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 14px;
  animation: fadeUp 0.3s ease both;
}

.new-secret-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.new-secret-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
}

/* ── Dash page: konten mulai dari atas, bukan tengah ── */
.dash-page {
  justify-content: flex-start !important;
  align-items: center !important;
  padding-top: 80px !important;
}

.dash-page .container {
  max-width: 600px;
  margin: 0 auto;
}

/* Bottom-nav jadi dock mengambang di layar lebar (lihat layout.css) —
   kasih ruang ekstra di bawah supaya tidak ketiban konten. */
@media (min-width: 720px) {
  .dash-page { padding-bottom: 112px !important; }
}
