﻿@media (max-width: 600px) {
    .nav-cta.btn-primary {
        font-size: 0.95rem !important;
        padding: 0.45rem 0.9rem !important;
        border-radius: 10px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        line-height: 1.1 !important;
        box-sizing: border-box !important;
    }
    .hero-actions .btn {
        font-size: 0.95rem !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 1rem !important;
        line-height: 1.1 !important;
        box-sizing: border-box !important;
    }
    .nav-toggle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
    }
    .nav-toggle .hamburger {
        width: 18px !important;
        height: 2px !important;
    }
    .nav-menu {
        top: 48px !important;
        right: 0.2rem !important;
        min-width: 140px !important;
        max-width: 90vw !important;
        padding: 0.5rem 0.3rem !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.18);
        overflow-x: hidden !important;
    }
    .nav-menu .nav-link,
    .nav-menu .nav-button {
        font-size: 0.95rem !important;
        padding: 0.45rem 0.7rem !important;
        border-radius: 7px !important;
        margin-bottom: 0.2rem !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    body, html {
        overflow-x: hidden !important;
    }
}
/* Dashboard empty panel */
.dashboard-empty-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: rgba(255, 89, 0, 0.08);
    color: #FF5900;
    border: 1.5px dashed #FF5900;
    border-radius: 12px;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    margin: 2.2rem auto 1.5rem auto;
    max-width: 420px;
    box-shadow: 0 2px 12px rgba(255, 89, 0, 0.04);
    letter-spacing: 0.01em;
    text-align: center;
}
.dashboard-empty-panel .empty-icon {
    font-size: 1.25em;
    font-weight: bold;
    margin-right: 0.5em;
    color: #FF5900;
    filter: drop-shadow(0 1px 0 #fff2);
}
@media (max-width: 600px) {
    .dashboard-empty-panel {
        font-size: 0.98rem;
        padding: 1rem 0.7rem;
        max-width: 98vw;
    }
}
/* Keep table cells auto-height; we'll only force header height to 25px and add padding for readability */
.admin-table th, .admin-table td {
    height: auto !important;
    line-height: normal !important;
    padding: 0.75rem 1.25rem !important; /* Top/Bottom: 0.75rem, Left/Right: 1.25rem */
    padding-left: 1.25rem !important; /* Ensure extra left spacing */
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Sora:wght@400;600;700&display=swap');

:root {
    --bg-color: #FAFAF8;
    --card-bg: #FFFFFF;
    --text-main: #0C0C14;
    --text-muted: #6B7280;
    --primary: #FF5900;
    --primary-glow: rgba(255, 89, 0, 0.5);
    --secondary: #0C0F1E;
    --accent: #FF5900;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;

    --font-main: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: 'Sora', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container-width: 1200px;
    --spacing-section: 6rem;
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #0C0F1E;
    --card-bg: #141B29;
    --text-main: #E8EDF8;
    --text-muted: #9AA5BA;
    --primary-glow: rgba(255, 89, 0, 0.35);
    --secondary: #E8EDF8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0;
    min-height: 74px;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 74px;
    padding: 0 clamp(0.9rem, 3vw, 3rem);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.logo-image {
    display: block;
    width: 210px;
    height: auto;
}

.logo-image-footer {
    width: 180px;
}

.header .logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.02;
    gap: 0.18rem;
}

.header .logo .logo-commit {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: currentColor;
    opacity: 0.48;
    margin-top: 0.18rem;
}

/* Nav dropdown wrapper for header */
.nav-wrapper { position: relative; }
.nav-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 0.6rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    z-index: 250;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.nav-dropdown .nav-link { padding: 0.5rem 0.6rem; }
.nav-dropdown .nav-logout { width: 100%; text-align: left; }


.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    min-height: 74px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #fff;
}

/* Button reset so it can use nav-link styles */
.nav-button {
    background: transparent;
    border: none;
    padding: 0.4rem 0; /* keep spacing compact */
    cursor: pointer;
    font-family: inherit;
}

.theme-toggle-btn {
    min-width: 122px;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid currentColor;
    padding: 0.4rem 0.6rem;
}

.nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 89, 0, 0.08);
    border-radius: 6px;
}

/* Navigation toggle / mobile menu */
.nav-toggle {
    display: inline-flex; /* show menu toggle so nav lives inside it */
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle .hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff; /* ensure white bars */
    color: #fff;
    position: relative;
    transition: background 240ms ease, transform 240ms ease;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff; /* ensure white bars */
    transition: top 240ms ease, left 240ms ease, width 240ms ease, height 240ms ease, transform 240ms ease;
}
.nav-toggle .hamburger::before { top: -6px; }
.nav-toggle .hamburger::after { top: 6px; }

/* Toggle open state -> convert to animated vertical bars */
.nav-toggle.open .hamburger {
    background: currentColor;
    width: 2px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 10px 0 0 currentColor;
    transform: scale(1.03);
}
.nav-toggle.open .hamburger::before {
    opacity: 0;
    transform: none;
}
.nav-toggle.open .hamburger::after {
    opacity: 0;
    transform: none;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    min-height: 46px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    box-sizing: border-box;
    border: 1.5px solid transparent;
}

/* Mobile behaviour */
@media (max-width: 768px) {
    .header {
        min-height: 62px;
    }

    .header-content {
        height: 62px;
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.08rem;
    }

    .logo-image {
        width: 142px;
    }

    .logo-image-footer {
        width: 132px;
    }

    .header .logo .logo-commit {
        font-size: 0.5rem;
        margin-top: 0.12rem;
    }

    .nav {
        gap: 0.75rem;
        min-height: 62px;
    }

    /* Always show CTA (Audit Gratuit) */
    .nav-cta {
        display: inline-flex;
        margin-right: 0.5rem;
        min-height: 40px;
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    /* Hide the nav menu by default, show toggle */
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: absolute;
        top: 64px; /* below header */
        right: 1rem;
        background: var(--card-bg);
        z-index: 110;
        border: 1px solid rgba(255,255,255,0.05);
        padding: 1rem;
        border-radius: 12px;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 200px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    }
    .nav-menu.open { display: flex; }

    /* Make nav-link items appear stacked in the menu */
    .nav-menu .nav-link,
    .nav-menu .nav-button { display: block; }
}

/* Mobile-specific adjustments for admin toolbar and table */
@media (max-width: 768px) {
    .section-title { font-size: 1.6rem; margin-bottom: 1rem; text-align: left; }

    /* Make the toolbar stack and be non-sticky on small screens */
    .toolbar {
        position: static !important;
        top: auto !important;
        box-shadow: none !important;
        padding: 0.75rem 0.5rem;
        margin-bottom: 1rem;
        border-radius: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .toolbar-left, .toolbar-right { width: 100%; justify-content: space-between; }
    .toolbar .table-input { width: 100%; max-width: none; }
    #openAddUser { width: 100%; }

    /* Slightly tighter table cells so rows fit better on small widths */
    .admin-table th, .admin-table td { padding: 0 !important; }
    .table-wrap { margin-top: 0.5rem; }

    /* Ensure the inline manage panel doesn't overflow the viewport */
    .inline-panel { padding: 0.85rem; }
}

/* Convert table to stacked cards to avoid horizontal scrolling on narrow screens */
@media (max-width: 900px) {
  .table-wrap { overflow: visible; background: transparent; box-shadow: none; border: none; }
  .admin-table { display: block; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: block; }
  .admin-table tr {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15,15,22,0.8), rgba(20,20,30,0.6));
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .admin-table tr:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
    .admin-table td {
        /* allow variable height so long emails can wrap */
        padding: 0 !important;
        border: none;
        height: auto !important;
        line-height: normal !important;
        display: block; /* ensure each cell behaves as a block in stacked layout */
    }
    .admin-table td::before { content: attr(data-label); color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 0.35rem; margin-right: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Actions: place action buttons to the right (no divider) */
    .admin-table td.col-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0; /* remove spacing that looked like a divider */
        border-top: none; /* remove the subtle bar */
    }
    .admin-table td.col-actions::before {
        /* hide the Actions label in mobile stacked layout */
        display: none;
    }
    .admin-table td.col-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.7rem;
        border-radius: 8px;
        margin-right: 0;
        min-width: 0;
        width: auto;
    }
    .admin-table td.col-actions .btn:last-child { margin-right: 0; }

    /* Make inline manage panel full width and fit nicely */
    .inline-manage-row td { padding: 0; }
    .inline-panel { margin: 0.5rem 0; }

    /* On very small screens stack action buttons vertically for touch friendliness */
    @media (max-width: 420px) {
        .admin-table td { flex-direction: column; align-items: flex-start; }
        .admin-table td::before { flex: none; max-width: none; margin-bottom: 0.35rem; }
        .admin-table td.col-actions .btn { width: 100%; margin: 0 0 0.5rem 0; }
        .admin-table td.col-actions .btn:last-child { margin-bottom: 0; }
    }

    /* Reorder columns within stacked cards for readability */
    .admin-table td.name-cell { order: 1; width: 48% !important; display: inline-block !important; }
    .admin-table td.formule-cell { order: 2; width: 48% !important; display: inline-block !important; }
    .admin-table td.email-cell { order: 3; width: 100% !important; display: block !important; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
    .admin-table td.created-cell { order: 4; width: 48% !important; display: inline-block !important; }
    .admin-table td.col-actions { order: 5; }
}

