:root{
  --ff-bg-0:#070913;
  --ff-bg-1:#0b1020;
  --ff-bg-2:#12162a;
  --ff-panel:rgba(255,255,255,.045);
  --ff-panel-2:rgba(255,255,255,.065);
  --ff-border:rgba(179,196,255,.16);
  --ff-border-strong:rgba(179,196,255,.28);

  --ff-text:#f6f8ff;
  --ff-text-soft:rgba(246,248,255,.78);
  --ff-text-muted:rgba(246,248,255,.58);

  --ff-accent:#8ea2ff;
  --ff-accent-2:#8d7bff;
  --ff-accent-3:#58c7ff;
  --ff-highlight:#d5ddff;

  --ff-success:#78e4c2;
  --ff-warn:#ffcc88;
  --ff-danger:#ff9fa8;

  --ff-shadow:0 14px 38px rgba(0,0,0,.34);
  --ff-radius-xl:28px;
  --ff-radius-lg:22px;
  --ff-radius-md:16px;
}

html, body{
  background:
    radial-gradient(circle at 15% 12%, rgba(88,199,255,.12), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(141,123,255,.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(142,162,255,.10), transparent 34%),
    linear-gradient(180deg, var(--ff-bg-0), var(--ff-bg-1) 42%, #0a0d17 100%);
  color:var(--ff-text);
  min-height:100%;
}

body.ff-luna-theme{
  color:var(--ff-text);
  accent-color:var(--ff-accent);
}

body.ff-luna-theme::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 22%),
    radial-gradient(circle at 80% 22%, rgba(142,162,255,.05), transparent 20%);
  z-index:0;
}

body.ff-luna-theme > *{
  position:relative;
  z-index:1;
}

body.ff-luna-theme,
body.ff-luna-theme button,
body.ff-luna-theme input,
body.ff-luna-theme textarea,
body.ff-luna-theme select{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ff-luna-theme a{
  color:var(--ff-highlight);
}

body.ff-luna-theme h1,
body.ff-luna-theme h2,
body.ff-luna-theme h3,
body.ff-luna-theme h4{
  color:var(--ff-text);
  letter-spacing:-0.02em;
}

body.ff-luna-theme p,
body.ff-luna-theme li,
body.ff-luna-theme span,
body.ff-luna-theme label,
body.ff-luna-theme small{
  color:inherit;
}

body.ff-luna-theme ::selection{
  background:rgba(142,162,255,.28);
}

body.ff-luna-theme::-webkit-scrollbar{
  width:12px;
  height:12px;
}
body.ff-luna-theme::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(142,162,255,.52), rgba(141,123,255,.42));
  border-radius:999px;
  border:3px solid transparent;
  background-clip:padding-box;
}
body.ff-luna-theme::-webkit-scrollbar-track{
  background:rgba(255,255,255,.02);
}

body.ff-luna-theme button,
body.ff-luna-theme .btn,
body.ff-luna-theme a.button,
body.ff-luna-theme input[type="submit"],
body.ff-luna-theme input[type="button"]{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.18), rgba(141,123,255,.14));
  color:var(--ff-text);
  border:1px solid var(--ff-border);
  border-radius:16px;
  box-shadow:var(--ff-shadow);
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body.ff-luna-theme button:hover,
body.ff-luna-theme .btn:hover,
body.ff-luna-theme a.button:hover,
body.ff-luna-theme input[type="submit"]:hover,
body.ff-luna-theme input[type="button"]:hover{
  transform:translateY(-1px);
  border-color:var(--ff-border-strong);
}

body.ff-luna-theme button:active,
body.ff-luna-theme .btn:active{
  transform:translateY(0);
}

body.ff-luna-theme input,
body.ff-luna-theme textarea,
body.ff-luna-theme select{
  background:rgba(255,255,255,.04);
  color:var(--ff-text);
  border:1px solid rgba(179,196,255,.14);
  border-radius:16px;
  box-shadow:inset 0 1px 18px rgba(255,255,255,.02);
}

body.ff-luna-theme input::placeholder,
body.ff-luna-theme textarea::placeholder{
  color:var(--ff-text-muted);
}

body.ff-luna-theme input:focus,
body.ff-luna-theme textarea:focus,
body.ff-luna-theme select:focus{
  outline:none;
  border-color:rgba(142,162,255,.45);
  box-shadow:0 0 0 3px rgba(142,162,255,.10);
}

