﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --ff-bg: #0b0d10;
    --ff-panel: #12151a;
    --ff-panel-2: #171a20;
    --ff-text: #e7edf3;
    --ff-muted: #98a2ad;
    --ff-line: #232833;
    --ff-brand: #e0548d;
    --ff-brand-2: #ff7ac3;
    --ff-danger: #e24b4a;
    --ff-success: #3d9a7a;
    --ff-warn: #d4a017;
    --ff-radius: 12px;
    --ff-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --ff-command-h: 56px;
    --ff-rail-w: 88px;
    --ff-rail-w-wide: 168px;
    --ff-bottom-h: 64px;
    --ff-focus: 2px solid #3aa0ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    font-size: 16px;
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--ff-bg);
    color: var(--ff-text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: var(--ff-focus);
    outline-offset: 2px;
}

.ff-skip {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    background: var(--ff-brand);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.ff-skip:focus {
    left: 8px;
}

/* ---------- Command bar ---------- */
.ff-command {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    height: var(--ff-command-h);
    padding: 0 16px;
    background: var(--ff-panel);
    border-bottom: 1px solid var(--ff-line);
    overflow: visible;
}

.ff-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ff-brand img {
    height: 28px;
    width: auto;
    display: block;
}

.ff-brand-mark {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ff-brand);
    white-space: nowrap;
}

.ff-jump {
    position: relative;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}

.ff-jump input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--ff-line);
    background: var(--ff-bg);
    color: var(--ff-text);
    border-radius: 10px;
    padding: 0 12px 0 36px;
    font: inherit;
}

.ff-jump::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border: 2px solid var(--ff-muted);
    border-radius: 50%;
    pointer-events: none;
}

.ff-jump-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--ff-panel-2);
    border: 1px solid var(--ff-line);
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow);
    max-height: 360px;
    overflow: auto;
    z-index: 50;
}

.ff-jump-results[hidden] {
    display: none;
}

.ff-jump-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    color: var(--ff-text);
    cursor: pointer;
}

.ff-jump-item:hover,
.ff-jump-item.is-active {
    background: rgba(224, 84, 141, 0.12);
}

.ff-jump-item small {
    color: var(--ff-muted);
}

.ff-issues-btn {
    position: relative;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--ff-line);
    background: var(--ff-bg);
    color: var(--ff-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ff-issues-btn.has-issues {
    border-color: var(--ff-danger);
}

.ff-issues-btn .ff-badge {
    margin-left: 6px;
}

.ff-issues-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, calc(100vw - 24px));
    max-height: min(70vh, 560px);
    overflow: auto;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 14px;
    box-shadow: var(--ff-shadow);
    z-index: 60;
    padding: 14px;
}

.ff-issues-panel[hidden] {
    display: none;
}

.ff-issues-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ff-issues-head h2,
.ff-issues-panel h3,
.ff-dash-issues h2 {
    margin: 0;
    font-size: 14px;
}

.ff-issues-panel h3 {
    margin: 14px 0 8px;
    color: var(--ff-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ff-issues-empty {
    color: var(--ff-muted);
    margin: 0;
}

.ff-issue-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ff-line);
    font-size: 13px;
}

.ff-issue-row a {
    color: var(--ff-brand);
    font-weight: 600;
}

.ff-issue-row small {
    display: block;
    color: var(--ff-muted);
    font-weight: 500;
}

#ff-issues-clear {
    border: 0;
    background: transparent;
    color: var(--ff-muted);
    font: inherit;
    cursor: pointer;
}

.ff-who {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.ff-user {
    color: var(--ff-muted);
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Shell ---------- */
.ff-shell {
    display: grid;
    grid-template-columns: var(--ff-rail-w-wide) 1fr;
    min-height: calc(100dvh - var(--ff-command-h));
}

.ff-rail {
    position: sticky;
    top: var(--ff-command-h);
    height: calc(100dvh - var(--ff-command-h));
    overflow: auto;
    background: var(--ff-panel);
    border-right: 1px solid var(--ff-line);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ff-dest {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ff-muted);
    position: relative;
    font-weight: 600;
}

.ff-dest::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 2px;
    background: transparent;
}

.ff-dest:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ff-text);
}

.ff-dest.is-active {
    background: rgba(224, 84, 141, 0.12);
    color: #fff;
}

.ff-dest.is-active::before {
    background: var(--ff-brand);
}

.ff-dest-ico {
    width: 22px;
    text-align: center;
    font-size: 15px;
    flex: 0 0 22px;
}

