/* BricksFly Trial — front-end (landing + dashboard). Brand via --bft-brand. */
:root { --bft-brand: #f6502c; }

.bft-standalone { margin: 0; background: #0a0b0f; color: #f3f4f6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.bft-landing { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(60% 50% at 50% 0%, color-mix(in oklab, var(--bft-brand) 22%, transparent), transparent 70%), #0a0b0f; }
.bft-hero { max-width: 560px; width: 100%; text-align: center; }
.bft-badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--bft-brand);
  background: color-mix(in oklab, var(--bft-brand) 15%, transparent); padding: 6px 14px; border-radius: 999px; }
.bft-hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; margin: 20px 0 12px; letter-spacing: -0.02em; }
.bft-hero h1 { color: #fff; }
.bft-sub { font-size: 18px; color: #9aa1ad; margin: 0 0 28px; }

.bft-form { margin: 0 auto; max-width: 460px; }
.bft-field { display: flex; gap: 10px; }
.bft-field input { flex: 1; height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid #2a2f3a;
  background: #12141a; color: #f3f4f6; font-size: 16px; outline: none; }
.bft-field input:focus { border-color: var(--bft-brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--bft-brand) 30%, transparent); }

.bft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s; }
.bft-btn-brand { background: var(--bft-brand); color: #fff; }
.bft-btn-brand:hover { filter: brightness(1.1); }
.bft-btn-outline { background: transparent; border-color: #2a2f3a; color: #f3f4f6; height: 40px; }
.bft-btn-danger { background: transparent; border-color: #ef444455; color: #ef4444; height: 40px; }
.bft-btn.is-disabled { opacity: .5; pointer-events: none; }

/* Loading state: dim slightly, block clicks, show an inline spinner. */
.bft-btn.is-loading { opacity: .85; cursor: progress; pointer-events: none; }
.bft-btn[disabled] { cursor: progress; }
.bft-btn-spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bft-spin .7s linear infinite;
}
/* Outline/danger buttons have dark text — tint their spinner accordingly. */
.bft-btn-outline .bft-btn-spinner,
.bft-btn-danger .bft-btn-spinner {
  border-color: color-mix(in oklab, currentColor 30%, transparent);
  border-top-color: currentColor;
}

.bft-methods { display: flex; gap: 20px; justify-content: center; margin-top: 14px; font-size: 14px; color: #9aa1ad; }
.bft-methods input { accent-color: var(--bft-brand); }

.bft-otp-label { color: #9aa1ad; margin: 0 0 12px; }
.bft-error { color: #ef4444; font-size: 14px; margin: 12px 0 0; }
.bft-hint { color: #9aa1ad; font-size: 13px; margin-top: 10px; }

.bft-card { background: #12141a; border: 1px solid #232733; border-radius: 12px; padding: 24px; margin-top: 20px; }
.bft-spinner { width: 34px; height: 34px; border: 3px solid #2a2f3a; border-top-color: var(--bft-brand);
  border-radius: 50%; margin: 0 auto 14px; animation: bft-spin 1s linear infinite; }
@keyframes bft-spin { to { transform: rotate(360deg); } }

/* Dashboard */
.bft-dashboard { max-width: 960px; margin: 0 auto; padding: 40px 20px; }
.bft-dash-head h1 { color: #fff; margin: 0 0 6px; }
.bft-muted { color: #9aa1ad; }
.bft-muted a, .bft-url { color: var(--bft-brand); }
.bft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.bft-trial-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bft-url { display: block; font-family: ui-monospace, monospace; font-size: 14px; margin: 14px 0; word-break: break-all; }
.bft-meta { list-style: none; padding: 0; margin: 0 0 16px; color: #9aa1ad; font-size: 13px; display: grid; gap: 4px; }
.bft-remaining { color: #f3f4f6; font-weight: 600; }
.bft-actions { display: flex; gap: 10px; }
.bft-empty { text-align: center; }

/* Status pills (shared with admin) */
.bft-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }
.bft-status-active { background: #10b98122; color: #10b981; }
.bft-status-provisioning { background: #f59e0b22; color: #f59e0b; }
.bft-status-expired, .bft-status-suspended { background: #ef444422; color: #ef4444; }
.bft-status-deleted, .bft-status-deleting { background: #6b728022; color: #9aa1ad; }
