/* ============================================================
   account.css · pagine area utenti (/account/*)
   Tema scuro coerente col resto del sito (layout.css):
     bg #0a0e1a · testo #e2e8f0 · accento #fbbf24.
   Override mirati dei componenti UIkit usati nelle pagine,
   scopati sotto .account-body per non toccare la mappa.
   ============================================================ */

.account-body {
  min-height: 100vh;
  margin: 0;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(251, 191, 36, .12), transparent 62%),
    #0a0e1a;
}

/* ---- card ---- */
.account-body .account-card {
  max-width: 460px;
  background: #11161f;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #e2e8f0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.account-body .account-card.account-card-wide { max-width: 640px; }

/* ---- titoli / testo ---- */
.account-body h1,
.account-body h2,
.account-body h3 { color: #f1f5f9; }
.account-title { margin: .25rem 0 0; font-weight: 700; }
.account-sub { margin-top: .35rem; color: #94a3b8; font-size: .9rem; }
.account-body .uk-text-muted { color: #7c899c !important; }

.account-logo { max-height: 52px; width: auto; }

/* ---- form ---- */
.account-body .uk-form-label {
  color: #aab6c6;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.account-body .uk-input {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e2e8f0;
  border-radius: 6px;
  height: 40px;
  transition: border-color .15s, background .15s;
}
.account-body .uk-input::placeholder { color: #5d6b7e; }
.account-body .uk-input:focus {
  background: rgba(255, 255, 255, .06);
  border-color: #fbbf24;
  outline: none;
}

/* checkbox / radio */
.account-body .uk-checkbox,
.account-body .uk-radio {
  accent-color: #fbbf24;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .25);
}
.account-body .uk-checkbox:checked,
.account-body .uk-radio:checked { background-color: #fbbf24; border-color: #fbbf24; }

/* ---- bottoni ---- */
.account-body .uk-button-primary {
  background: #fbbf24;
  color: #0a0e1a;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  text-transform: none;
  transition: background .15s, transform .08s;
}
.account-body .uk-button-primary:hover { background: #f59e0b; color: #0a0e1a; }
.account-body .uk-button-primary:active { transform: translateY(1px); }
.account-body .uk-button-default {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  text-transform: none;
}
.account-body .uk-button-default:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(251, 191, 36, .6);
  color: #fff;
}

/* ---- link ---- */
.account-body a { color: #fbbf24; text-decoration: none; }
.account-body a:hover { color: #f59e0b; text-decoration: underline; }
.account-body .uk-logo a,
.account-body .account-card a img { text-decoration: none; }

/* ---- footer link blocco ---- */
.account-foot { margin-top: 1.25rem; font-size: .85rem; color: #94a3b8; }
.account-foot a { white-space: nowrap; }

/* ---- alert (override UIkit per fondo scuro) ---- */
.account-body .uk-alert-success,
.account-body .uk-alert-danger,
.account-body .uk-alert-primary {
  border-radius: 8px;
  border: 1px solid;
}
.account-body .uk-alert-success {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .4);
  color: #bbf7d0;
}
.account-body .uk-alert-danger {
  background: rgba(248, 113, 113, .12);
  border-color: rgba(248, 113, 113, .4);
  color: #fecaca;
}
.account-body .uk-alert-primary {
  background: rgba(251, 191, 36, .10);
  border-color: rgba(251, 191, 36, .35);
  color: #fde68a;
}
.account-body .uk-alert-success a,
.account-body .uk-alert-danger a,
.account-body .uk-alert-primary a { color: inherit; text-decoration: underline; }

/* ---- griglia piani (registrazione) ---- */
.plan-grid { gap: .5rem; }
.plan-opt {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: .7rem .75rem;
  background: rgba(255, 255, 255, .02);
  transition: border-color .15s, background .15s;
}
.plan-opt:hover { border-color: rgba(251, 191, 36, .6); }
.plan-opt input { margin-right: .4rem; }
.plan-opt.is-active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, .1);
}
.plan-name { font-weight: 600; color: #f1f5f9; }
.plan-price { color: #94a3b8; font-size: .82rem; }

/* ============================================================
   REGISTRAZIONE — full page con 3 box piani
   ============================================================ */
.reg-wrap { max-width: 1080px; margin: 0 auto; padding: 22px 20px 60px; }

.reg-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; flex-wrap: wrap; gap: 12px;
}
.reg-topbar .account-logo { max-height: 46px; }
.reg-topbar-right { font-size: .9rem; color: #94a3b8; }

.reg-hero { text-align: center; margin: 6px 0 30px; }
.reg-hero h1 { font-size: 1.9rem; margin: 0 0 .4rem; color: #f1f5f9; }
.reg-hero p { color: #94a3b8; margin: 0; }

.reg-section-label {
  text-align: center; color: #aab6c6; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px;
}

.reg-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px;
}
@media (max-width: 860px) { .reg-plans { grid-template-columns: 1fr; } }

.reg-plan {
  position: relative; display: block; cursor: pointer;
  background: #11161f; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 22px 20px;
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.reg-plan:hover { border-color: rgba(251, 191, 36, .5); }
.reg-plan.is-active {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px #fbbf24, 0 16px 44px rgba(251, 191, 36, .12);
}
.reg-plan input {
  position: absolute; top: 18px; right: 18px;
  width: 18px; height: 18px; accent-color: #fbbf24; cursor: pointer;
}
.reg-plan-name { font-size: 1.15rem; font-weight: 700; color: #f1f5f9; }
.reg-plan-badge {
  display: inline-block; margin-left: 8px; font-size: .65rem; font-weight: 700;
  color: #0a0e1a; background: #fbbf24; padding: 2px 8px; border-radius: 99px;
  vertical-align: middle; letter-spacing: .03em;
}
.reg-plan-price { margin-top: 6px; color: #fbbf24; font-weight: 700; font-size: 1.5rem; line-height: 1; }
.reg-plan-price small { color: #94a3b8; font-weight: 500; font-size: .8rem; }
.reg-plan-features { list-style: none; margin: 16px 0 0; padding: 0; }
.reg-plan-features li {
  padding: 7px 0 7px 22px; position: relative;
  color: #cbd5e1; font-size: .86rem; border-top: 1px solid rgba(255, 255, 255, .05);
}
.reg-plan-features li:before { content: "›"; position: absolute; left: 6px; color: #fbbf24; font-weight: 700; }
.reg-plan-features li.muted { color: #5d6b7e; font-style: italic; }
.reg-plan-features li.muted:before { color: #5d6b7e; }

.reg-form {
  background: #11161f; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 24px 24px 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.reg-form h2 { margin: 0 0 18px; font-size: 1.2rem; color: #f1f5f9; text-align: center; }

.reg-msg { max-width: 620px; margin: 40px auto 0; }

/* ---- split 2 colonne: sinistra registrazione · destra login ---- */
.reg-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 26px; align-items: start;
}
@media (max-width: 980px) { .reg-split { grid-template-columns: 1fr; } }

.reg-col-title {
  font-size: 1.15rem; font-weight: 700; color: #f1f5f9; margin: 0 0 4px;
}
.reg-col-sub { color: #94a3b8; font-size: .88rem; margin: 0 0 18px; }

.reg-split .reg-section-label { text-align: left; margin: 0 0 12px; }
.reg-split .reg-plans { margin: 20px 0 18px; gap: 12px; }
.reg-split .reg-plan { padding: 18px 16px; border-radius: 12px; }
.reg-split .reg-plan-price { font-size: 1.25rem; }

/* colonna destra login (sticky su desktop) */
.login-aside {
  background: #11161f; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 26px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  position: sticky; top: 20px;
}
@media (max-width: 980px) { .login-aside { position: static; } }
.login-aside .uk-button-primary { margin-top: 4px; }
.login-divider {
  border: none; border-top: 1px solid rgba(255, 255, 255, .08); margin: 18px 0;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.account-body .uk-navbar-container {
  background: #0d121c;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.account-body .uk-navbar-nav > li > a { color: #cbd5e1; }
.account-body .uk-navbar-nav > li > a:hover { color: #fbbf24; }
.account-body .uk-navbar-dropdown {
  background: #11161f;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e2e8f0;
}
.account-body .uk-navbar-dropdown-nav > li > a { color: #cbd5e1; }
.account-body .uk-navbar-dropdown-nav > li.uk-nav-header { color: #7c899c; }

.account-body .uk-card-default {
  background: #11161f;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #e2e8f0;
}
.account-body .uk-card-title { color: #f1f5f9; }
.account-body .uk-label { background: #fbbf24; color: #0a0e1a; }
.account-body .uk-text-success { color: #4ade80 !important; }
.account-body .uk-list > li { color: #cbd5e1; }

/* ============================================================
   SHELL (sticky footer) — usata dalla shell centrata e full-page
   ============================================================ */
.account-shell { display: flex; flex-direction: column; min-height: 100vh; }
.account-main {
  flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
/* contenuti full-page (registrazione/dashboard): spingono il footer in fondo */
.account-shell > .reg-wrap,
.account-shell > .dash-body { flex: 1 0 auto; width: 100%; }

/* ============================================================
   FOOTER area utenti
   ============================================================ */
.account-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(7, 11, 18, .6);
  backdrop-filter: blur(4px);
}
.account-footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #7c899c;
}
.af-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .12em; color: #cbd5e1; }
.af-brand img { height: 20px; width: auto; opacity: .9; }
.af-links { display: flex; gap: 18px; flex-wrap: wrap; }
.af-links a { color: #94a3b8; }
.af-links a:hover { color: #fbbf24; }
.af-copy { color: #5d6b7e; }
@media (max-width: 640px) {
  .account-footer-inner { justify-content: center; text-align: center; }
}

/* ---- feature list: spunte (al posto dei placeholder "...") ---- */
.reg-plan-features li.ok { color: #cbd5e1; }
.reg-plan-features li.ok:before { content: "✓"; color: #4ade80; font-weight: 700; }
.reg-plan-features li.soon { color: #7c899c; }
.reg-plan-features li.soon:before { content: "+"; color: #fbbf24; }

/* ---- dashboard: chip parole chiave notizie ---- */
.dash-kw-list .uk-label { display: inline-flex; align-items: center; gap: 6px; }
.dash-kw-x {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 0; opacity: .75;
}
.dash-kw-x:hover { opacity: 1; }

/* ---- dashboard: feed notizie filtrate ---- */
.dash-feed-item { padding: 10px 0; }
.dash-feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.dash-feed-text { font-size: 14px; line-height: 1.45; }

/* ---- dashboard: avvisi burst per nazione ---- */
.dash-alert-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; font-size: 14px; line-height: 1.45; }
.dash-alert-ico { color: #fbbf24; flex: 0 0 auto; margin-top: 2px; }
.dash-alert-link { margin-left: 6px; white-space: nowrap; }

/* ---- dashboard: report giornaliero ---- */
.dash-report-sel { width: auto; min-width: 150px; }
.dash-report-body { line-height: 1.6; }
.dash-report-body h2 { margin-top: .2em; }
.dash-report-body h3 { margin-top: 1.2em; }
.dash-report-body li { margin-bottom: .35em; }

/* ---- dashboard: real time ---- */
.dash-live-h { font-size: 14px; font-weight: 600; margin: 4px 0; }
.dash-live-list { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.4; max-height: 220px; overflow-y: auto; }
.dash-live-list li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.dash-markets { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.mk-item { white-space: nowrap; }
.mk-lab { color: #9aa6b8; }
.mk-val { font-weight: 600; }
.mk-up { color: #4ade80; }
.mk-down { color: #f87171; }

/* ---- premium evidenziato ---- */
.reg-plan-pop { border-color: rgba(251, 191, 36, .35); }
.reg-plan-pop:before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(251, 191, 36, .08), transparent 70%);
}