.ff-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ff-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

.ff-badge.is-on {
    display: inline-flex;
}

.ff-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ff-chips {
    display: none;
    gap: 8px;
    padding: 12px 18px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ff-chips.is-on {
    display: flex;
}

.ff-chips > div,
.ff-rail > div {
    display: contents;
}

.ff-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 12px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--ff-line);
    background: var(--ff-panel);
    color: var(--ff-muted);
    font-weight: 600;
}

.ff-chip:hover {
    color: var(--ff-text);
    border-color: #3a4250;
}

.ff-chip.is-active,
.ff-chip.admin-link.active {
    background: linear-gradient(90deg, var(--ff-brand), var(--ff-brand-2));
    border-color: transparent;
    color: #fff;
}

.ff-chip-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    padding: 1px 6px;
    display: none;
}

.ff-chip-count.is-on {
    display: inline-flex;
}

.ff-canvas {
    padding: 18px;
    min-height: 60vh;
}

/* ---------- Page chrome ---------- */
.ff-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ff-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ff-page-head h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ff-text);
}

.ff-page-head p {
    margin: 4px 0 0;
    color: var(--ff-muted);
}

.ff-list {
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow);
    padding: 12px;
    overflow-x: auto;
    min-height: 140px;
    position: relative;
}

.ff-list.is-loading::after {
    content: "Loading rows…";
    position: absolute;
    inset: 56px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-muted);
    pointer-events: none;
}

.ff-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.ff-editor-card {
    max-width: 760px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: var(--ff-radius);
    padding: 20px;
    display: grid;
    gap: 12px;
}

.ff-editor-card label,
.ff-editor-card h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ff-muted);
}

.ff-editor-card input[type="text"],
.ff-editor-card input[type="password"],
.ff-editor-card input[type="file"],
.ff-editor-card select,
.ff-editor-card textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ff-line);
    background: var(--ff-bg);
    color: var(--ff-text);
    border-radius: 10px;
    padding: 8px 12px;
    font: inherit;
}

/* ---------- Home / Fyre Dashboard ---------- */
.ff-dash {
    position: relative;
    background:
        radial-gradient(720px 280px at 8% -8%, rgba(224, 84, 141, 0.16), transparent 58%),
        radial-gradient(520px 220px at 100% 8%, rgba(61, 154, 122, 0.08), transparent 55%);
    margin: -18px -18px 0;
    padding: 18px 18px 8px;
    border-radius: 0 0 18px 18px;
}

.ff-dash::before {
    content: "";
    position: absolute;
    inset: -40px 20% auto auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(224, 84, 141, 0.12);
    filter: blur(40px);
    pointer-events: none;
    animation: ffAmbient 9s ease-in-out infinite;
}

@keyframes ffAmbient {
    0%, 100% { opacity: 0.45; transform: translate(0, 0) scale(1); }
    50% { opacity: 0.9; transform: translate(-24px, 18px) scale(1.08); }
}

.ff-board-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ff-board-intro h1 {
    margin: 4px 0 4px;
    font-size: 28px;
}

.ff-board-intro p {
    margin: 0;
    color: var(--ff-muted);
}

.ff-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: var(--ff-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ff-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ff-brand);
    box-shadow: 0 0 0 0 rgba(224, 84, 141, 0.55);
    animation: ffPing 1.6s ease-out infinite;
}

@keyframes ffPing {
    0% { box-shadow: 0 0 0 0 rgba(224, 84, 141, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(224, 84, 141, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 84, 141, 0); }
}

.ff-health {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 10px 14px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 14px;
}

.ff-health strong {
    display: block;
}

.ff-health span {
    color: var(--ff-muted);
    font-size: 12px;
}

.ff-health-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    position: relative;
    background: var(--ff-panel-2);
}

.ff-health-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(var(--ff-brand) calc(var(--p, 0) * 1%), var(--ff-line) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
    mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
}

.ff-health-ring span {
    position: relative;
    z-index: 1;
    color: var(--ff-text);
    font-size: 16px;
    font-weight: 800;
}

.ff-health.is-ok .ff-health-ring::before {
    background: conic-gradient(var(--ff-success) calc(var(--p, 0) * 1%), var(--ff-line) 0);
}

.ff-health.is-warn .ff-health-ring::before {
    background: conic-gradient(var(--ff-warn) calc(var(--p, 0) * 1%), var(--ff-line) 0);
}