/* Icon handling inside buttons: hide icons on desktop; show on small screens via media query */
.btn-icon { display: none; font-size: 1.25rem; line-height: 1; margin-left: 0.5rem; }
.btn-text { display: inline; }
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* style the icons to be clear and tappable */
.btn-icon-manage {
    color: inherit;
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 1.25rem;
}
.btn-icon-delete {
    color: var(--danger);
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 1.25rem;
}
.btn-icon-manage:hover, .btn-icon-delete:hover { transform: scale(1.05); }

/* Make pencil and cross icons the same size */
.admin-table .btn-icon-manage,
.admin-table .btn-icon-delete {
    font-size: 1.25rem;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    text-align: center;
}

/* Desktop action button hover improvements */
.admin-table .col-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* make the icon-only buttons visually balanced */
.admin-table td.col-actions .btn { padding: 0.45rem; }

/* Center inline SVGs inside buttons */
.btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0; /* prevent baseline shifts */
}
.btn .btn-icon svg { display: block; }

/* Ensure icons are perfectly centered inside u-toggle circles using --u-size */
.u-toggle { position: relative; }
.u-toggle .btn-icon {
    position: absolute;
    left: 42%;
    top: 72%;
    /* allow per-icon optical offsets via CSS vars (only positional adjustments) */
    transform: translate(calc(-50% + var(--icon-offset-x, 0px)), calc(-50% + var(--icon-offset-y, 0px)));
    width: calc(var(--u-size, 44px) * 0.48);
    height: calc(var(--u-size, 44px) * 0.48);
    min-width: calc(var(--u-size, 44px) * 0.48);
    min-height: calc(var(--u-size, 44px) * 0.48);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.u-toggle .btn-icon svg {
    width: 70%;
    height: 70%;
    display: block;
}

/* Optical centering tweaks (only position adjustments) */
/* Nudge manage (wrench) icon slightly down for visual center
     without modifying the SVG itself. Adjust the translateY value if needed. */
/* per-icon wrapper offsets (optical centering only) */
.btn-icon-manage { --icon-offset-x: -2px; --icon-offset-y: 2.5px; }
.btn-icon-delete { --icon-offset-x: 0px; --icon-offset-y: 0px; }

/* Fallback alignment for non-u-toggle action buttons */
.admin-table td.col-actions .btn .btn-icon {
    width: 1.4rem !important;
    height: 1.4rem !important;
}
.admin-table td.col-actions .btn .btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Admin table styles */
.table-wrap {
    overflow-x: hidden; /* prevent horizontal scroll */
    overflow-y: auto; /* allow vertical scrolling when needed */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(15,15,22,0.5);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.table-wrap::-webkit-scrollbar { display: none; } /* Chrome, Safari, Opera */
.admin-table { width: 100%; border-collapse: collapse; table-layout: fixed; overflow-x: hidden; }
.admin-table::-webkit-scrollbar { display: none; }
.admin-table th, .admin-table td { padding: 0 !important; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.04); white-space: normal; word-break: break-word; }
/* Thinner rows for a denser list view */

/* Actions: keep buttons side-by-side; push the delete/cross to the far right */
.admin-table .col-actions {
    width: 100px !important; /* Adjust action column width */
    text-align: center; /* Center align actions for better layout */
    display: table-cell; /* keep table layout consistent so row height matches */
    vertical-align: middle;
}
.admin-table .col-actions .btn {
    min-width: 28px !important;
    width: auto !important;
    padding: 0.18rem 0.35rem !important;
    font-size: 0.95rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
/* Make all action buttons sit to the right with small spacing */
.admin-table td.col-actions .btn { margin-left: 0.2rem; }
.admin-table td.col-actions .btn:first-child { margin-left: 0.15rem; }
/* Ensure delete button is pushed to the right even if other rules try to override */
/* remove margin-left auto so buttons remain grouped on the right */
.admin-table .col-actions > .u-toggle--delete,
.admin-table .col-actions > .btn.u-toggle--delete {
    margin-left: 0 !important;
}
/* Ensure actions distribute properly on wider screens */
.admin-table thead th {
    background: linear-gradient(135deg, rgba(255, 89, 0, 0.08), rgba(12, 15, 30, 0.06));
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255, 89, 0, 0.25);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    /* Header-specific size */
    height: 25px !important;
    line-height: 25px !important;
    padding: 0 1rem !important; /* keep header text away from edges */
    vertical-align: middle;
}

/* Prevent any child elements in headers from expanding the header height */
.admin-table thead th *,
.admin-table thead th button,
.admin-table thead th .btn,
.admin-table thead th .u-toggle {
    max-height: 25px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
.admin-table thead tr {
    height: 35px !important;
}
.admin-table tbody tr { transition: all 0.25s ease; }
.admin-table tbody tr:hover { background: rgba(255, 89, 0, 0.06); transform: translateX(2px); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .col-actions { width: 100px; text-align: center; }
/* Minimal action button sizing and remove the u-toggle background circle in table rows */
.admin-table td.col-actions .u-toggle {
    --u-size: 28px; /* reduce base size for action buttons */
    height: var(--u-size) !important;
    padding: 0.12rem 0.35rem !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.admin-table td.col-actions .u-toggle:before { display: none !important; }
.admin-table td.col-actions .btn .btn-icon { font-size: 1.05rem !important; }
.admin-table td.col-actions .btn { background: transparent !important; border: none !important; box-shadow: none !important; }
.table-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.table-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,89,0,0.08);
  box-shadow: 0 0 0 3px rgba(255,89,0,0.15);
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; transition: all 0.2s ease; }
.btn-sm:hover { transform: translateY(-1px); }
.admin-table .col-actions .btn {
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    border-radius: 8px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    /* show icons and hide text on smaller screens (cover up to 900px)
       widened slightly so small-desktop widths (e.g. 882px) also show emojis */
    .btn-icon { display: inline-block; }
    .btn-text { display: none; }
    /* remove extra contour/padding when only icon is visible */
    .admin-table td.col-actions .btn { padding: 0.4rem 0.5rem; }
    .admin-table td.col-actions .btn .btn-icon { margin-left: 0; }
    /* Make icon-only buttons visually minimal: remove grey contour/background/border */
    .admin-table td.col-actions .btn,
    .admin-table td.col-actions .btn.btn-secondary,
    .admin-table td.col-actions .btn.btn-outline {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.35rem 0.45rem !important;
        min-width: 0 !important;
    }
    /* keep the icon itself clear and slightly larger for tap targets */
    .admin-table td.col-actions .btn .btn-icon { font-size: 1.35rem; line-height: 1; }
}

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 89, 0, 0.06), rgba(12, 15, 30, 0.04));
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 90px;
  z-index: 120;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Strong mobile overrides: remove divider and enforce right-aligned action buttons */