body.ff-luna-theme header,
body.ff-luna-theme nav,
body.ff-luna-theme .nav,
body.ff-luna-theme .navbar,
body.ff-luna-theme .topbar,
body.ff-luna-theme .header,
body.ff-luna-theme .toolbar{
  background:rgba(10,14,28,.54);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(179,196,255,.10);
}

body.ff-luna-theme .card,
body.ff-luna-theme .panel,
body.ff-luna-theme .widget,
body.ff-luna-theme .module,
body.ff-luna-theme .box,
body.ff-luna-theme .tile,
body.ff-luna-theme .section,
body.ff-luna-theme .surface,
body.ff-luna-theme .surface-card,
body.ff-luna-theme .ff-surface-card,
body.ff-luna-theme .lane-card,
body.ff-luna-theme .chat-card,
body.ff-luna-theme .dashboard-card,
body.ff-luna-theme .live-card,
body.ff-luna-theme .pricing-card,
body.ff-luna-theme .stat-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(180deg, rgba(142,162,255,.03), rgba(141,123,255,.02));
  border:1px solid rgba(179,196,255,.10);
  border-radius:var(--ff-radius-lg);
  box-shadow:var(--ff-shadow);
  backdrop-filter:blur(10px);
}

body.ff-luna-theme .pill,
body.ff-luna-theme .chip,
body.ff-luna-theme .badge,
body.ff-luna-theme .tag,
body.ff-luna-theme .status-pill,
body.ff-luna-theme .token-pill{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(179,196,255,.14);
  color:var(--ff-text-soft);
  border-radius:999px;
}

body.ff-luna-theme table{
  background:rgba(255,255,255,.02);
  border-collapse:separate;
  border-spacing:0;
  border:1px solid rgba(179,196,255,.08);
  border-radius:18px;
  overflow:hidden;
}

body.ff-luna-theme th{
  background:rgba(255,255,255,.04);
  color:var(--ff-highlight);
}

body.ff-luna-theme td,
body.ff-luna-theme th{
  border-color:rgba(179,196,255,.08);
}

body.ff-luna-theme .muted,
body.ff-luna-theme .subtle,
body.ff-luna-theme .secondary,
body.ff-luna-theme .help,
body.ff-luna-theme .caption{
  color:var(--ff-text-muted) !important;
}

body.ff-luna-theme .success{ color:var(--ff-success) !important; }
body.ff-luna-theme .warning{ color:var(--ff-warn) !important; }
body.ff-luna-theme .danger{ color:var(--ff-danger) !important; }

body.ff-luna-theme.page-home .ff-theme-accent,
body.ff-luna-theme.page-landing .ff-theme-accent{
  box-shadow:0 0 0 1px rgba(142,162,255,.20), 0 0 40px rgba(141,123,255,.18);
}

body.ff-luna-theme.page-chat .chat-shell,
body.ff-luna-theme.page-chat .conversation,
body.ff-luna-theme.page-chat .chat-pane,
body.ff-luna-theme.page-chat .message-list{
  background:rgba(255,255,255,.025);
  border-color:rgba(179,196,255,.10);
}

body.ff-luna-theme.page-dashboard .dashboard-shell,
body.ff-luna-theme.page-dashboard .dashboard-grid,
body.ff-luna-theme.page-dashboard .dashboard-panel{
  gap:16px;
}

body.ff-luna-theme.page-live .live-shell,
body.ff-luna-theme.page-live .live-stage,
body.ff-luna-theme.page-live .live-panel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(88,199,255,.08), transparent 24%);
}


/* FF_ROUTE_POLISH_V1 */
body.ff-luna-theme .ff-primary-nav,
body.ff-luna-theme header,
body.ff-luna-theme nav,
body.ff-luna-theme .navbar,
body.ff-luna-theme .topbar,
body.ff-luna-theme .header,
body.ff-luna-theme .toolbar{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    linear-gradient(135deg, rgba(142,162,255,.10), rgba(141,123,255,.08));
  border-bottom:1px solid rgba(179,196,255,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}

body.ff-luna-theme .ff-primary-nav a,
body.ff-luna-theme header a,
body.ff-luna-theme nav a{
  color:var(--ff-text-soft);
}
body.ff-luna-theme .ff-primary-nav a:hover,
body.ff-luna-theme header a:hover,
body.ff-luna-theme nav a:hover{
  color:var(--ff-text);
}

body.ff-luna-theme.page-chat .ff-chat-surface,
body.ff-luna-theme.page-chat .chat-shell,
body.ff-luna-theme.page-chat .conversation,
body.ff-luna-theme.page-chat .chat-pane,
body.ff-luna-theme.page-chat .message-list,
body.ff-luna-theme.page-chat .chat-layout{
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.025)),
    radial-gradient(circle at top right, rgba(88,199,255,.06), transparent 24%);
  border:1px solid rgba(179,196,255,.10);
  border-radius:24px;
  box-shadow:var(--ff-shadow);
}