.ff-health.is-bad .ff-health-ring::before {
    background: conic-gradient(var(--ff-danger) calc(var(--p, 0) * 1%), var(--ff-line) 0);
}

.ff-board-group {
    margin-bottom: 22px;
}

.ff-board-group h2,
.ff-focus h2 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-muted);
}

.ff-ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 36px;
}

.ff-ticker span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    color: var(--ff-muted);
    font-size: 12px;
    font-weight: 600;
}

.ff-ticker .is-up {
    color: var(--ff-brand);
    border-color: rgba(224, 84, 141, 0.45);
}

.ff-ticker .is-down {
    color: var(--ff-success);
    border-color: rgba(61, 154, 122, 0.4);
}

.ff-brief {
    margin: -4px 0 16px;
    color: var(--ff-text);
    font-size: 15px;
    font-weight: 600;
}

.ff-vital {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.ff-vital-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 12px;
}

.ff-vital-item strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--ff-text);
}

.ff-vital-item span {
    color: var(--ff-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ff-vital-item.is-hot {
    border-color: var(--ff-brand);
}

.ff-mix-card {
    min-height: 0;
    margin-bottom: 18px;
}

.ff-mix {
    display: grid;
    gap: 8px;
}

.ff-mix-row {
    display: grid;
    grid-template-columns: 88px 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.ff-mix-row.is-zero {
    opacity: 0.45;
}

.ff-mix-label {
    font-size: 13px;
    font-weight: 600;
}

.ff-mix-bar {
    height: 8px;
    border-radius: 99px;
    background: var(--ff-line);
    overflow: hidden;
}

.ff-mix-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--ff-brand);
    transition: width 0.7s ease;
}

.ff-mix-row b {
    min-width: 1.5em;
    text-align: right;
    font-size: 13px;
}

.ff-mix-row small {
    min-width: 2.4em;
    text-align: right;
    color: var(--ff-muted);
}

.ff-focus {
    margin-bottom: 18px;
}

.ff-next-list {
    display: grid;
    gap: 10px;
}

.ff-next-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 14px;
}

.ff-next-card em {
    font-style: normal;
    font-weight: 800;
    color: var(--ff-muted);
}

.ff-next-card strong {
    display: block;
}

.ff-next-card span {
    display: block;
    color: var(--ff-muted);
    font-size: 13px;
}

.ff-next-card.is-first {
    border-color: var(--ff-brand);
    box-shadow: 0 0 0 1px rgba(224, 84, 141, 0.25), 0 12px 30px rgba(0, 0, 0, 0.25);
    animation: ffGlow 2.4s ease-in-out infinite;
}

@keyframes ffGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(224, 84, 141, 0.2), 0 12px 30px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 0 0 3px rgba(224, 84, 141, 0.35), 0 16px 34px rgba(0, 0, 0, 0.28); }
}

.ff-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ff-insight-list {
    display: grid;
    gap: 8px;
}

.ff-insight {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--ff-line);
}

.ff-insight:last-child {
    border-bottom: 0;
}

.ff-insight strong {
    display: block;
}

.ff-insight span {
    display: block;
    color: var(--ff-muted);
    font-size: 12px;
}

.ff-insight.is-bad strong {
    color: var(--ff-danger);
}

.ff-insight.is-warn strong {
    color: var(--ff-warn);
}

.ff-insight.is-ok strong {
    color: var(--ff-success);
}

.ff-bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.ff-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 110px;
    padding: 16px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: var(--ff-radius);
    color: var(--ff-text);
    transition: border-color 0.15s, transform 0.15s;
}

.ff-tile:hover {
    border-color: var(--ff-brand);
    transform: translateY(-1px);
}

.ff-tile.is-zero {
    opacity: 0.55;
}

.ff-tile-label {
    font-weight: 700;
}

.ff-tile-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--ff-brand);
    line-height: 1.1;
}

.ff-tile.is-zero .ff-tile-count {
    color: var(--ff-muted);
}

.ff-tile-hint {
    color: var(--ff-muted);
    font-size: 12px;
}

.ff-empty {
    display: none;
    padding: 12px 14px;
    border: 1px dashed var(--ff-line);
    border-radius: var(--ff-radius);
    color: var(--ff-muted);
    margin-bottom: 16px;
}

.ff-empty.is-on {
    display: block;
}

.ff-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.ff-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 14px;
    min-height: 108px;
    transition: border-color 0.2s, transform 0.2s;
}

.ff-kpi:hover,
.ff-kpi.is-hot {
    border-color: var(--ff-brand);
}

