@import url("/assets/css/affronter-header-buttons-v4-safe.css?v=4");
:root {
  color-scheme: dark;
  --bg: #070912;
  --card: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #8b5cf6;
  --line: #243244;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #172554, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(960px, calc(100% - 32px));
  margin: 80px auto;
}

.container.wide {
  width: min(1200px, calc(100% - 32px));
}

h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
  margin: 0 0 16px;
}

p {
  color: var(--muted);
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #c4b5fd;
}

.button {
  display: inline-block;
  color: white;
  background: var(--brand);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(17,24,39,.88);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 20px 80px rgba(0,0,0,.25);
}

.metric {
  font-size: 3rem;
  font-weight: 800;
  color: #c4b5fd;
  margin: 0;
}

pre {
  white-space: pre-wrap;
  color: #dbeafe;
  background: #020617;
  border-radius: 12px;
  padding: 16px;
  overflow:auto;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #020617;
  color: white;
  padding: 12px 14px;
  font: inherit;
}

code {
  color: #c4b5fd;
}

/* Affronter brand logo header */
.topbar > .brand {
  gap: 10px;
}

.brand-logo {
  display: inline-block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
}

.brand span {
  display: inline-block;
  vertical-align: middle;
}

/* Affronter brand logo header v2 */
.topbar > .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: inline-block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
}

.topbar > .brand span {
  display: inline-block;
  vertical-align: middle;
}

/* Affronter brand logo header final override */
.brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

.brand-logo img,
.brand-logo svg {
    display: block !important;
    max-height: 54px !important;
    width: auto !important;
}

.brand-logo .brand-name,
.brand-logo span {
    display: inline-block !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

/* Affronter brand logo direct image size fix */
.topbar > .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.brand-logo {
    display: block !important;
    width: auto !important;
    height: 56px !important;
    max-height: 56px !important;
    min-width: 56px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
}

.topbar > .brand span,
.brand span {
    display: inline-block !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    vertical-align: middle !important;
}

/* Affronter Premium Brand: [ Logo ] Affronter AI */
.topbar > .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    color: inherit !important;
    line-height: 1 !important;
}

.topbar > .brand:hover {
    opacity: 0.94 !important;
}

.topbar > .brand:focus-visible {
    outline: 2px solid rgba(255,255,255,0.55) !important;
    outline-offset: 5px !important;
    border-radius: 14px !important;
}

.topbar > .brand .brand-logo,
.topbar > .brand img.brand-logo {
    display: block !important;
    height: 56px !important;
    width: auto !important;
    max-height: 56px !important;
    min-width: 56px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
}

.topbar > .brand .brand-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    line-height: 1 !important;
    color: inherit !important;
}

.topbar > .brand .brand-ai {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(125,92,255,0.95), rgba(0,214,255,0.85)) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
    .topbar > .brand {
        gap: 10px !important;
    }

    .topbar > .brand .brand-logo,
    .topbar > .brand img.brand-logo {
        height: 46px !important;
        max-height: 46px !important;
        min-width: 46px !important;
    }

    .topbar > .brand .brand-title {
        font-size: 20px !important;
        gap: 6px !important;
    }

    .topbar > .brand .brand-ai {
        font-size: 11px !important;
        padding: 3px 7px !important;
    }
}

/* Affronter Brand vertical alignment refinement */
.topbar > .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.topbar > .brand .brand-logo,
.topbar > .brand img.brand-logo {
    display: block !important;
    height: 56px !important;
    width: auto !important;
    max-height: 56px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.topbar > .brand .brand-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(0) !important;
}

.topbar > .brand .brand-ai {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
}

/* Affronter Brand micro optical correction */
.topbar > .brand .brand-title {
    transform: translateY(-2px) !important;
}

/* Affronter AI Live Footer */
.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 72px !important;
    padding: 34px 20px 30px !important;
    border-top: 1px solid rgba(255,255,255,0.14) !important;
    background:
        radial-gradient(circle at top left, rgba(125,92,255,0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
    color: rgba(255,255,255,0.84) !important;
}

.site-footer .footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.site-footer p {
    margin: 6px 0 !important;
    color: rgba(255,255,255,0.72) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.site-footer .footer-powered {
    color: rgba(255,255,255,0.52) !important;
    font-size: 13px !important;
}

.site-footer .footer-powered strong {
    color: #ffffff !important;
    font-weight: 800 !important;
}

@media (max-width: 760px) {
    .site-footer {
        margin-top: 48px !important;
        padding: 28px 18px 26px !important;
    }
}


/* Affronter TinyMCE editor height fix */
.tox.tox-tinymce {
    min-height: 600px !important;
    height: 600px !important;
}

.tox-edit-area,
.tox-edit-area iframe {
    min-height: 540px !important;
}

textarea#page_content {
    min-height: 600px !important;
}

/* ===== AFFRONTER AI FOOTER LAYOUT ===== */

.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: #0f172a;
    color: #e2e8f0;
}