body.ff-luna-theme.page-chat .ff-chat-scroller,
body.ff-luna-theme.page-chat .message-list,
body.ff-luna-theme.page-chat .conversation,
body.ff-luna-theme.page-chat .messages{
  backdrop-filter:blur(8px);
}

body.ff-luna-theme.page-chat .ff-chat-composer,
body.ff-luna-theme.page-chat .composer,
body.ff-luna-theme.page-chat .chat-input-row,
body.ff-luna-theme.page-chat .chat-compose,
body.ff-luna-theme.page-chat form textarea{
  background:rgba(255,255,255,.04);
  border-color:rgba(179,196,255,.14);
  border-radius:18px;
}

body.ff-luna-theme.page-chat .message,
body.ff-luna-theme.page-chat .bubble,
body.ff-luna-theme.page-chat .chat-message,
body.ff-luna-theme.page-chat .assistant-message,
body.ff-luna-theme.page-chat .user-message{
  border-radius:18px;
  border:1px solid rgba(179,196,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.06), rgba(141,123,255,.04));
}

body.ff-luna-theme.page-chat .assistant-message,
body.ff-luna-theme.page-chat .message.assistant{
  box-shadow:0 8px 22px rgba(88,199,255,.08);
}
body.ff-luna-theme.page-chat .user-message,
body.ff-luna-theme.page-chat .message.user{
  box-shadow:0 8px 22px rgba(141,123,255,.10);
}

body.ff-luna-theme.page-dashboard .ff-dashboard-surface,
body.ff-luna-theme.page-dashboard .dashboard-shell,
body.ff-luna-theme.page-dashboard .dashboard-grid,
body.ff-luna-theme.page-dashboard .dashboard-panel,
body.ff-luna-theme.page-dashboard .summary-grid,
body.ff-luna-theme.page-dashboard .stats-grid{
  gap:16px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-surface .card,
body.ff-luna-theme.page-dashboard .dashboard-card,
body.ff-luna-theme.page-dashboard .stat-card,
body.ff-luna-theme.page-dashboard .summary-card{
  min-height:148px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(142,162,255,.08), transparent 24%);
}

body.ff-luna-theme.page-dashboard .dashboard-shell h1,
body.ff-luna-theme.page-dashboard .dashboard-shell h2,
body.ff-luna-theme.page-dashboard .dashboard-shell h3{
  color:var(--ff-highlight);
}

body.ff-luna-theme.page-live .ff-live-surface,
body.ff-luna-theme.page-live .live-shell,
body.ff-luna-theme.page-live .live-layout,
body.ff-luna-theme.page-live .live-panel{
  gap:16px;
}

body.ff-luna-theme.page-live .ff-live-stage,
body.ff-luna-theme.page-live .live-stage,
body.ff-luna-theme.page-live .stream-stage,
body.ff-luna-theme.page-live video{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)),
    radial-gradient(circle at top right, rgba(88,199,255,.10), transparent 26%);
  border:1px solid rgba(179,196,255,.14);
  border-radius:26px;
  box-shadow:var(--ff-shadow);
}

body.ff-luna-theme.page-live .ff-live-rail,
body.ff-luna-theme.page-live .live-side,
body.ff-luna-theme.page-live .meter-panel,
body.ff-luna-theme.page-live .billing-panel,
body.ff-luna-theme.page-live .performer-panel{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.08), rgba(141,123,255,.06));
  border:1px solid rgba(179,196,255,.10);
  border-radius:22px;
  box-shadow:var(--ff-shadow);
}

body.ff-luna-theme.page-home .ff-surface-wrap,
body.ff-luna-theme.page-landing .ff-surface-wrap{
  filter:saturate(1.02);
}


/* FF_LIVE_STAGE_POLISH_V1 */
body.ff-luna-theme.page-live .ff-live-stage-shell{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);
  gap:18px;
  align-items:start;
}