.ff-kpi-label {
    color: var(--ff-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ff-kpi-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--ff-brand);
}

.ff-kpi-value.is-bump {
    animation: ffBump 0.45s ease;
}

@keyframes ffBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.ff-kpi.is-zero .ff-kpi-value {
    color: var(--ff-muted);
}

.ff-kpi-hint {
    color: var(--ff-muted);
    font-size: 12px;
}

.ff-dash-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    margin-bottom: 22px;
}

.ff-chart-card {
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 14px;
    padding: 16px;
    min-height: 240px;
}

.ff-chart-card h2 {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ff-muted);
}

.ff-chart-card canvas {
    width: 100% !important;
    height: 210px !important;
}

.ff-dash-issues {
    grid-column: 1 / -1;
    min-height: 0;
}

.ff-dash-issues .ff-issue-row:last-child {
    border-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn,
.ff-btn,
#blogCreateBtn,
#create-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid transparent;
    cursor: pointer;
    word-spacing: 0;
}

.btn-info,
.btn-primary,
.ff-btn-primary,
#blogCreateBtn,
#create-admin-btn {
    background: var(--ff-brand) !important;
    border-color: var(--ff-brand) !important;
    color: #fff !important;
}

.btn-info:hover,
.btn-primary:hover,
.ff-btn-primary:hover,
#blogCreateBtn:hover,
#create-admin-btn:hover {
    background: var(--ff-brand-2) !important;
    color: #1a0b12 !important;
}

.btn-danger {
    background: var(--ff-danger) !important;
    border-color: var(--ff-danger) !important;
    color: #fff !important;
}

.btn-success {
    background: var(--ff-success) !important;
    border-color: var(--ff-success) !important;
    color: #fff !important;
}

.btn-default,
.ff-btn-ghost,
.login-btn .btn {
    background: transparent !important;
    border: 1px solid var(--ff-line) !important;
    color: var(--ff-text) !important;
}

.btn-sm {
    min-height: 36px;
    padding: 4px 12px;
}

.approval-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--ff-brand);
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
}

.approval-table:hover {
    opacity: 0.85;
    background: var(--ff-brand-2);
    color: #1a0b12 !important;
}

/* ---------- Tables / DataTables ---------- */
table {
    border-collapse: collapse;
    width: 100%;
    color: var(--ff-text);
}

th,
td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid var(--ff-line);
    vertical-align: middle;
}

thead th,
#approve-table-header {
    background: var(--ff-panel-2);
    color: var(--ff-muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

table.folsub-table tbody tr {
    cursor: pointer;
}

table.dataTable tbody tr,
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background: transparent;
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.dataTables_wrapper {
    color: var(--ff-muted);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--ff-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--ff-bg);
    color: var(--ff-text);
    border: 1px solid var(--ff-line);
    border-radius: 8px;
    padding: 6px 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--ff-muted) !important;
    border-radius: 8px !important;
    border: 0 !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--ff-brand) !important;
    color: #fff !important;
}

table.dataTable.no-footer,
.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-color: var(--ff-line);
}

/* ---------- Inspector (centered record viewer) ---------- */
.modal {
    padding: 0 !important;
    text-align: center;
}

.modal:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.modal-backdrop {
    background: rgba(5, 7, 10, 0.72);
}

.modal-backdrop.in {
    opacity: 1;
}

.modal.fade .modal-dialog {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    margin: 24px auto !important;
    width: min(1080px, 96vw) !important;
    max-width: none !important;
    height: auto;
    max-height: 88vh;
    transform: translateY(18px) scale(0.98) !important;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal.in .modal-dialog,
.modal.fade.in .modal-dialog {
    transform: translateY(0) scale(1) !important;
    opacity: 1;
}

.modal-lg,
.modal-larger,
.payouts-modal .modal-dialog {
    width: min(1120px, 96vw) !important;
}

.modal-content {
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--ff-panel);
    color: var(--ff-text);
    border: 1px solid var(--ff-line);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.modal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    border-bottom: 1px solid var(--ff-line);
    padding: 16px 20px;
}

.modal-title {
    font-weight: 800;
    font-size: 20px;
    color: var(--ff-text);
    margin: 0;
    flex: 1 1 auto;
}

.modal-header .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
    font-size: 28px;
    float: none;
    order: 2;
    margin-left: auto;
}