@media (max-width: 900px) {
    /* remove any residual borders on table cells that create the thin line */
    .admin-table th,
    .admin-table td { border-bottom: none !important; }

    /* ensure actions cell has no top/bottom border and sits to the right */
    .admin-table td.col-actions {
        border-top: none !important;
        border-bottom: none !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important; /* ensure the actions cell spans the full row so right alignment works */
    }

    /* keep buttons compact and auto-sized, positioned to the right */
    .admin-table td.col-actions .btn {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
    }
    /* only the first button should consume the remaining space and push the rest to the right */
    .admin-table td.col-actions .btn:first-child { margin-left: auto !important; }
}
.toolbar .table-input { max-width: 380px; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); }
.toolbar .table-input:focus { border-color: var(--primary); background: rgba(255, 89, 0, 0.1); box-shadow: 0 0 0 3px rgba(255,89,0,0.12); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 1rem; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    padding: 2rem; /* give modal more breathing room on large screens */
}
.modal-content {
  background: linear-gradient(145deg, var(--card-bg), rgba(15,15,22,0.95));
  border-radius: 20px;
    padding: 3rem;
    width: 98vw;
    max-width: 1400px; /* much larger landscape modal */
    box-sizing: border-box;
    max-height: 90vh; /* prevent overflow off-screen */
    overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: modalSlideIn 0.25s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Specific override: make the Add User modal landscape and much larger
   Target ID so other modals (signin, delete) keep their compact size. */
#addUserModal .modal-content {
    width: 96vw;
    max-width: 1400px;
    padding: 3rem 3.5rem;
    box-sizing: border-box;
    border-radius: 20px;
    max-height: 92vh;
    overflow: auto;
}

/* Slightly increase inner grid spacing for the larger modal */
#addUserModal .modal-grid {
    gap: 1.25rem 1.75rem;
}

/* Ensure mobile still stacks nicely */
@media (max-width: 720px) {
    #addUserModal .modal-content {
        width: 100vw;
        max-width: 100vw;
        padding: 1.25rem;
        border-radius: 12px;
        max-height: 92vh;
    }
    #addUserModal .modal-grid { grid-template-columns: 1fr; }
}
.modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, #fff, #a0a0a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-body { margin-bottom: 1.5rem; }
.modal-body--landscape { padding: 0.5rem 0; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 1rem 1.25rem; align-items: start; }
.modal-col { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-col--wide { grid-column: 1 / -1; display: flex; flex-direction: column; }
.modal-body label { display: block; margin-bottom: 0; color: var(--text-muted); font-size: 0.95rem; }
.modal-body input, .modal-body select { width: 100%; margin-top: 0.35rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }

/* Button refinements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
        border-color: #fff;
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-2px);
}
.btn-link { background: transparent; border: none; color: var(--primary); cursor: pointer; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Dashboard hero */
.dashboard-hero {
  padding-top: 120px;
  padding-bottom: 2rem;
  text-align: center;
}
.dashboard-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.dashboard-welcome {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(255,89,0,0.15), rgba(12,15,30,0.1));
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Row hover */
.admin-table tbody tr:hover { background: rgba(255,255,255,0.015); }

/* Responsive tweaks */
@media (max-width: 900px) {
    .col-actions { width: 160px; }
}

/* Desktop: show nav menu inline */
@media (min-width: 769px) {
    .nav-menu { display: flex !important; }
    .nav-toggle { display: none; }
}

/* Buttons */


.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    border-radius: 10px !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Global button text-size consistency across all pages */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.page-public .btn,
.page-app .btn {
    font-size: 0.95rem;
}

/* Correction stricte : aucun bouton rond (header, hero, etc.) */
.btn-primary.nav-cta,
.hero-actions .btn-primary {
    border-radius: 10px !important;
}

/* Correction : le bouton Audit Gratuit n'est PAS rond, il a un border-radius de 12px */
.nav-cta.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    border-radius: 10px !important;
}

/* Uiverse-inspired rounded toggle/button adapted to theme colors */
.u-toggle {
    --u-size: 44px; /* default action button size */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: var(--u-size);
    padding: 0.25rem 0.8rem;
    border-radius: 10px;
    overflow: visible;
    cursor: pointer;
    transition: transform 220ms cubic-bezier(0.23,1,0.32,1), box-shadow 220ms;
}
.u-toggle:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--u-size) * 0.72);
    height: calc(var(--u-size) * 0.72);
    display: none;
    background: #fff;
    opacity: 0.06;
    pointer-events: none;
}
.u-toggle .btn-text { font-weight: 700; }
.u-toggle .btn-icon { margin-left: 0.6rem; }
.u-toggle { /* make u-toggle icon-first style on desktop too */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.u-toggle:not(.u-toggle--add) .btn-text { display: none !important; }
.u-toggle .btn-icon { display: inline-block !important; }
.u-toggle:active { transform: translateY(1px) scale(0.995); }

/* Variants (use theme colors) */
.u-toggle--add { /* primary CTA: keep original visual with text on desktop */
    --u-size: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 30px rgba(255,89,0,0.18);
}
.u-toggle--manage { color: var(--text-main); }
.u-toggle--delete { color: var(--danger); }

/* When icon-only (mobile), keep circular and minimal */
@media (max-width: 900px) {
    .u-toggle { padding: 0.15rem 0.4rem; }
    .u-toggle .btn-text { display: none; }
    .u-toggle { --u-size: 46px; }
    .u-toggle:before { opacity: 0.04; }
    .u-toggle .btn-icon { font-size: 1.35rem; margin-left: 0; }
}

/* Make modal full-width-ish on small screens but keep readable padding */
@media (max-width: 720px) {
    .modal { padding: 0.75rem; }
    .modal-content { width: 100vw; max-width: 100vw; border-radius: 12px; padding: 1.25rem; max-height: 92vh; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-col--wide { grid-column: auto; }
}

/* Outline button for sign-in */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1100px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-line-1,
.hero-line-2 {
    display: block;
}

.text-gradient {
    background: linear-gradient(135deg, #FF7A33, #0C0F1E);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 89, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Services */
.section {
    padding: var(--spacing-section) 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    /* Force a 3-column layout on larger screens, fall back to single column on small screens */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: #13131c;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Center the about section content horizontally and its text */
.about-content {
    justify-items: center;
}

.about-text {
    text-align: center;
    max-width: 560px; /* keep readable line length */
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text strong {
    color: #fff;
}

.gradient-sphere {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    filter: blur(80px);
    opacity: 0.6;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

/* Center the about section in the viewport and overlay sphere behind text */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* center vertically within the browser */
    position: relative;
}

.about-content {
    position: relative; /* allow absolute child positioning */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.about-content .container {
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    padding: 2rem 1.5rem;
}

.about-visual {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.about-text {
    position: relative;
    z-index: 2; /* ensure text sits above the sphere */
    grid-column: 1 / -1;
    /* don't use width:100% as it prevents centering via margin auto; use max-width and auto margin */
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    text-align: center; /* ensure inner text is centered */
}

/* Extra safeguard: ensure the about section title is centered on all sizes */
.about-text .section-title {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Contact */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-box h2 {
    margin-bottom: 1rem;
}

.contact-box>p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-meta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.footer-theme-toggle {
    appearance: none;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    opacity: 0.88;
    transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.footer-theme-toggle:hover {
    color: var(--text-main);
    border-color: var(--primary);
    opacity: 1;
}

/* Modal styles */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 200ms ease-out;
}
.modal.show {
    display: flex;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(15,15,22,0.98), rgba(8,8,12,0.99));
    border: 1px solid rgba(255,89,0,0.2);
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(255, 89, 0, 0.15), 0 8px 32px rgba(0,0,0,0.4);
    animation: slideUp 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.modal-body label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.modal-body input, .modal-body select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: inherit;
}
.modal-body input:focus, .modal-body select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 89, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.1);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.modal-close {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
}
.signin-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.signin-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.auth-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2600;
    background: rgba(8, 10, 18, 0.72);
    backdrop-filter: blur(4px);
}

.auth-loading-overlay.show {
    display: flex;
}

.auth-loading-box {
    min-width: 280px;
    max-width: min(92vw, 420px);
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 89, 0, 0.2);
    box-shadow: 0 20px 45px rgba(12, 15, 30, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.auth-loading-spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 4px solid rgba(255, 89, 0, 0.2);
    border-top-color: var(--primary);
    animation: authSpin 0.8s linear infinite;
}

.auth-loading-message {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0C0F1E;
    text-align: center;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* Callback modal: keep the phone field readable on dark modal background */
#callbackModal .form-group input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 89, 0, 0.35);
    color: #0C0F1E;
}

#callbackModal .form-group input::placeholder {
    color: #6B7280;
}

#callbackModal .form-group input:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.2);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Side panel (rolling manage menu) */
.side-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 420px;
    max-width: 94%;
    background: linear-gradient(180deg, rgba(15, 15, 22, 0.98), rgba(8, 8, 10, 0.98));
    border-left: 1px solid rgba(255,255,255,0.04);
    transform: translateX(110%);
    transition: transform 300ms cubic-bezier(.2,.9,.2,1);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}
.side-panel[aria-hidden="false"] {
    transform: translateX(0);
}
.side-panel-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.side-panel-body { display:flex; flex-direction:column; gap:0.75rem; overflow:auto; padding-right:0.5rem; }
.side-panel-actions { display:flex; gap:0.75rem; justify-content:flex-end; margin-top:0.75rem; }
.side-panel .table-input { width:100%; }

/* make overlay visible when panel open */
.modal-overlay.show { display:block; }

/* Inline rolling manage panel that appears under a table row */
.inline-manage-row td { padding: 0; border: none; background: transparent; }
.inline-panel {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15,15,22,0.96), rgba(8,8,12,0.98));
    border: 1px solid rgba(255, 89, 0, 0.2);
    border-radius: 16px;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 60px rgba(255, 89, 0, 0.1), 0 8px 32px rgba(0,0,0,0.4);
    transform-origin: top;
    animation: inlineSlide 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.inline-panel > div:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inline-panel label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.inline-panel .table-input { width: 100%; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.3); color: var(--text-main); font-size: 0.9rem; transition: all 0.2s ease; }
.inline-panel .table-input:focus { outline: none; border-color: var(--primary); background: rgba(255, 89, 0, 0.08); box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.1); }
.inline-panel-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.04); }
.inline-panel-actions .btn { transition: all 0.2s ease; }
.inline-panel-actions .btn:hover { transform: translateY(-1px); }