@media (max-width: 980px){
  body.ff-luna-theme.page-live .ff-live-stage-shell{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-live .ff-live-stage-primary{
  background:
    radial-gradient(circle at top right, rgba(88,199,255,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  border:1px solid rgba(179,196,255,.14);
  border-radius:28px;
  box-shadow:0 18px 42px rgba(0,0,0,.34);
  padding:16px;
  min-height:520px;
}

body.ff-luna-theme.page-live .ff-live-stage-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

body.ff-luna-theme.page-live .ff-live-stage-title{
  font-size:24px;
  font-weight:700;
  color:var(--ff-highlight);
  letter-spacing:-0.02em;
}

body.ff-luna-theme.page-live .ff-live-stage-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

body.ff-luna-theme.page-live .ff-live-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(179,196,255,.14);
  background:rgba(255,255,255,.04);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme.page-live .ff-live-video-wrap{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  background:
    radial-gradient(circle at center, rgba(141,123,255,.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid rgba(179,196,255,.12);
  min-height:400px;
}

body.ff-luna-theme.page-live .ff-live-video-wrap video,
body.ff-luna-theme.page-live .ff-live-video-wrap .live-stage,
body.ff-luna-theme.page-live .ff-live-video-wrap .stream-stage{
  width:100%;
  min-height:400px;
  border-radius:24px;
  background:transparent;
}

body.ff-luna-theme.page-live .ff-live-stage-overlay{
  position:absolute;
  inset:auto 14px 14px 14px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
  pointer-events:none;
}

body.ff-luna-theme.page-live .ff-live-stage-badge{
  pointer-events:auto;
  border:1px solid rgba(179,196,255,.18);
  background:rgba(7,9,19,.62);
  backdrop-filter:blur(12px);
  border-radius:16px;
  padding:10px 12px;
  font-size:12px;
  color:var(--ff-text-soft);
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

body.ff-luna-theme.page-live .ff-live-side-rail{
  display:grid;
  gap:14px;
}

body.ff-luna-theme.page-live .ff-live-rail-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.08), rgba(141,123,255,.06));
  border:1px solid rgba(179,196,255,.10);
  border-radius:22px;
  box-shadow:var(--ff-shadow);
  padding:16px;
}

body.ff-luna-theme.page-live .ff-live-rail-card h3{
  margin:0 0 10px 0;
  font-size:15px;
  color:var(--ff-highlight);
}

body.ff-luna-theme.page-live .ff-live-rail-list{
  display:grid;
  gap:8px;
  font-size:13px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme.page-live .ff-live-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

body.ff-luna-theme.page-live .ff-live-actions .ff-live-btn{
  border:1px solid rgba(179,196,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.18), rgba(141,123,255,.14));
  color:var(--ff-text);
  border-radius:16px;
  padding:10px 14px;
  text-decoration:none;
  font-size:13px;
  box-shadow:var(--ff-shadow);
}

body.ff-luna-theme.page-live .ff-live-summary-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

@media (max-width: 700px){
  body.ff-luna-theme.page-live .ff-live-summary-strip{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-live .ff-live-mini{
  border:1px solid rgba(179,196,255,.10);
  background:rgba(255,255,255,.035);
  border-radius:18px;
  padding:12px;
}

body.ff-luna-theme.page-live .ff-live-mini-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--ff-text-muted);
  margin-bottom:5px;
}

body.ff-luna-theme.page-live .ff-live-mini-value{
  font-size:16px;
  font-weight:700;
  color:var(--ff-text);
}


/* FF_CHAT_POLISH_V1 */
body.ff-luna-theme.page-chat .ff-chat-shell-premium{
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(0,1.45fr);
  gap:18px;
  align-items:start;
}

@media (max-width: 980px){
  body.ff-luna-theme.page-chat .ff-chat-shell-premium{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-chat .ff-chat-rail{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.08), rgba(141,123,255,.06));
  border:1px solid rgba(179,196,255,.12);
  border-radius:24px;
  box-shadow:var(--ff-shadow);
  padding:16px;
}

body.ff-luna-theme.page-chat .ff-chat-rail h3{
  margin:0 0 10px 0;
  font-size:15px;
  color:var(--ff-highlight);
}

body.ff-luna-theme.page-chat .ff-chat-rail-list{
  display:grid;
  gap:8px;
  font-size:13px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme.page-chat .ff-chat-main{
  background:
    radial-gradient(circle at top right, rgba(88,199,255,.09), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(179,196,255,.12);
  border-radius:28px;
  box-shadow:0 18px 42px rgba(0,0,0,.34);
  overflow:hidden;
}

body.ff-luna-theme.page-chat .ff-chat-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(179,196,255,.10);
  background:rgba(255,255,255,.03);
}

body.ff-luna-theme.page-chat .ff-chat-header-title{
  font-size:22px;
  font-weight:700;
  color:var(--ff-highlight);
}

body.ff-luna-theme.page-chat .ff-chat-header-sub{
  font-size:12px;
  color:var(--ff-text-muted);
  margin-top:4px;
}

body.ff-luna-theme.page-chat .ff-chat-header-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

body.ff-luna-theme.page-chat .ff-chat-pill{
  border:1px solid rgba(179,196,255,.14);
  background:rgba(255,255,255,.04);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme.page-chat .ff-chat-transcript{
  padding:18px;
  display:grid;
  gap:12px;
  min-height:420px;
}

body.ff-luna-theme.page-chat .ff-chat-bubble{
  max-width:min(78%, 720px);
  border-radius:20px;
  padding:14px 15px;
  border:1px solid rgba(179,196,255,.10);
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  font-size:14px;
  line-height:1.58;
}

body.ff-luna-theme.page-chat .ff-chat-bubble.assistant{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(88,199,255,.08), rgba(142,162,255,.05));
}

body.ff-luna-theme.page-chat .ff-chat-bubble.user{
  margin-left:auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(141,123,255,.10), rgba(142,162,255,.05));
}

body.ff-luna-theme.page-chat .ff-chat-compose-premium{
  padding:16px 18px 18px 18px;
  border-top:1px solid rgba(179,196,255,.10);
  background:rgba(255,255,255,.02);
}

body.ff-luna-theme.page-chat .ff-chat-compose-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}

@media (max-width: 700px){
  body.ff-luna-theme.page-chat .ff-chat-compose-row{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-chat .ff-chat-compose-input{
  min-height:56px;
  border-radius:18px;
  border:1px solid rgba(179,196,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--ff-text);
  padding:14px 16px;
}

body.ff-luna-theme.page-chat .ff-chat-send{
  border-radius:18px;
  min-width:140px;
  padding:0 18px;
}

body.ff-luna-theme.page-chat .ff-chat-status-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

@media (max-width: 700px){
  body.ff-luna-theme.page-chat .ff-chat-status-row{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-chat .ff-chat-status{
  border:1px solid rgba(179,196,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:10px 12px;
}

body.ff-luna-theme.page-chat .ff-chat-status-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--ff-text-muted);
  margin-bottom:4px;
}

body.ff-luna-theme.page-chat .ff-chat-status-value{
  font-size:14px;
  font-weight:700;
  color:var(--ff-text);
}


/* FF_DASHBOARD_POLISH_V1 */
body.ff-luna-theme.page-dashboard .ff-dashboard-shell-premium{
  display:grid;
  gap:18px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-hero{
  background:
    radial-gradient(circle at top right, rgba(141,123,255,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(179,196,255,.14);
  border-radius:28px;
  box-shadow:0 18px 42px rgba(0,0,0,.34);
  padding:22px 20px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-eyebrow{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ff-text-muted);
  margin-bottom:8px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-title{
  font-size:30px;
  line-height:1.12;
  font-weight:700;
  color:var(--ff-highlight);
  margin:0 0 10px 0;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-sub{
  font-size:14px;
  line-height:1.58;
  color:var(--ff-text-soft);
  max-width:900px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-pill{
  border:1px solid rgba(179,196,255,.14);
  background:rgba(255,255,255,.04);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme.page-dashboard .ff-dashboard-grid-premium{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(280px,.75fr);
  gap:18px;
  align-items:start;
}

@media (max-width: 980px){
  body.ff-luna-theme.page-dashboard .ff-dashboard-grid-premium{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-dashboard .ff-dashboard-main-stack{
  display:grid;
  gap:16px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

@media (max-width: 760px){
  body.ff-luna-theme.page-dashboard .ff-dashboard-metrics{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-dashboard .ff-dashboard-metric{
  border:1px solid rgba(179,196,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.08), rgba(141,123,255,.05));
  border-radius:22px;
  box-shadow:var(--ff-shadow);
  padding:16px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-metric-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--ff-text-muted);
  margin-bottom:6px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-metric-value{
  font-size:24px;
  font-weight:700;
  color:var(--ff-text);
}

body.ff-luna-theme.page-dashboard .ff-dashboard-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

@media (max-width: 880px){
  body.ff-luna-theme.page-dashboard .ff-dashboard-card-grid{
    grid-template-columns:1fr;
  }
}

body.ff-luna-theme.page-dashboard .ff-dashboard-card-premium{
  border:1px solid rgba(179,196,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(88,199,255,.08), transparent 24%);
  border-radius:22px;
  box-shadow:var(--ff-shadow);
  padding:16px;
  min-height:160px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-card-premium h3{
  margin:0 0 10px 0;
  font-size:15px;
  color:var(--ff-highlight);
}

body.ff-luna-theme.page-dashboard .ff-dashboard-card-list{
  display:grid;
  gap:8px;
  font-size:13px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme.page-dashboard .ff-dashboard-rail{
  display:grid;
  gap:14px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-rail-card{
  border:1px solid rgba(179,196,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.08), rgba(141,123,255,.06));
  border-radius:22px;
  box-shadow:var(--ff-shadow);
  padding:16px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-rail-card h3{
  margin:0 0 10px 0;
  font-size:15px;
  color:var(--ff-highlight);
}

body.ff-luna-theme.page-dashboard .ff-dashboard-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

body.ff-luna-theme.page-dashboard .ff-dashboard-btn{
  border:1px solid rgba(179,196,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.18), rgba(141,123,255,.14));
  color:var(--ff-text);
  border-radius:16px;
  padding:10px 14px;
  text-decoration:none;
  font-size:13px;
  box-shadow:var(--ff-shadow);
}


/* FF_NAV_CHROME_V1 */
body.ff-luna-theme .ff-global-chrome{
  position:sticky;
  top:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 18px;
  margin:0 0 18px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    linear-gradient(135deg, rgba(142,162,255,.10), rgba(141,123,255,.08));
  border-bottom:1px solid rgba(179,196,255,.12);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 28px rgba(0,0,0,.24);
}

body.ff-luna-theme .ff-global-brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}

body.ff-luna-theme .ff-global-brand-title{
  font-size:16px;
  font-weight:700;
  color:var(--ff-highlight);
  line-height:1.1;
}

body.ff-luna-theme .ff-global-brand-sub{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ff-text-muted);
}

body.ff-luna-theme .ff-global-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

body.ff-luna-theme .ff-global-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(179,196,255,.12);
  background:rgba(255,255,255,.035);
  color:var(--ff-text-soft);
  border-radius:999px;
  padding:9px 13px;
  text-decoration:none;
  font-size:13px;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}

body.ff-luna-theme .ff-global-link:hover{
  transform:translateY(-1px);
  border-color:rgba(179,196,255,.24);
  color:var(--ff-text);
}

body.ff-luna-theme .ff-global-link.active{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    linear-gradient(135deg, rgba(142,162,255,.18), rgba(141,123,255,.14));
  color:var(--ff-text);
  border-color:rgba(179,196,255,.24);
  box-shadow:0 8px 22px rgba(0,0,0,.22);
}

body.ff-luna-theme .ff-global-status{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

body.ff-luna-theme .ff-global-pill{
  border:1px solid rgba(179,196,255,.12);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  color:var(--ff-text-soft);
}

body.ff-luna-theme .ff-global-footer{
  margin:28px auto 10px auto;
  max-width:1240px;
  padding:0 18px 18px 18px;
  box-sizing:border-box;
}

body.ff-luna-theme .ff-global-footer-inner{
  border:1px solid rgba(179,196,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025)),
    linear-gradient(135deg, rgba(142,162,255,.06), rgba(141,123,255,.05));
  border-radius:22px;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  box-shadow:var(--ff-shadow);
}

body.ff-luna-theme .ff-global-footer-copy{
  font-size:12px;
  color:var(--ff-text-muted);
}

body.ff-luna-theme .ff-global-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

body.ff-luna-theme .ff-global-footer-links a{
  font-size:12px;
  color:var(--ff-text-soft);
  text-decoration:none;
}

@media (max-width: 900px){
  body.ff-luna-theme .ff-global-chrome{
    flex-direction:column;
    align-items:flex-start;
  }
  body.ff-luna-theme .ff-global-nav{
    justify-content:flex-start;
  }
}