.ff-record-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.ff-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ff-panel-2);
    border: 1px solid var(--ff-line);
    color: var(--ff-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ff-pill.is-ok {
    color: var(--ff-success);
    border-color: var(--ff-success);
}

.ff-pill.is-bad {
    color: var(--ff-danger);
    border-color: var(--ff-danger);
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    text-align: left;
}

.modal-body.ff-record {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.ff-record-media h3,
.ff-record-media .ff-tile-hint {
    margin-top: 0;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ff-line);
    background: var(--ff-panel-2);
    padding: 12px 16px;
}

.ff-act-groups,
.ff-act-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.modal-footer .btn,
.modal-footer [class*="btn"] {
    float: none !important;
    margin: 0;
}

.modal-footer .btn-info {
    background: transparent !important;
    border: 1px solid var(--ff-line) !important;
    color: var(--ff-text) !important;
}

.modal-footer .btn-info[id*="approve"],
.modal-footer .btn-info[id*="enable"],
.modal-footer .btn-success,
.modal-footer #update-status-btn {
    background: var(--ff-brand) !important;
    border-color: var(--ff-brand) !important;
    color: #fff !important;
}

#payout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ff-defs {
    display: grid;
    gap: 0;
    margin: 0;
}

.ff-defs > div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ff-line);
}

.ff-defs dt {
    margin: 0;
    color: var(--ff-muted);
    font-weight: 600;
}

.ff-defs dd {
    margin: 0;
    font-weight: 600;
}

.ff-defs dd.is-yes {
    color: var(--ff-success);
}

.ff-defs dd.is-no {
    color: var(--ff-muted);
}

.ff-def-block {
    margin-bottom: 18px;
}

.ff-def-block h3,
.admin-profile-section h2 {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ff-brand);
}

.admin-profile-section {
    margin-bottom: 16px;
}

.banking-details {
    display: grid;
    gap: 10px;
}

.settings-item-personal h4 {
    margin: 0;
    font-size: 12px;
    color: var(--ff-muted);
    text-decoration: none;
}

#payout-bank-details h4 {
    text-decoration: none;
    color: var(--ff-muted);
}

.banking-value {
    font-weight: 600;
}

#bank-warning {
    display: block;
    margin-top: 8px;
    color: var(--ff-warn) !important;
}

.thumbnail img {
    width: 100%;
    max-width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background: var(--ff-panel-2);
}

ul.thumbnails.image_picker_selector {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
    overflow: visible !important;
    overflow-x: visible !important;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

ul.thumbnails.image_picker_selector li {
    float: none !important;
    margin: 0 !important;
}

ul.thumbnails.image_picker_selector li .thumbnail {
    padding: 0;
    margin: 0;
    border: 2px solid var(--ff-line);
    border-radius: 10px;
    background: var(--ff-bg);
    overflow: hidden;
}

ul.thumbnails.image_picker_selector li .thumbnail.selected {
    background: transparent;
    border-color: var(--ff-brand);
    box-shadow: 0 0 0 2px rgba(224, 84, 141, 0.35);
}

.ff-photo-miss {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: var(--ff-panel-2);
    color: var(--ff-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
}

.conversation-message-image {
    width: 150px;
    vertical-align: unset !important;
}

.reported-conversations-modal {
    height: auto;
    max-height: none;
    overflow: visible;
}

.messages-show-more {
    text-align: center;
    padding: 8px;
    font-size: 14px;
    width: 150px;
    text-transform: uppercase;
    background: var(--ff-panel-2);
    margin: 8px auto;
    cursor: pointer;
    color: var(--ff-text);
    font-weight: 700;
    border-radius: 8px;
}

.image-picker .thumbnails {
    overflow: auto;
}

/* ---------- Confirms + toasts ---------- */
.jconfirm-dark .jconfirm-box,
.jconfirm .jconfirm-box {
    background: var(--ff-panel) !important;
    color: var(--ff-text) !important;
    border-radius: 14px !important;
    border: 1px solid var(--ff-line) !important;
}

.jconfirm .jconfirm-title-c .jconfirm-title {
    color: var(--ff-text) !important;
}

.jconfirm .jconfirm-content {
    color: var(--ff-muted) !important;
}

.jconfirm .btn-red,
.jconfirm .jconfirm-buttons .btn-red {
    background: var(--ff-brand) !important;
    color: #fff !important;
}

.ff-toasts {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 100000;
    display: grid;
    gap: 8px;
    max-width: min(360px, calc(100vw - 32px));
}

.ff-toast {
    background: var(--ff-panel-2);
    border: 1px solid var(--ff-line);
    border-left: 3px solid var(--ff-brand);
    color: var(--ff-text);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: var(--ff-shadow);
}

.ff-toast.is-error {
    border-left-color: var(--ff-danger);
}

.ff-toast.is-success {
    border-left-color: var(--ff-success);
}

/* ---------- Login ---------- */
body.ff-login {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(224, 84, 141, 0.18), transparent 60%),
        var(--ff-bg);
}

.ff-login-card {
    width: min(420px, calc(100vw - 32px));
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--ff-shadow);
}

