/* Fandora Platform — standalone terminal shell (own app, outside the dashboard). */

body.pf-app {
  min-height: 100vh;
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--soft);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(108, 77, 255, .16), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(74, 125, 255, .10), transparent 60%),
    var(--bg-deep);
  display: flex;
  flex-direction: column;
}

.pf-shell { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ---- Top bar ---- */

.pf-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 22px; position: sticky; top: 0; z-index: 30;
  background: rgba(8, 9, 13, .72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.pf-brand { display: flex; align-items: center; gap: 10px; }
.pf-brand img { height: 26px; width: auto; }
.pf-brand span { font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }
.pf-brand span b { font-weight: 800; color: var(--white); }

.pf-user { display: flex; align-items: center; gap: 12px; }
.pf-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 10px; border: 1px solid transparent;
}
.pf-link:hover { color: var(--white); border-color: var(--border); }
.pf-link i { width: 15px; height: 15px; }
.pf-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: var(--purple-blue);
}
.pf-username { font-size: 13px; font-weight: 700; color: var(--white); white-space: nowrap; }
.pf-logout { margin: 0; }
.pf-logout button {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pf-logout button:hover { color: var(--danger); border-color: rgba(239, 68, 68, .4); }
.pf-logout button i { width: 15px; height: 15px; }

/* ---- Main area ---- */

.pf-main {
  flex: 1; width: 100%; max-width: 1560px; margin: 0 auto;
  padding: 16px 22px 22px; display: grid; gap: 14px; align-content: start;
}
.pf-main .platform-terminal { min-height: 500px; }
.pf-main .platform-chart-panel { min-height: 500px; }
.pf-main .platform-watchlist-panel { min-height: 500px; }

@media (max-width: 960px) {
  .pf-topbar { flex-wrap: wrap; padding: 10px 14px; }
  .pf-username { display: none; }
  .pf-main { padding: 12px 14px 16px; }
  .pf-main .platform-watchlist-panel { min-height: 0; }
}

/* ---- Login page ---- */

.pf-login-body { align-items: center; justify-content: center; display: flex; }
.pf-login-wrap { width: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.pf-login-card { width: 100%; max-width: 420px; padding: 30px 30px 24px; display: grid; gap: 14px; }
.pf-login-brand { display: flex; align-items: center; gap: 10px; }
.pf-login-brand img { height: 30px; width: auto; }
.pf-login-brand span { font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.pf-login-brand span b { font-weight: 800; color: var(--white); }
.pf-login-card h1 { margin: 6px 0 0; font-size: 23px; color: var(--white); }
.pf-login-sub { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.pf-login-alert { padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.pf-login-alert.error { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #ff9a9a; }
.pf-login-alert.success { background: rgba(53, 232, 121, .08); border: 1px solid rgba(53, 232, 121, .3); color: var(--green-bright); }

.pf-google-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px; text-decoration: none;
  font-size: 13.5px; font-weight: 700; color: var(--white);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong);
}
.pf-google-button:hover { background: rgba(255, 255, 255, .09); }

.pf-login-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pf-login-divider::before, .pf-login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pf-login-card form { display: grid; gap: 12px; }
.pf-login-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pf-login-card input[type="text"], .pf-login-card input[type="password"] {
  padding: 11px 14px; border-radius: 12px; font-size: 14px; width: 100%;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--white);
}
.pf-login-card input:focus { outline: none; border-color: rgba(108, 77, 255, .55); }
.pf-remember { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.pf-remember input { accent-color: var(--purple); }

.pf-login-submit {
  padding: 12px 16px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 14.5px; font-weight: 800; color: #141004;
  background: var(--gold-gradient);
}
.pf-login-submit:hover { filter: brightness(1.06); }

.pf-login-foot { margin: 4px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.pf-login-foot a { color: var(--purple-light); text-decoration: none; font-weight: 700; }
