/* Aesthetica AI demo — interactive layer on top of base.css */

.home-hint {
  position: relative;
  z-index: 6;
  margin: -8px 2px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #b5337c;
  background: rgba(255, 255, 255, 0.72);
}

.demo-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 7px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #7a1f53;
  background: #ffe0ef;
  border-bottom: 1px solid rgba(248, 90, 169, 0.25);
}

.foot-note {
  margin-top: 18px;
  color: #9a8fa0 !important;
  font-size: 12px;
}

/* balance pill on home hero */
.balance-pill {
  position: absolute;
  z-index: 6;
  top: 70px;
  left: 18px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 800;
  color: #c4317f;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(255, 105, 176, 0.2);
}
.balance-pill b { color: #f0309a; }

/* enable buttons that base.css dimmed */
.generate, .login-button, .black-button, .profile-card button, .choice, .membership-pill { opacity: 1 !important; }
.generate[disabled] { opacity: 0.45 !important; cursor: not-allowed; }

/* upload thumb */
.upload-box.has-file { padding: 0; overflow: hidden; }
.upload-thumb { width: 100%; height: 100%; min-height: 126px; object-fit: cover; display: block; }
.upload-box input[type="file"] { display: none; }

/* generating + result */
.result-card {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(248, 90, 169, 0.16);
}
.result-card .result-media { position: relative; width: 100%; display: block; }
.result-card canvas, .result-card img { width: 100%; display: block; }
.result-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(37, 33, 42, 0.72);
  backdrop-filter: blur(6px);
}
.result-actions { display: flex; gap: 10px; padding: 12px; }
.result-actions a, .result-actions button {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  text-decoration: none;
}
.btn-download { color: #fff; background: var(--pink); }
.btn-again { color: var(--pink); background: #ffe9f4; }

.spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid #ffd3e8;
  border-top-color: var(--pink);
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.generating-box { display: grid; place-items: center; gap: 12px; padding: 30px; color: #b07a98; font-weight: 700; }

/* toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) translateY(8px);
  z-index: 60;
  max-width: 80%;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(37, 33, 42, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ledger */
.ledger-list { display: grid; gap: 8px; margin-top: 8px; }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(248, 90, 169, 0.06);
}
.ledger-row small { color: #9a8fa0; display: block; margin-top: 2px; }
.ledger-amt { font-weight: 900; }
.ledger-amt.pos { color: #14a06a; }
.ledger-amt.neg { color: #e0467e; }
.empty-hint { text-align: center; color: #b3a8b8; padding: 26px 0; font-weight: 600; }

/* plans */
.plan-card {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(248, 90, 169, 0.08);
}
.plan-card h4 { margin: 0 0 4px; }
.plan-card .price { color: var(--pink); font-weight: 900; font-size: 20px; }
.plan-card ul { margin: 8px 0 0; padding-left: 18px; color: #6d6470; font-size: 13px; line-height: 1.7; }
.plan-card button { margin-top: 12px; width: 100%; height: 44px; border-radius: 10px; background: var(--pink); color: #fff; font-weight: 800; }

.ai-disclaimer { margin: 16px 0 2px; color: #a99fb0; font-size: 11px; text-align: center; }