.ff-login-card .login-logo img {
    display: block;
    width: 180px;
    margin: 0 auto 16px;
}

.ff-login-card h1,
.ff-login-card h4 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.ff-login-card label {
    display: block;
    margin: 10px 0 4px;
    color: var(--ff-muted);
}

.ff-login-card .form-control {
    background: var(--ff-bg);
    border: 1px solid var(--ff-line);
    color: var(--ff-text);
    height: 44px;
    border-radius: 10px;
    box-shadow: none;
}

.ff-login-card .login-btn {
    margin-top: 16px;
}

.ff-login-card .login-btn .btn {
    width: 100%;
    background: var(--ff-brand) !important;
    border-color: var(--ff-brand) !important;
    color: #fff !important;
}

.comp-validation,
.text-danger {
    color: var(--ff-danger) !important;
}

.ff-lock-msg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 50vh;
    font-size: 1.25rem;
    color: var(--ff-brand);
    padding: 24px;
}

/* ---------- Bottom nav / more sheet ---------- */
.ff-bottom {
    display: none;
}

.ff-more-sheet {
    display: none;
}

.ff-more-sheet.is-open {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--ff-bottom-h) + 12px);
    background: var(--ff-panel);
    border: 1px solid var(--ff-line);
    border-radius: 14px;
    padding: 10px;
    z-index: 45;
    box-shadow: var(--ff-shadow);
}

.ff-more-sheet a,
.ff-more-sheet button {
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--ff-text);
    border-radius: 8px;
    text-align: left;
    font: inherit;
    font-weight: 600;
}

.note-editor.note-frame {
    background: var(--ff-bg);
    border-color: var(--ff-line);
    color: var(--ff-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ff-shell {
        grid-template-columns: var(--ff-rail-w) 1fr;
    }

    .ff-dest span.ff-dest-label {
        display: none;
    }

    .ff-dest {
        justify-content: center;
        padding: 8px 6px;
    }

    .ff-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        margin: 0;
    }
}

@media (max-width: 860px) {
    .ff-shell {
        grid-template-columns: 1fr;
    }

    .ff-rail {
        display: none;
    }

    .ff-command {
        grid-template-columns: auto 1fr auto;
    }

    .ff-who .ff-user {
        display: none;
    }

    .ff-who .ff-logout {
        display: none;
    }

    .ff-canvas {
        padding: 14px 12px calc(var(--ff-bottom-h) + 16px);
    }

    .ff-chips {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ff-bottom {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        height: var(--ff-bottom-h);
        background: var(--ff-panel);
        border-top: 1px solid var(--ff-line);
    }

    .ff-bottom a,
    .ff-bottom button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border: 0;
        background: transparent;
        color: var(--ff-muted);
        font-size: 11px;
        font-weight: 700;
    }

    .ff-bottom a.is-active,
    .ff-bottom button.is-active {
        color: var(--ff-brand);
    }

    .modal.fade .modal-dialog,
    .modal-lg,
    .modal-larger,
    .payouts-modal .modal-dialog {
        width: calc(100vw - 16px) !important;
        max-height: 92vh;
        margin: 8px auto !important;
    }

    .modal-content {
        max-height: 92vh;
        border-radius: 12px;
    }

    .modal-body.ff-record {
        grid-template-columns: 1fr;
    }

    .ff-kpi-row,
    .ff-dash-grid,
    .ff-insight-grid,
    .ff-vital {
        grid-template-columns: 1fr;
    }

    .ff-issues-panel {
        right: 8px;
        left: 8px;
        width: auto;
    }

    .ff-toasts {
        bottom: calc(var(--ff-bottom-h) + 12px);
    }

    .ff-defs > div {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog,
    .ff-tile,
    .ff-pulse-dot,
    .ff-next-card.is-first,
    .ff-kpi-value.is-bump,
    .ff-dash::before,
    .ff-mix-bar i {
        animation: none;
        transition: none;
    }
}