@keyframes inlineSlide {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.95); }
    to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.modal-close {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    cursor: pointer;
}
.signin-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.signin-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: flex-start; /* ensure title appears earlier than paragraph on mobile */
        padding-top: 2rem; /* small top padding so title isn't flush to viewport */
    }

    /* Keep overlay centered behind text on mobile */
    .about-visual {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: none;
        width: 100%;
        height: auto;
    }
    
    .about-text {
        position: relative;
        z-index: 2;
        grid-column: 1 / -1;
    }

    .header-content {
        /* Keep the header inline on mobile: logo left, CTA + menu on the right */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .nav {
        gap: 0.75rem;
        align-items: center;
        margin-left: auto; /* push nav to the right of header */
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Services: stack into single column on smaller screens */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-meta {
        margin-left: 0;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}

/* Intersection Observer visibility helper (fade-in) */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ----------------------------------------
    Base Typographic & Helper Utilities
    ---------------------------------------- */

/* ----------------------------------------
    Navigation
    ---------------------------------------- */

/* ----------------------------------------
    Hero
    ---------------------------------------- */

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.dashboard-main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-nav .nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-nav .nav-link:hover {
    color: var(--primary);
}

/* Dashboard Hero */
.dashboard-hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.dashboard-welcome {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Dashboard Sections */
.dashboard-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
}

/* Gains Section */
.gains-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 89, 0, 0.03) 100%);
}

.gains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gain-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 89, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gain-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.gain-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gain-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.gain-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.gain-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.gain-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Subscription Section */
.subscription-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.subscription-info {
    flex: 1;
    min-width: 300px;
}

.subscription-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-row:last-child {
    border-bottom: none;
}

.subscription-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.subscription-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.subscription-badge {
    background: rgba(255, 89, 0, 0.2);
    color: #FF5900;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

/* Automations Section */
.automations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.automation-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.automation-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.automation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.automation-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
}

.automation-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: rgba(255, 89, 0, 0.2);
    color: #FF5900;
}

.status-maintenance {
    background: rgba(255, 89, 0, 0.2);
    color: #FF5900;
}

.status-optimization {
    background: rgba(255, 89, 0, 0.2);
    color: var(--primary);
}

