/* ============================================================
   FireFront X × listmonk
   Custom Admin + Public Styling
   ============================================================ */

/* ---------- Brand tokens ---------- */

:root {
    --ffx-bg: #0b0f14;
    --ffx-bg-soft: #111821;
    --ffx-surface: #161e28;
    --ffx-surface-hover: #1d2733;

    --ffx-border: rgba(255, 255, 255, 0.10);
    --ffx-border-strong: rgba(255, 255, 255, 0.16);

    --ffx-text: #f5f7fa;
    --ffx-text-soft: #aeb8c5;
    --ffx-text-muted: #788595;

    --ffx-fire: #ff5a1f;
    --ffx-fire-light: #ff7a32;
    --ffx-fire-dark: #d9430d;

    --ffx-danger: #ef4444;
    --ffx-success: #22c55e;
    --ffx-warning: #f59e0b;

    --ffx-radius: 10px;
    --ffx-radius-lg: 16px;

    --ffx-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22);

    --ffx-gradient:
        linear-gradient(
            135deg,
            #ff7a32 0%,
            #ff5a1f 45%,
            #dc3516 100%
        );
}


/* ============================================================
   BASE
   ============================================================ */

html,
body {
    background: var(--ffx-bg);
    color: var(--ffx-text);
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* Selection */

::selection {
    background: rgba(255, 90, 31, 0.35);
    color: #fff;
}


/* Scrollbars */

* {
    scrollbar-width: thin;
    scrollbar-color: #394552 var(--ffx-bg);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ffx-bg);
}

::-webkit-scrollbar-thumb {
    background: #394552;
    border-radius: 10px;
    border: 2px solid var(--ffx-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ffx-fire);
}


/* ============================================================
   LINKS
   ============================================================ */

a {
    color: var(--ffx-fire-light);
    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}

a:hover {
    color: #ff9863;
}


/* ============================================================
   HEADINGS
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ffx-text);
    letter-spacing: -0.025em;
}

h1 {
    font-weight: 750;
}


/* ============================================================
   BUTTONS
   ============================================================ */

button,
.button,
.btn,
input[type="submit"],
input[type="button"] {
    border-radius: 8px;
    font-weight: 650;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}


/* Primary buttons */

button.is-primary,
.button.is-primary,
.btn-primary,
input[type="submit"] {
    background: var(--ffx-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;

    box-shadow:
        0 5px 18px rgba(255, 90, 31, 0.22);
}

button.is-primary:hover,
.button.is-primary:hover,
.btn-primary:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 24px rgba(255, 90, 31, 0.30);
}


/* Secondary buttons */

button:not(.is-primary),
.button:not(.is-primary) {
    border-color: var(--ffx-border);
}


/* ============================================================
   INPUTS / FORMS
   ============================================================ */

input,
textarea,
select {
    border-radius: 8px !important;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--ffx-fire) !important;

    box-shadow:
        0 0 0 3px rgba(255, 90, 31, 0.14) !important;

    outline: none !important;
}

label {
    font-weight: 600;
}


/* ============================================================
   CARDS / PANELS
   ============================================================ */

.card,
.box,
.panel {
    border-radius: var(--ffx-radius-lg);
    border-color: var(--ffx-border);
    box-shadow: var(--ffx-shadow);
}


/* ============================================================
   TABLES
   ============================================================ */

table {
    border-radius: var(--ffx-radius);
    overflow: hidden;
}

table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

table tbody tr {
    transition: background 0.12s ease;
}


/* ============================================================
   TAGS / STATUS PILLS
   ============================================================ */

.tag,
.badge {
    border-radius: 999px !important;
    font-weight: 650;
}


/* ============================================================
   FIRE ACCENT
   ============================================================ */

.has-text-primary,
.text-primary {
    color: var(--ffx-fire) !important;
}

.has-background-primary,
.bg-primary {
    background: var(--ffx-gradient) !important;
}


/* ============================================================
   PUBLIC SUBSCRIBER PAGES
   ============================================================ */

body.public {
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255, 90, 31, 0.16),
            transparent 42%
        ),
        var(--ffx-bg);
}


/*
   Public forms / subscription containers
*/

.public .container,
.public .content,
.public .box {
    max-width: 760px;
}


/*
   Give public form cards the FireFront X treatment.
*/

.public .box,
.public form {
    border-radius: var(--ffx-radius-lg);
}


/* ============================================================
   PUBLIC PAGE BRAND STRIPE
   ============================================================ */

body.public::before {
    content: "";
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--ffx-gradient);

    z-index: 9999;
}


/* ============================================================
   LISTMONK ADMIN
   ============================================================ */

/*
   Subtle fire highlight along the top of the application.
*/

body:not(.public)::before {
    content: "";
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--ffx-gradient);

    z-index: 99999;
}


/* Navigation */

nav,
.navbar {
    border-color: var(--ffx-border);
}


/* Active navigation items */

nav a.is-active,
.navbar a.is-active,
.menu a.is-active {
    color: #fff !important;

    background:
        linear-gradient(
            90deg,
            rgba(255, 90, 31, 0.18),
            rgba(255, 90, 31, 0.04)
        ) !important;

    border-left:
        3px solid var(--ffx-fire);
}


/* ============================================================
   ALERTS / NOTICES
   ============================================================ */

.notification,
.alert {
    border-radius: var(--ffx-radius);
}

.notification.is-success,
.alert-success {
    border-left: 4px solid var(--ffx-success);
}

.notification.is-warning,
.alert-warning {
    border-left: 4px solid var(--ffx-warning);
}

.notification.is-danger,
.alert-danger {
    border-left: 4px solid var(--ffx-danger);
}


/* ============================================================
   LOGIN
   ============================================================ */

.login,
.login-form {
    border-radius: var(--ffx-radius-lg);
}


/* ============================================================
   CODE / TECHNICAL CONTENT
   ============================================================ */

code,
pre {
    border-radius: 8px;
}

code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}


/* ============================================================
   FIRE DIVIDER
   ============================================================ */

hr {
    border: 0;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 90, 31, 0.45),
            transparent
        );
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    h1 {
        font-size: 1.8rem;
    }

    button,
    .button,
    input[type="submit"] {
        min-height: 44px;
    }

    input,
    textarea,
    select {
        min-height: 44px;
    }

    .box,
    .card {
        border-radius: 12px;
    }
}