.site-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.site-footer .footer-brand {
    max-width: 260px;
}

.site-footer .footer-links h4 {
    margin-bottom: 12px;
    color: #ffffff;
}

.site-footer .footer-links ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 16px !important;

    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer .footer-links li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-links a {
    display: inline-block !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color .2s ease;
}

.site-footer .footer-links a:hover {
    color: #ffffff !important;
}

.site-footer .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 14px;
    color: #94a3b8;
}

/* ===== AFFRONTER AI FOOTER DROPDOWNS ===== */

.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: #0f172a;
    color: #e2e8f0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    max-width: 280px;
}

.footer-dropdown {
    min-width: 180px;
}

.footer-dropdown summary {
    cursor: pointer;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    list-style: none;
}

.footer-dropdown summary::-webkit-details-marker {
    display: none;
}

.footer-dropdown ul {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
}

.footer-dropdown li {
    margin-bottom: 10px;
}

.footer-dropdown a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-dropdown a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 14px;
    color: #94a3b8;
}
/* =========================================
   AFFRONTER AI NAVIGATION
========================================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 28px;

    background: rgba(15,23,42,.88);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,.06);

    position: sticky;
    top: 0;
    z-index: 999;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;
    text-decoration: none;

    font-size: 20px;
    font-weight: 700;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-wrap: wrap;
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 12px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.08);

    color: #e2e8f0;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        background .2s ease,
        transform .2s ease,
        color .2s ease;
}

.nav a:hover {
    background: #2563eb;
    color: #ffffff;

    transform: translateY(-2px);
}

.nav a.active {
    background: #2563eb;
    color: #ffffff;
}

/* =====================================================
   AFFRONTER AI — DYNAMIC PAGE SYSTEM
===================================================== */

.page-hero {
    width: 100%;
    min-height: 460px;

    background:
        linear-gradient(
            rgba(15,23,42,.72),
            rgba(15,23,42,.82)
        ),
        url('/assets/img/affronter-ai-banner.jpg');

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;
}

.page-hero-overlay {
    max-width: 980px;
}

.page-hero-overlay h1 {
    color: #ffffff;

    font-size: 64px;
    line-height: 1.08;

    font-weight: 800;

    margin-bottom: 24px;
}

.page-content {
    max-width: 1100px;

    margin: 0 auto;

    padding: 60px 24px;

    color: #e2e8f0;

    line-height: 1.85;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: #ffffff;

    margin-top: 40px;
    margin-bottom: 18px;
}

.page-content p {
    margin-bottom: 24px;

    font-size: 18px;
}

/* =====================================================
   HEADER NAVIGATION
===================================================== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 28px;

    background: rgba(15,23,42,.92);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,.06);

    position: sticky;
    top: 0;
    z-index: 999;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-wrap: wrap;
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 12px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.08);

    color: #e2e8f0;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        background .2s ease,
        transform .2s ease,
        color .2s ease;
}

.nav a:hover {
    background: #2563eb;

    color: #ffffff;

    transform: translateY(-2px);
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    margin-top: 60px;

    padding: 40px 24px;

    background: #0f172a;

    color: #e2e8f0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;

    gap: 32px;

    justify-content: space-between;
}

.footer-brand {
    max-width: 260px;
}

.footer-dropdown {
    min-width: 180px;
}

.footer-dropdown summary {
    cursor: pointer;

    font-weight: 700;

    color: #ffffff;

    margin-bottom: 12px;
}

.footer-dropdown ul {
    list-style: none;

    padding: 12px 0 0;
    margin: 0;
}

.footer-dropdown li {
    margin-bottom: 10px;
}

.footer-dropdown a {
    color: #cbd5e1;

    text-decoration: none;
}

.footer-dropdown a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid #334155;

    font-size: 14px;

    color: #94a3b8;
}
/*
|--------------------------------------------------------------------------
| Affronter AI Foundation
| Footer Navigation System
|--------------------------------------------------------------------------
*/

.site-footer {
    margin-top: 80px;
    padding: 60px 24px 40px;
    background:
        linear-gradient(
            180deg,
            rgba(10, 15, 25, 0.98),
            rgba(5, 8, 15, 1)
        );
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.footer-column p {
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.16),
            rgba(0, 212, 255, 0.12)
        );

    border: 1px solid rgba(255,255,255,0.10);

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.footer-nav a:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.28),
            rgba(0, 212, 255, 0.22)
        );

    border-color: rgba(255,255,255,0.22);

    box-shadow:
        0 10px 28px rgba(0, 212, 255, 0.14);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;

    border-top: 1px solid rgba(255,255,255,0.08);

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;

    color: rgba(255,255,255,0.62);

    font-size: 14px;
}

@media (max-width: 768px) {

    .site-footer {
        padding: 48px 20px 32px;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-nav a {
        width: 100%;
        justify-content: flex-start;
    }
}