.automation-objective {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.automation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.automation-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* History Section */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.history-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.history-item:hover {
    border-color: var(--primary);
}

.history-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.history-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.history-result {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.history-actions {
    text-align: center;
}

/* Support Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.support-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .gains-grid {
        grid-template-columns: 1fr;
    }

    .subscription-card {
        flex-direction: column;
    }

    .automations-list {
        grid-template-columns: 1fr;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* Align text in table cells to match column headers */
.admin-table th, .admin-table td {
    text-align: left !important; /* Force horizontal alignment */
    vertical-align: middle !important; /* Force vertical alignment */
}

/* Enforce left padding for table cells */
.admin-table td {
    padding-left: 1rem !important; /* Ensure spacing from left edge */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .admin-table th, .admin-table td {
        padding: 0.5rem 1rem !important; /* Reduce padding for smaller screens */
        font-size: 0.85rem; /* Adjust font size for readability */
    }

    .admin-table {
        width: 100%; /* Ensure table fits within screen */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }

    .admin-table .col-actions {
        width: auto !important; /* Adjust action column width */
        text-align: center; /* Center align actions for better layout */
    }
}

/* Responsive layout for two data points per line */
@media (max-width: 768px) {
    .admin-table {
        display: flex;
        flex-direction: column;
    }

    .admin-table tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .admin-table td {
        width: 48%; /* Two columns per row */
        padding: 0.5rem 1rem !important;
        box-sizing: border-box;
    }
    /* Reorder columns for mobile: Name + Formule on first line, Email full width on second, Created + Actions on third */
    .admin-table td.name-cell { order: 1; width: 48% !important; }
    .admin-table td.formule-cell { order: 2; width: 48% !important; }
    .admin-table td.email-cell { order: 3; width: 100% !important; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
    .admin-table td.created-cell { order: 4; width: 48% !important; }
    .admin-table td.col-actions { order: 5; width: 48% !important; }

    /* Ensure email and other text wraps properly */
    .admin-table td.email-cell, .admin-table td.name-cell, .admin-table td.formule-cell {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }

    .admin-table th {
        display: none; /* Hide headers on mobile */
    }
}

/* Hide horizontal scrollbar in user list */
.table-wrap {
    overflow-x: hidden !important;
}
.admin-table {
    width: 100%;
    table-layout: fixed;
    overflow-x: hidden;
}
.admin-table::-webkit-scrollbar {
    display: none;
}

/* User name in admin table: white, not hoverable/clickable */
.admin-table .name-cell {
    color: #fff !important;
    transition: none !important;
}
.admin-table .name-cell:hover {
    color: #fff !important;
    background: none !important;
    cursor: default !important;
}

/* Signed-in nav button: keep it clickable but let nav-link styles drive color/hover */
.nav-link.nav-button.signed-in {
    cursor: pointer !important;
    pointer-events: auto;
}

    /* ================================================================
       PUBLIC SITE REDESIGN — .page-public scope
       Palette: off-white + deep navy (#0C0F1E) + electric orange (#FF5900)
       Font: Plus Jakarta Sans
       ================================================================ */

    .page-public {
        --pub-bg: #FAFAF8;
        --pub-bg-alt: #F2F1EE;
        --pub-dark: #0C0F1E;
        --pub-accent: #FF5900;
        --pub-accent-light: rgba(255, 89, 0, 0.08);
        --pub-text: #0C0C14;
        --pub-muted: #6B7280;
        --pub-border: #E4E4E0;
        --pub-font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

        background: var(--pub-bg);
        color: var(--pub-text);
        font-family: var(--pub-font);
    }

    :root[data-theme="dark"] .page-public {
        --pub-bg: #0C0F1E;
        --pub-bg-alt: #141B29;
        --pub-dark: #E8EDF8;
        --pub-accent: #FF5900;
        --pub-accent-light: rgba(255, 89, 0, 0.2);
        --pub-text: #E8EDF8;
        --pub-muted: #9AA5BA;
        --pub-border: #2A3346;

        background: var(--pub-bg);
        color: var(--pub-text);
    }

    :root[data-theme="dark"] .page-public .hero::before {
        background-image: radial-gradient(circle, #2A3346 1px, transparent 1px);
        opacity: 0.35;
    }

    :root[data-theme="dark"] .page-public .hero-note,
    :root[data-theme="dark"] .page-public .card,
    :root[data-theme="dark"] .page-public .contact-box {
        background: #141B29;
        border-color: #2A3346;
    }

    :root[data-theme="dark"] .page-public .hero-note h3,
    :root[data-theme="dark"] .page-public .card h3,
    :root[data-theme="dark"] .page-public .contact-box h2 {
        color: #E8EDF8;
        -webkit-text-fill-color: #E8EDF8;
    }

    :root[data-theme="dark"] .page-public .hero-note p,
    :root[data-theme="dark"] .page-public .card p,
    :root[data-theme="dark"] .page-public .contact-box > p {
        color: #9AA5BA;
    }

    /* Dark theme readability fix for "Notre Vision" section */
    :root[data-theme="dark"] .page-public .about .section-title {
        color: #D1D5E0;
        -webkit-text-fill-color: #D1D5E0;
    }

    :root[data-theme="dark"] .page-public .about-text p {
        color: #B4BAC7;
    }

    :root[data-theme="dark"] .page-public .form-group input,
    :root[data-theme="dark"] .page-public .form-group textarea,
    :root[data-theme="dark"] .page-public .form-group select,
    :root[data-theme="dark"] .page-public #role {
        background-color: #0F131C !important;
        color: #E8EDF8;
        border-color: #2A3346 !important;
    }

    :root[data-theme="dark"] .page-public .form-group input::placeholder,
    :root[data-theme="dark"] .page-public .form-group textarea::placeholder {
        color: #7D879A;
    }

    :root[data-theme="dark"] .page-public .footer {
        background: #090C18;
    }

    /* ---- Reset dark globals for public page ---- */
    .page-public .noise-overlay { display: none; }

    /* ---- HEADER ---- */
    .page-public .header {
        background: rgba(250, 250, 248, 0.93);
        border-bottom: 1px solid var(--pub-border);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    :root[data-theme="dark"] .page-public .header {
        background: rgba(12, 15, 30, 0.9);
    }

    .page-public .footer {
        background: transparent;
        border-top: 1px solid var(--pub-border);
        margin-top: 4rem;
        padding: 4rem 0 2rem;
    }

    .page-public .footer .logo { color: var(--pub-text); font-size: 0.95rem; }
    .page-public .footer-brand p,
    .page-public .footer-links a { color: var(--pub-muted); }
    .page-public .footer-links a:hover { color: var(--pub-text); }
    .page-public .copyright {
        color: var(--pub-muted);
        font-size: 0.8rem;
        padding-top: 0;
        border-top: none;
        transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    }

    .page-public .btn-primary {
        background: var(--pub-accent);
        color: #fff;
        box-shadow: none;
        border: none;
    }
    .page-public .btn-primary:hover {
        background: #E04E00;
        box-shadow: 0 4px 18px rgba(255, 89, 0, 0.35);
        transform: none;
    }

    .page-public .btn-secondary {
        background: transparent;
        border: 1.5px solid var(--pub-text);
        color: var(--pub-text);
    }
    .page-public .btn-secondary:hover {
        background: var(--pub-text);
        color: #fff;
        border-color: var(--pub-text);
    }

    /* Hamburger bars dark on light background */
    .page-public .nav-toggle .hamburger,
    .page-public .nav-toggle .hamburger::before,
    .page-public .nav-toggle .hamburger::after { background: var(--pub-text); }
    .page-public .nav-toggle .hamburger { color: var(--pub-text); }

    /* Mobile dropdown menu light */
    @media (max-width: 768px) {
        .page-public .nav-menu {
            background: #fff;
            border-color: var(--pub-border);
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }
        .page-public .nav-link { color: var(--pub-text); }

        :root[data-theme="dark"] .page-public .nav-menu {
            background: #141B29;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        }
    }

    /* ---- HERO ---- */
    .page-public .hero {
        min-height: 100vh;
        padding-top: 80px;
        background: var(--pub-bg);
        display: flex;
        align-items: center;
        overflow: hidden;
        position: relative;
    }

    /* Dot-grid background texture */
    .page-public .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, #C8C8C0 1px, transparent 1px);
        background-size: 32px 32px;
        opacity: 0.45;
        pointer-events: none;
        z-index: 0;
    }

    /* Fade-out at bottom of hero */
    .page-public .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 180px;
        background: linear-gradient(to top, var(--pub-bg), transparent);
        pointer-events: none;
        z-index: 1;
    }

    .page-public .hero-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .page-public .hero-content { text-align: left; }
    .page-public .hero-glow { display: none; }

    .page-public .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--pub-accent);
        background: var(--pub-accent-light);
        border: 1px solid rgba(255, 89, 0, 0.2);
        padding: 0.4rem 1rem;
        border-radius: 4px;
        margin-bottom: 1.75rem;
    }

    .page-public .hero-title {
        font-family: var(--pub-font);
        font-size: clamp(2.8rem, 4.5vw, 4.5rem);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.03em;
        color: var(--pub-text);
        margin-bottom: 1.5rem;
        text-align: left;
        display: block;
        flex-direction: unset;
        background: none;
        -webkit-text-fill-color: var(--pub-text);
        background-clip: unset;
        -webkit-background-clip: unset;
    }

    .page-public .hero-title em {
        font-style: normal;
        color: var(--pub-accent);
        -webkit-text-fill-color: var(--pub-accent);
    }

    /* Neutralise old gradient spans */
    .page-public .hero-line-1,
    .page-public .hero-line-2 {
        display: block;
        background: none;
        -webkit-text-fill-color: inherit;
        background-clip: unset;
        -webkit-background-clip: unset;
    }
    .page-public .text-gradient {
        background: none;
        -webkit-text-fill-color: var(--pub-accent);
        background-clip: unset;
        -webkit-background-clip: unset;
    }

    .page-public .hero-subtitle {
        font-size: 1.1rem;
        color: var(--pub-muted);
        max-width: 460px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 2.5rem;
        line-height: 1.7;
    }

    .page-public .hero-actions { justify-content: flex-start; gap: 0.75rem; }

    .page-public .hero-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        min-height: 46px;
        padding: 0 1.2rem;
        border-radius: 10px !important;
        line-height: 1.2;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }

    .page-public .hero-actions .btn-primary {
        border: 1.5px solid transparent;
    }

    .page-public .hero-actions .btn-secondary {
        border-width: 1.5px;
    }

    /* ---- Hero floating cards (desktop) ---- */
    .page-public .hero-visual {
        position: relative;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .page-public .hero-stack {
        position: relative;
        width: 100%;
        max-width: 560px;
        min-height: 410px;
    }

    .page-public .hero-note {
        position: absolute;
        background: #ffffff;
        border: 1px solid var(--pub-border);
        border-radius: 14px;
        box-shadow: 0 20px 45px rgba(12, 15, 30, 0.12);
        padding: 1rem 1.1rem;
        will-change: transform;
    }

    .page-public .hero-note h3 {
        margin: 0.35rem 0 0.45rem;
        font-family: var(--pub-font);
        font-size: 1rem;
        color: var(--pub-dark);
        letter-spacing: -0.01em;
    }

    .page-public .hero-note p {
        margin: 0;
        color: var(--pub-muted);
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .page-public .hero-note-tag {
        display: inline-block;
        background: var(--pub-accent-light);
        color: var(--pub-accent);
        border: 1px solid rgba(255, 89, 0, 0.22);
        border-radius: 999px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 0.22rem 0.56rem;
    }

    .page-public .hero-note-primary {
        top: 64px;
        right: 200px;
        width: 330px;
        transform: translate(-42px, -12px) rotate(-3deg);
        z-index: 3;
        animation: heroNoteFloatPrimary 6.4s ease-in-out infinite;
    }

    .page-public .hero-note-secondary {
        top: -20px;
        right: -52px;
        width: 258px;
        transform: translate(48px, -24px) rotate(2deg);
        z-index: 2;
        animation: heroNoteFloatSecondary 7.2s ease-in-out infinite;
    }

    .page-public .hero-note-tertiary {
        right: -12px;
        bottom: -10px;
        width: 310px;
        padding: 0.8rem 1.1rem;
        text-align: center;
        background: var(--pub-dark);
        border-color: var(--pub-dark);
        z-index: 4;
        transform: translate(34px, 26px) rotate(-1deg);
        animation: heroNoteFloatTertiary 6.8s ease-in-out infinite;
    }

    @keyframes heroNoteFloatPrimary {
        0%, 100% { transform: translate(-42px, -12px) rotate(-3deg); }
        50% { transform: translate(-42px, -22px) rotate(-3deg); }
    }

    @keyframes heroNoteFloatSecondary {
        0%, 100% { transform: translate(48px, -24px) rotate(2deg); }
        50% { transform: translate(48px, -34px) rotate(2deg); }
    }

    @keyframes heroNoteFloatTertiary {
        0%, 100% { transform: translate(34px, 26px) rotate(-1deg); }
        50% { transform: translate(34px, 16px) rotate(-1deg); }
    }

    .page-public .hero-kpi {
        display: block;
        font-family: var(--pub-font);
        font-size: 2rem;
        font-weight: 800;
        color: var(--pub-accent);
        line-height: 1;
        margin-bottom: 0.3rem;
    }

    .page-public .hero-kpi-label {
        display: block;
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        font-weight: 600;
    }

    /* ---- STATS STRIP ---- */
    .page-public .stats-strip {
        background: var(--pub-dark);
        padding: 3.5rem 0;
    }

    .page-public .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .page-public .stat { text-align: center; position: relative; }
    .page-public .stat:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: rgba(255,255,255,0.08);
    }

    .page-public .stat-num {
        display: block;
        font-size: 3rem;
        font-weight: 800;
        color: var(--pub-accent);
        line-height: 1;
        margin-bottom: 0.5rem;
        font-family: var(--pub-font);
    }

    .page-public .stat-label {
        font-size: 0.82rem;
        color: rgba(255,255,255,0.45);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 600;
    }

    /* ---- SERVICES ---- */
    .page-public .services { background: var(--pub-bg); }

    .page-public .section-title {
        font-family: var(--pub-font);
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        font-weight: 800;
        color: var(--pub-text);
        background: none;
        -webkit-text-fill-color: var(--pub-text);
        background-clip: unset;
        -webkit-background-clip: unset;
        letter-spacing: -0.02em;
    }

    .page-public .card {
        background: #fff;
        border: 1.5px solid var(--pub-border);
        border-radius: 12px;
        padding: 2rem;
        transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
        position: relative;
        overflow: hidden;
    }

    .page-public .card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--pub-accent);
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 0.25s ease;
    }

    .page-public .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
        border-color: var(--pub-border);
        background: #fff;
    }

    .page-public .card:hover::before { transform: scaleY(1); }

    .page-public .card-icon {
        width: 48px;
        height: 48px;
        background: var(--pub-accent-light);
        border: 1px solid rgba(255, 89, 0, 0.15);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.25rem;
        font-size: 1.4rem;
    }

    .page-public .card h3 {
        color: var(--pub-text);
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        font-family: var(--pub-font);
    }

    .page-public .card p { color: var(--pub-muted); font-size: 0.95rem; line-height: 1.65; }

    /* ---- ABOUT (dark inverted section) ---- */
    .page-public .about {
        background: var(--pub-bg-alt);
        min-height: unset;
        display: block;
        padding: 5rem 0;
    }

    .page-public .about-content {
        min-height: unset;
        display: block;
        position: static;
        width: 100%;
    }

    .page-public .about-content .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 680px;
        padding: 0 1.5rem;
    }

    .page-public .about-visual { display: none; }

    .page-public .about-text {
        position: static;
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .page-public .about .section-title {
        color: #fff;
        -webkit-text-fill-color: #fff;
        text-align: center !important;
    }

    .page-public .about-text p {
        color: rgba(255, 255, 255, 0.55);
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1rem;
    }

    .page-public .about-text strong { color: var(--pub-accent); font-weight: 700; }

    /* Final dark override for readability in "Notre Vision" */
    :root[data-theme="dark"] .page-public .about .section-title {
        color: #D1D5E0;
        -webkit-text-fill-color: #D1D5E0;
    }

    :root[data-theme="dark"] .page-public .about-text p {
        color: #B4BAC7;
    }

    /* ---- CONTACT ---- */
    .page-public .contact { background: var(--pub-bg-alt); }

    .page-public .contact-box {
        background: #fff;
        border: 1.5px solid var(--pub-border);
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05);
        padding: 2.5rem;
    }

    .page-public .contact-box h2 {
        color: var(--pub-text);
        -webkit-text-fill-color: var(--pub-text);
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
    }

    .page-public .contact-box > p { color: var(--pub-muted); }

    .page-public .form-group label {
        color: var(--pub-text);
        font-weight: 600;
        font-size: 0.87rem;
        font-family: var(--pub-font);
    }

    .page-public .form-group input,
    .page-public .form-group textarea,
    .page-public .form-group select {
        background: var(--pub-bg-alt);
        border: 1.5px solid var(--pub-border);
        color: var(--pub-text);
        border-radius: 8px;
    }

    .page-public .form-group select {
        width: 100%;
        padding: 1rem;
        font-family: inherit;
        font-size: 1rem;
        line-height: 1.4;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image:
            linear-gradient(45deg, transparent 50%, var(--pub-accent) 50%),
            linear-gradient(135deg, var(--pub-accent) 50%, transparent 50%);
        background-position:
            calc(100% - 18px) calc(50% - 3px),
            calc(100% - 12px) calc(50% - 3px);
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    /* Strong targeted style for role dropdown to match text inputs on all browsers */
    .page-public #role {
        min-height: 54px;
        border: 1.5px solid var(--pub-border) !important;
        background-color: var(--pub-bg-alt) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 6 5-6' stroke='%23FF5900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.9rem center !important;
        background-size: 16px 16px !important;
        padding-right: 2.5rem !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .page-public #role:focus {
        border-color: var(--pub-accent) !important;
        background-color: #fff !important;
        box-shadow: 0 0 0 3px var(--pub-accent-light) !important;
        outline: none;
    }

    .page-public .form-group input::placeholder,
    .page-public .form-group textarea::placeholder { color: #B0AEA8; }

    .page-public .form-group input:focus,
    .page-public .form-group textarea:focus,
    .page-public .form-group select:focus {
        border-color: var(--pub-accent);
        background: #fff;
        box-shadow: 0 0 0 3px var(--pub-accent-light);
        outline: none;
    }

    /* ---- FOOTER ---- */
    .page-public .footer {
        background: var(--pub-dark);
        border-top: none;
        margin-top: 0;
        padding: 3rem 0 1.5rem;
    }

    .page-public .footer .logo { color: #fff; font-size: 0.95rem; }
    .page-public .footer-brand p { color: rgba(255, 255, 255, 0.35); }
    .page-public .footer-links a { color: rgba(255, 255, 255, 0.4); }
    .page-public .footer-links a:hover { color: #fff; }
    .page-public .footer-theme-toggle {
        color: rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.22);
    }
    .page-public .footer-theme-toggle:hover {
        color: #fff;
        border-color: var(--pub-accent);
    }
    .page-public .copyright {
        color: rgba(255, 255, 255, 0.22);
        font-size: 0.78rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    /* ---- SIGN-IN MODAL on public page (keep dark, just tweak) ---- */
    .page-public #signinModal .modal-content {
        background: var(--pub-dark);
        border: 1px solid rgba(255, 89, 0, 0.2);
        color: #fff;
    }
    .page-public #signinModal .modal-content h3 {
        -webkit-text-fill-color: #fff;
        background: none;
    }
    .page-public #signinModal .form-group label { color: rgba(255,255,255,0.6); }
    .page-public #signinModal .form-group input {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.1);
        color: #fff;
    }
    .page-public #signinModal .form-group input:focus {
        border-color: var(--pub-accent);
        background: rgba(255, 89, 0, 0.08);
        box-shadow: 0 0 0 3px var(--pub-accent-light);
    }
    .page-public #signinModal .btn-primary {
        background: var(--pub-accent);
    }
    .page-public #signinModal .btn-secondary {
        border-color: rgba(255,255,255,0.15);
        color: rgba(255,255,255,0.7);
        background: transparent;
    }
    .page-public #signinModal .modal-close { color: rgba(255,255,255,0.4); }

    :root[data-theme="dark"] .page-public #signinModal .modal-content {
        background: #141B29;
        color: #E8EDF8;
        border-color: #2A3346;
    }

    :root[data-theme="dark"] .page-public #signinModal .form-group label {
        color: #9AA5BA;
    }

    :root[data-theme="dark"] .page-public #signinModal .form-group input {
        background: #0F131C;
        color: #E8EDF8;
        border-color: #2A3346;
    }

    :root[data-theme="dark"] .page-public #signinModal .form-group input::placeholder {
        color: #7D879A;
    }

    :root[data-theme="dark"] .page-public #signinModal .modal-close {
        color: #9AA5BA;
    }

    :root[data-theme="dark"] .page-public #signinModal .btn-secondary {
        border-color: #2A3346;
        color: #E8EDF8;
    }

    /* ---- RESPONSIVE ---- */
    @media (max-width: 900px) {
        .page-public .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
        .page-public .hero-visual { justify-content: center; }
        .page-public .hero-stack { max-width: 430px; min-height: 330px; }
        .page-public .hero-note-primary {
            top: 44px;
            right: 96px;
            width: 285px;
            transform: translate(-12px, -8px) rotate(-3deg);
        }
        .page-public .hero-note-secondary {
            top: 0;
            right: 4px;
            width: 220px;
            transform: translate(16px, -10px) rotate(2deg);
        }
        .page-public .hero-note-tertiary {
            right: 4px;
            bottom: 0;
            width: 255px;
            transform: translate(14px, 12px) rotate(-1deg);
        }
    }

    @media (max-width: 768px) {
        .page-public .hero::before { background-size: 24px 24px; }
        .page-public .hero-content { text-align: center; }
        .page-public .hero-title { text-align: center; font-size: 2.5rem; }
        .page-public .hero-subtitle { margin-left: auto; margin-right: auto; }
        .page-public .hero-actions { justify-content: center; flex-wrap: wrap; }
        .page-public .hero-eyebrow { font-size: 0.68rem; }
        .page-public .hero-visual { display: none; }
        .page-public .stats-grid { grid-template-columns: 1fr; gap: 1.25rem; }
        .page-public .stat:not(:last-child)::after { display: none; }
        .page-public .services-grid { grid-template-columns: 1fr !important; }
        .page-public .footer-links a { margin-left: 0; margin-right: 1rem; }
    }

    /* ---- PALETTE LOCK (final override) ---- */
    .page-public,
    .page-public main,
    .page-public section,
    .page-public .section,
    .page-public .services,
    .page-public .contact {
        color: var(--pub-text);
    }

    .page-public a {
        color: inherit;
    }

    .page-public a:focus-visible,
    .page-public button:focus-visible,
    .page-public input:focus-visible,
    .page-public textarea:focus-visible {
        outline: 2px solid var(--pub-accent);
        outline-offset: 2px;
        box-shadow: none;
    }

    .page-public .btn,
    .page-public .btn:hover,
    .page-public .btn:active,
    .page-public .btn:focus,
    .page-public .btn:focus-visible {
        box-shadow: none;
    }

    .page-public .btn-primary,
    .page-public .btn-primary:focus,
    .page-public .btn-primary:active {
        background: var(--pub-accent);
        border-color: var(--pub-accent);
        color: #fff;
    }

    .page-public .btn-primary:hover {
        background: #E04E00;
        border-color: #E04E00;
    }

    .page-public .btn-secondary,
    .page-public .btn-outline {
        border-color: var(--pub-text);
        color: var(--pub-text);
        background: transparent;
    }

    .page-public .btn-secondary:hover,
    .page-public .btn-outline:hover {
        background: var(--pub-text);
        border-color: var(--pub-text);
        color: #fff;
    }

    .page-public .card,
    .page-public .contact-box,
    .page-public .nav-menu {
        border-color: var(--pub-border);
    }

    .page-public .form-group input,
    .page-public .form-group textarea,
    .page-public .form-group select {
        color: var(--pub-text);
        border-color: var(--pub-border);
    }

    .page-public .form-group input:focus,
    .page-public .form-group textarea:focus,
    .page-public .form-group select:focus {
        border-color: var(--pub-accent);
        box-shadow: 0 0 0 3px var(--pub-accent-light);
    }

    .page-public ::selection {
        background: rgba(255, 89, 0, 0.22);
        color: var(--pub-text);
    }

    .page-public {
        accent-color: var(--pub-accent);
    }

/* ================================================================
   APP PAGES REDESIGN - dashboard/admin
   ================================================================ */

.page-app {
    --app-bg: #FAFAF8;
    --app-bg-alt: #F2F1EE;
    --app-dark: #0C0F1E;
    --app-footer-bg: #0C0F1E;
    --app-accent: #FF5900;
    --app-accent-soft: rgba(255, 89, 0, 0.08);
    --app-text: #0C0C14;
    --app-muted: #6B7280;
    --app-border: #E4E4E0;
    --app-shadow: 0 18px 46px rgba(12, 15, 30, 0.08);

    background: linear-gradient(180deg, #f7f6f3 0%, #fafaf8 22%, #fafaf8 100%);
    color: var(--app-text);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

:root[data-theme="dark"] .page-app {
    --app-bg: #0C0F1E;
    --app-bg-alt: #141B29;
    --app-dark: #E8EDF8;
    --app-footer-bg: #0F1524;
    --app-accent: #FF5900;
    --app-accent-soft: rgba(255, 89, 0, 0.18);
    --app-text: #E8EDF8;
    --app-muted: #9AA5BA;
    --app-border: #2A3346;
    --app-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);

    background: linear-gradient(180deg, #0E121A 0%, #0F131C 22%, #0F131C 100%);
    color: var(--app-text);
}

.page-app .noise-overlay { display: none; }

.page-app .header {
    background: rgba(250, 250, 248, 0.94);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .page-app .header {
    background: rgba(12, 15, 30, 0.9);
}

.page-app .logo {
    color: var(--text-main);
}

.page-app .nav-link,
.page-app .nav-button,
.page-app .dashboard-nav .nav-link {
    color: var(--text-muted);
}

.page-app .nav-link:hover,
.page-app .nav-button:hover,
.page-app .dashboard-nav .nav-link:hover,
.page-app .nav-link.active,
.page-app .dashboard-nav .nav-link.active {
    color: var(--text-main);
}

.page-app .nav-toggle .hamburger,
.page-app .nav-toggle .hamburger::before,
.page-app .nav-toggle .hamburger::after {
    background: var(--app-text);
}
.page-app .nav-toggle .hamburger { color: var(--app-text); }

.page-app .nav-menu {
    background: #fff;
    border-color: var(--app-border);
    box-shadow: 0 12px 30px rgba(12, 15, 30, 0.1);
}

:root[data-theme="dark"] .page-app .nav-menu {
    background: #141B29;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .page-app .gain-card,
:root[data-theme="dark"] .page-app .subscription-card,
:root[data-theme="dark"] .page-app .automation-card,
:root[data-theme="dark"] .page-app .history-item,
:root[data-theme="dark"] .page-app .support-card,
:root[data-theme="dark"] .page-app .table-wrap,
:root[data-theme="dark"] .page-app .toolbar,
:root[data-theme="dark"] .page-app .modal-content,
:root[data-theme="dark"] .page-app .inline-panel {
    background: var(--app-bg-alt);
    border-color: var(--app-border);
}

:root[data-theme="dark"] .page-app .table-input,
:root[data-theme="dark"] .page-app .modal-body input,
:root[data-theme="dark"] .page-app .modal-body select,
:root[data-theme="dark"] .page-app .inline-panel .table-input,
:root[data-theme="dark"] .page-app .toolbar .table-input {
    background: #0F131C;
    color: #E8EDF8;
    border-color: #2A3346;
}

:root[data-theme="dark"] .page-app .table-input:focus,
:root[data-theme="dark"] .page-app .modal-body input:focus,
:root[data-theme="dark"] .page-app .modal-body select:focus,
:root[data-theme="dark"] .page-app .inline-panel .table-input:focus,
:root[data-theme="dark"] .page-app .toolbar .table-input:focus {
    background: #141B29;
}

:root[data-theme="dark"] .page-app .admin-table thead th {
    background: linear-gradient(180deg, rgba(10, 13, 26, 0.96), rgba(10, 13, 26, 0.9));
}

:root[data-theme="dark"] .auth-loading-box {
    background: #141B29;
    border-color: #2A3346;
}

:root[data-theme="dark"] .auth-loading-message {
    color: #E8EDF8;
}

.page-app .dashboard-main {
    padding-top: 110px;
    min-height: 100vh;
}

.page-app .dashboard-hero {
    padding: 2.5rem 0 1.75rem;
}

.page-app .dashboard-title,
.page-app .section-title {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--app-text);
    background: none;
    -webkit-text-fill-color: var(--app-text);
    background-clip: unset;
    -webkit-background-clip: unset;
    letter-spacing: -0.02em;
}

.page-app .dashboard-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-app .dashboard-subtitle,
.page-app .dashboard-welcome,
.page-app .subscription-label,
.page-app .gain-title,
.page-app .gain-period,
.page-app .gain-description,
.page-app .automation-objective,
.page-app .automation-date,
.page-app .history-description,
.page-app .support-description,
.page-app .footer-brand p,
.page-app .footer-links a {
    color: var(--app-muted);
}

.page-app .dashboard-welcome {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    box-shadow: 0 8px 24px rgba(12, 15, 30, 0.05);
}

.page-app .btn-primary,
.page-app .btn-secondary,
.page-app .nav-button,
.page-app .nav-toggle,
.page-app .theme-toggle-btn,
.page-app .u-toggle,
.page-app .footer-theme-toggle,
.page-app .modal-close,
.page-app button {
    border-radius: 10px !important;
    -webkit-appearance: none;
    appearance: none;
}

.page-app .gains-section,
.page-app .subscription-section,
.page-app .automations-section,
.page-app .history-section,
.page-app .support-section,
.page-app #users.dashboard-section {
    background: transparent;
}

.page-app .gain-card,
.page-app .subscription-card,
.page-app .automation-card,
.page-app .history-item,
.page-app .support-card,
.page-app .table-wrap,
.page-app .toolbar,
.page-app .modal-content,
.page-app .inline-panel {
    background: #fff;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

.page-app .gain-card:hover,
.page-app .automation-card:hover,
.page-app .history-item:hover {
    border-color: rgba(255, 89, 0, 0.28);
}

.page-app .gain-value,
.page-app .history-date,
.page-app .history-result,
.page-app .automation-name,
.page-app .support-title,
.page-app .subscription-value,
.page-app .dashboard-title,
.page-app .toolbar .btn-primary,
.page-app .automation-status,
.page-app .subscription-badge {
    color: var(--app-accent);
}

.page-app .status-active,
.page-app .status-maintenance,
.page-app .status-optimization,
.page-app .subscription-badge {
    background: rgba(255, 89, 0, 0.12);
    border: 1px solid rgba(255, 89, 0, 0.14);
    color: var(--app-accent);
}

.page-app .toolbar {
    background: #fff;
    border-radius: 16px;
    position: sticky;
    top: 95px;
    z-index: 120;
}

.page-app .table-input,
.page-app .modal-body input,
.page-app .modal-body select,
.page-app .inline-panel .table-input,
.page-app .toolbar .table-input {
    background: var(--app-bg-alt);
    border: 1.5px solid var(--app-border);
    color: var(--app-text);
}

.page-app .table-input:focus,
.page-app .modal-body input:focus,
.page-app .modal-body select:focus,
.page-app .inline-panel .table-input:focus,
.page-app .toolbar .table-input:focus {
    border-color: var(--app-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.1);
}

.page-app .admin-table thead th {
    background: linear-gradient(180deg, rgba(12, 15, 30, 0.96), rgba(12, 15, 30, 0.88));
    color: #fff;
    border-bottom: 2px solid rgba(255, 89, 0, 0.2);
}

.page-app .admin-table tbody tr:hover {
    background: rgba(255, 89, 0, 0.04);
}

.page-app .admin-table th,
.page-app .admin-table td,
.page-app .subscription-row,
.page-app .automation-footer,
.page-app .modal-actions,
.page-app .inline-panel-actions {
    border-color: var(--app-border);
}

.page-app .modal {
    background: rgba(12, 15, 30, 0.35);
}

.page-app .modal-content h3,
.page-app .history-title,
.page-app .support-title,
.page-app .automation-name,
.page-app .logo,
.page-app .footer,
.page-app .footer .logo {
    color: var(--app-text);
    -webkit-text-fill-color: initial;
}

.page-app .btn-primary {
    background: var(--app-accent);
    color: #fff;
    border: none;
    box-shadow: none;
}

.page-app .btn-primary:hover {
    background: #E04E00;
    box-shadow: 0 8px 22px rgba(255, 89, 0, 0.2);
    transform: none;
}

.page-app .btn-secondary,
.page-app .btn-outline {
    background: transparent;
    border: 1.5px solid var(--app-dark);
    color: var(--app-dark);
}

.page-app .btn-secondary:hover,
.page-app .btn-outline:hover {
    background: var(--app-dark);
    color: #fff;
}

.page-app .btn-link {
    color: var(--app-accent);
}

.page-app .footer {
    background: var(--app-footer-bg);
    margin-top: 3rem;
    border-top: none;
}

.page-app .footer p,
.page-app .footer a,
.page-app .footer .logo,
.page-app .copyright {
    color: rgba(255, 255, 255, 0.75);
}

.page-app .footer a:hover {
    color: #fff;
}

.page-app .footer-theme-toggle {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.page-app .footer-theme-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .page-app .dashboard-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem;
    }

    .page-app .subscription-card {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .page-dashboard #navMenu.nav-menu {
        display: none !important;
    }

    .page-dashboard #navMenu.nav-menu.open {
        display: flex !important;
    }

    .page-app .section-nav-link {
        display: none !important;
    }

    .page-app .mobile-nav-shortcut {
        display: block !important;
    }

    .page-app .dashboard-nav {
        align-items: stretch;
    }
}

@media (min-width: 769px) {
    .page-app .nav-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .page-app .mobile-nav-shortcut {
        display: none !important;
    }
}


