:root {
    --bg: #F6F7F4;
    --primary: #1EA64A;
    --primary-light: #2FC26A;
    --primary-dark: #0F7A3D;
    --header: #234B35;
    --card-dark: #1F2B2A;
    --text: #22272A;
    --muted: #6B7A80;
    --white: #FFFFFF;
    --surface: #FFFFFF;
    --surface-soft: #FAFBF8;
    --border: rgba(35, 75, 53, 0.14);
    --shadow: 0 18px 45px rgba(35, 75, 53, 0.12);
}

html,
body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body {
    min-height: 100vh;
}

main,
section,
article,
div,
p,
span,
label,
td,
li {
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--header) !important;
    font-weight: 850;
    line-height: 1.15;
}

p,
li,
td,
small {
    color: var(--text) !important;
}

.text-muted,
.muted,
.subtitle,
.description,
.subtext,
small {
    color: var(--muted) !important;
}

a {
    color: var(--primary-dark);
}

header,
nav,
.site-header,
.navbar {
    background: var(--header) !important;
    color: var(--bg) !important;
    border-bottom: 4px solid var(--primary);
}

header a,
nav a,
.site-header a,
.navbar a {
    color: var(--white) !important;
}

footer,
.site-footer {
    background: var(--header) !important;
    color: var(--bg) !important;
    border-top: 4px solid var(--primary);
}

footer p,
footer span,
footer a,
.site-footer p,
.site-footer span,
.site-footer a {
    color: rgba(255,255,255,.88) !important;
}

button,
.btn,
a.btn,
input[type="submit"],
.button-primary,
.primary-btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 12px;
    font-weight: 800;
}

button:hover,
.btn:hover,
a.btn:hover,
input[type="submit"]:hover,
.button-primary:hover,
.primary-btn:hover {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark)) !important;
    color: var(--white) !important;
}

.button-secondary,
.secondary-btn,
.btn-secondary,
a.secondary {
    background: transparent !important;
    color: var(--primary-dark) !important;
    border: 1px solid var(--primary) !important;
}

.button-secondary:hover,
.secondary-btn:hover,
.btn-secondary:hover,
a.secondary:hover {
    background: rgba(30,166,74,.10) !important;
}

input,
select,
textarea {
    background: var(--white) !important;
    color: var(--text) !important;
    border: 1px solid rgba(35,75,53,.22) !important;
    border-radius: 12px;
}

input::placeholder,
textarea::placeholder {
    color: #7D898D !important;
}

/* General cards and sections */
.card,
.panel,
.hero-card,
.content-card,
.page-card,
.public-page-card,
.about-card,
.developer-card,
.market-card,
.marketplace-card,
.auth-card,
.login-card,
.register-card,
.info-card,
.feature-card,
.summary-card {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
}

.card h1,
.card h2,
.card h3,
.panel h1,
.panel h2,
.panel h3,
.hero-card h1,
.hero-card h2,
.hero-card h3,
.content-card h1,
.content-card h2,
.content-card h3,
.page-card h1,
.page-card h2,
.page-card h3,
.public-page-card h1,
.public-page-card h2,
.public-page-card h3,
.about-card h1,
.about-card h2,
.about-card h3,
.developer-card h1,
.developer-card h2,
.developer-card h3,
.market-card h1,
.market-card h2,
.market-card h3,
.marketplace-card h1,
.marketplace-card h2,
.marketplace-card h3,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.login-card h1,
.login-card h2,
.login-card h3,
.register-card h1,
.register-card h2,
.register-card h3 {
    color: var(--header) !important;
}

.card p,
.panel p,
.hero-card p,
.content-card p,
.page-card p,
.public-page-card p,
.about-card p,
.developer-card p,
.market-card p,
.marketplace-card p,
.auth-card p,
.login-card p,
.register-card p {
    color: var(--text) !important;
    opacity: 1 !important;
}

/* Kill washed out old text */
[class*="text-white"],
[class*="text-green-200"],
[class*="text-slate-300"],
[class*="text-gray-300"] {
    color: var(--text) !important;
    opacity: 1 !important;
}

/* Dark cards only */
.card-dark,
.dark-card,
.dark-panel,
.gradient-panel,
.auth-side-panel,
.login-side-panel,
.feature-dark,
.green-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08)),
        var(--card-dark) !important;
    color: var(--white) !important;
    border-radius: 18px;
}

.card-dark h1,
.card-dark h2,
.card-dark h3,
.dark-card h1,
.dark-card h2,
.dark-card h3,
.dark-panel h1,
.dark-panel h2,
.dark-panel h3,
.gradient-panel h1,
.gradient-panel h2,
.gradient-panel h3,
.auth-side-panel h1,
.auth-side-panel h2,
.auth-side-panel h3,
.login-side-panel h1,
.login-side-panel h2,
.login-side-panel h3,
.feature-dark h1,
.feature-dark h2,
.feature-dark h3,
.green-panel h1,
.green-panel h2,
.green-panel h3 {
    color: var(--white) !important;
}

.card-dark p,
.card-dark span,
.card-dark li,
.dark-card p,
.dark-card span,
.dark-card li,
.dark-panel p,
.dark-panel span,
.dark-panel li,
.gradient-panel p,
.gradient-panel span,
.gradient-panel li,
.auth-side-panel p,
.auth-side-panel span,
.auth-side-panel li,
.login-side-panel p,
.login-side-panel span,
.login-side-panel li,
.feature-dark p,
.feature-dark span,
.feature-dark li,
.green-panel p,
.green-panel span,
.green-panel li {
    color: rgba(255,255,255,.92) !important;
}

/* Landing and public pages */
.acnova-page,
.page-wrap,
.public-page,
.marketplace-page,
.auth-page {
    background:
        radial-gradient(circle at top right, rgba(47,194,106,.12), transparent 28%),
        linear-gradient(135deg, #F6F7F4 0%, #FFFFFF 48%, #EEF5EF 100%) !important;
}

.public-page-card,
.about-card,
.developer-card,
.page-card {
    max-width: 1100px;
    margin: 48px auto;
    padding: 42px;
    border-radius: 28px;
}

.public-page-card .lead,
.about-card .lead,
.developer-card .lead,
.page-card .lead {
    color: var(--primary-dark) !important;
    font-weight: 750;
}

/* Command Center */
.acnova-command-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 90px);
    background: var(--bg) !important;
    color: var(--text) !important;
}

.acnova-sidebar {
    background: var(--header);
    color: var(--white);
    padding: 28px 18px;
    border-right: 5px solid var(--primary);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.acnova-sidebar .side-title {
    color: var(--white);
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 20px;
}

.acnova-sidebar a {
    display: block;
    color: var(--white) !important;
    text-decoration: none;
    padding: 13px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    font-weight: 800;
}

.acnova-sidebar a:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.acnova-command-main {
    padding: 42px;
}

.command-hero {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 24px;
    background: var(--white);
    border-radius: 30px;
    padding: 34px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.command-badge {
    display: inline-flex;
    background: rgba(30,166,74,.12);
    border: 1px solid rgba(30,166,74,.32);
    color: var(--primary-dark) !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
}

.command-hero h1 {
    color: var(--header) !important;
    font-size: clamp(34px, 4vw, 58px);
    margin: 16px 0;
}

.command-hero p {
    color: var(--text) !important;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.command-actions a {
    background: var(--white);
    color: var(--primary-dark) !important;
    border: 1px solid rgba(30,166,74,.32);
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
}

.command-actions a.primary,
.command-actions a:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.command-status {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08)),
        var(--card-dark) !important;
    color: var(--white) !important;
    border-radius: 24px;
    padding: 26px;
    border-bottom: 6px solid var(--primary);
}

.command-status span {
    color: #DDFBE5 !important;
    font-weight: 900;
}

.command-status strong {
    display: block;
    font-size: 34px;
    color: var(--white) !important;
    margin: 12px 0;
}

.command-status p {
    color: rgba(255,255,255,.90) !important;
}

.command-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.command-stats article {
    background: var(--white);
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-bottom: 5px solid var(--primary);
    box-shadow: 0 10px 25px rgba(35,75,53,.08);
}

.command-stats span {
    color: var(--primary-dark) !important;
    font-weight: 900;
}

.command-stats strong {
    display: block;
    font-size: 34px;
    color: var(--header) !important;
    margin: 8px 0;
}

.command-stats p {
    color: var(--muted) !important;
}

.command-panel {
    background: var(--white);
    border-radius: 26px;
    padding: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.command-panel h2 {
    color: var(--header) !important;
}

.command-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.command-table th {
    background: var(--header) !important;
    color: var(--white) !important;
    text-align: left;
    padding: 14px;
}

.command-table td {
    padding: 14px;
    color: var(--text) !important;
    background: var(--white);
    border-bottom: 1px solid rgba(35,75,53,.10);
}

.command-table tr:nth-child(even) td {
    background: var(--surface-soft);
}

.command-table td:first-child {
    color: var(--primary-dark) !important;
    font-weight: 900;
}

.command-table a {
    color: var(--primary-dark) !important;
    font-weight: 900;
}

/* Forms */
.auth-card,
.login-card,
.register-card {
    background: rgba(255,255,255,.96) !important;
    color: var(--text) !important;
}

.auth-card label,
.login-card label,
.register-card label {
    color: var(--header) !important;
    font-weight: 750;
}

.auth-card h1,
.login-card h1,
.register-card h1 {
    color: var(--header) !important;
}

.auth-card p,
.login-card p,
.register-card p {
    color: var(--text) !important;
}

/* Marketplace */
.marketplace-card,
.market-card {
    background: var(--white) !important;
}

.marketplace-card h1,
.marketplace-card h2,
.marketplace-card h3,
.market-card h1,
.market-card h2,
.market-card h3 {
    color: var(--header) !important;
}

.marketplace-card p,
.marketplace-card span,
.market-card p,
.market-card span {
    color: var(--text) !important;
}

/* Mobile */
@media (max-width: 980px) {
    .acnova-command-page {
        grid-template-columns: 1fr;
    }

    .acnova-sidebar {
        position: relative;
        min-height: auto;
    }

    .command-hero,
    .command-stats {
        grid-template-columns: 1fr;
    }

    .acnova-command-main {
        padding: 24px;
    }

    .command-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .public-page-card,
    .about-card,
    .developer-card,
    .page-card,
    .auth-card,
    .login-card,
    .register-card,
    .market-card,
    .marketplace-card {
        margin: 18px;
        padding: 22px;
    }

    h1 {
        font-size: clamp(30px, 8vw, 44px);
    }
}

/* =========================================================
   ACNOVA LIGHT / DARK THEME MODE
   ========================================================= */

:root {
    --mode-bg: #F6F7F4;
    --mode-surface: #FFFFFF;
    --mode-text: #22272A;
    --mode-muted: #6B7A80;
    --mode-header: #234B35;
    --mode-primary: #1EA64A;
    --mode-primary-dark: #0F7A3D;
    --mode-border: rgba(35, 75, 53, .14);
    --mode-card-shadow: 0 18px 45px rgba(35, 75, 53, .12);
}

html[data-theme="dark"] {
    --mode-bg: #111816;
    --mode-surface: #1F2B2A;
    --mode-text: #F6F7F4;
    --mode-muted: #C6D1CC;
    --mode-header: #0F241C;
    --mode-primary: #2FC26A;
    --mode-primary-dark: #7EE7A2;
    --mode-border: rgba(255, 255, 255, .12);
    --mode-card-shadow: 0 18px 45px rgba(0, 0, 0, .30);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .acnova-page,
html[data-theme="dark"] .dashboard-page,
html[data-theme="dark"] .marketplace-page,
html[data-theme="dark"] .auth-page,
html[data-theme="dark"] main {
    background:
        radial-gradient(circle at top right, rgba(47, 194, 106, .14), transparent 28%),
        linear-gradient(135deg, #111816 0%, #182420 55%, #101815 100%) !important;
    color: var(--mode-text) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] label,
html[data-theme="dark"] span {
    color: var(--mode-muted) !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .developer-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .register-card,
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .marketplace-card,
html[data-theme="dark"] .acnova-hero-card,
html[data-theme="dark"] .acnova-status-card,
html[data-theme="dark"] .acnova-stats article,
html[data-theme="dark"] .acnova-workflow article,
html[data-theme="dark"] .acnova-workflow a,
html[data-theme="dark"] .command-hero,
html[data-theme="dark"] .command-panel,
html[data-theme="dark"] .command-stats article {
    background: var(--mode-surface) !important;
    color: var(--mode-text) !important;
    border-color: var(--mode-border) !important;
    box-shadow: var(--mode-card-shadow) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #17211E !important;
    color: #FFFFFF !important;
    border-color: rgba(255,255,255,.16) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #9EAFAA !important;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.10) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.theme-toggle-btn:hover {
    background: var(--mode-primary) !important;
}

/* Better dashboard layout when dashboard uses simple markup */
.acnova-dashboard-page,
.acnova-page {
    min-height: 100vh;
    padding: 42px clamp(18px, 5vw, 80px);
}

.acnova-dashboard-page > *,
.acnova-page > * {
    max-width: 1180px;
}

.acnova-dashboard-page h1 {
    margin-top: 20px;
    margin-bottom: 14px;
}

.acnova-dashboard-page .acnova-action-bar a,
.acnova-dashboard-page a {
    display: inline-flex;
    margin: 4px 6px 4px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(30,166,74,.28);
    color: #0F7A3D !important;
    font-weight: 800;
    text-decoration: none;
}

.acnova-dashboard-page .acnova-action-bar a:first-child,
.acnova-dashboard-page a[href*="map"] {
    background: #1EA64A !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .acnova-dashboard-page a {
    background: #1F2B2A !important;
    color: #7EE7A2 !important;
    border-color: rgba(126,231,162,.30);
}

html[data-theme="dark"] .acnova-dashboard-page a[href*="map"] {
    background: #2FC26A !important;
    color: #101815 !important;
}

.footer-link-fix a {
    pointer-events: auto;
}

.theme-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 10px;
    min-height: 42px;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    color: #234B35 !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    z-index: 9999;
}

.theme-toggle-btn:hover {
    background: #1EA64A !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .theme-toggle-btn {
    background: #1F2B2A !important;
    color: #FFFFFF !important;
    border-color: rgba(255,255,255,.25) !important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .acnova-page,
html[data-theme="dark"] .marketplace-page,
html[data-theme="dark"] .auth-page {
    background: #111816 !important;
    color: #F6F7F4 !important;
}

html[data-theme="dark"] .marketplace-card,
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .register-card,
html[data-theme="dark"] .command-hero,
html[data-theme="dark"] .command-panel,
html[data-theme="dark"] .command-stats article {
    background: #1F2B2A !important;
    color: #F6F7F4 !important;
    border-color: rgba(255,255,255,.12) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] label,
html[data-theme="dark"] td {
    color: #D6E0DC !important;
}

/* Language + RTL */
html[dir="rtl"],
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .acnova-command-page {
    direction: rtl;
}

html[dir="rtl"] .acnova-sidebar {
    border-right: none;
    border-left: 5px solid var(--primary);
}

html[dir="rtl"] .command-table th,
html[dir="rtl"] .command-table td {
    text-align: right;
}

.lang-menu,
.language-menu {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.lang-menu a,
.language-menu a {
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    color: #fff !important;
}

.lang-menu a.active,
.language-menu a.active {
    background: #1EA64A;
}

/* Language + RTL */
html[dir="rtl"],
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .acnova-command-page {
    direction: rtl;
}

html[dir="rtl"] .acnova-sidebar {
    border-right: none;
    border-left: 5px solid var(--primary);
}

html[dir="rtl"] .command-table th,
html[dir="rtl"] .command-table td {
    text-align: right;
}

.lang-menu,
.language-menu {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.lang-menu a,
.language-menu a {
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    color: #fff !important;
}

.lang-menu a.active,
.language-menu a.active {
    background: #1EA64A;
}

/* About page modules */
.acnova-about-modern,
.acnova-modules-section {
    max-width: 1180px;
}

.acnova-modules-section {
    margin-top: 28px;
}

.acnova-modules-section h2 {
    margin-top: 18px;
    color: var(--header, #234B35) !important;
}

.acnova-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.acnova-modules-grid article {
    background: #FFFFFF;
    border: 1px solid rgba(35, 75, 53, .14);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(35, 75, 53, .08);
    border-top: 5px solid #1EA64A;
}

.acnova-modules-grid article:nth-child(3n) {
    border-top-color: #2FC26A;
}

.acnova-modules-grid article:nth-child(4n) {
    border-top-color: #0F7A3D;
}

.acnova-modules-grid h3 {
    color: #234B35 !important;
    font-size: 18px;
    margin-bottom: 10px;
}

.acnova-modules-grid p {
    color: #35564D !important;
    line-height: 1.65;
    font-size: 15px;
}

html[data-theme="dark"] .acnova-modules-grid article {
    background: #1F2B2A !important;
    border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] .acnova-modules-grid h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .acnova-modules-grid p {
    color: #D6E0DC !important;
}

@media (max-width: 1100px) {
    .acnova-modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .acnova-modules-grid {
        grid-template-columns: 1fr;
    }
}

.common-data-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.common-data-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(35,75,53,.14));
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(35,75,53,.08);
    border-top: 5px solid var(--primary, #1EA64A);
}

.common-data-card h3 {
    color: var(--header, #234B35) !important;
    margin-bottom: 12px;
}

.common-data-card p {
    color: var(--text, #22272A) !important;
    margin: 7px 0;
}

.common-data-card span {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(30,166,74,.12);
    color: var(--primary-dark, #0F7A3D) !important;
    font-weight: 900;
    font-size: 12px;
}

html[data-theme="dark"] .common-data-card {
    background: #1F2B2A !important;
    border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] .common-data-card p {
    color: #D6E0DC !important;
}

html[data-theme="dark"] .common-data-card span {
    color: #7EE7A2 !important;
}

@media (max-width: 1000px) {
    .common-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .common-data-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ACNOVA PRODUCTION DASHBOARD SHELL
   ========================================================= */

.acnova-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 84px);
    background: #101815;
}

.acnova-side {
    position: sticky;
    top: 84px;
    align-self: start;
    height: calc(100vh - 84px);
    padding: 28px 18px;
    background: #234B35;
    border-right: 4px solid #1EA64A;
    overflow-y: auto;
}

.acnova-side .side-kicker {
    color: #F2C94C;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.acnova-side h2 {
    color: #FFFFFF !important;
    font-size: 24px;
    margin-bottom: 22px;
}

.acnova-side nav {
    display: grid;
    gap: 8px;
}

.acnova-side a {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 850;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.acnova-side a:hover {
    background: #1EA64A;
    color: #FFFFFF !important;
}

.acnova-main {
    padding: 42px clamp(18px, 4vw, 58px);
    max-width: 1500px;
    width: 100%;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    background: #1F2B2A;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    border-radius: 30px;
    padding: 34px;
    margin-bottom: 24px;
}

.dashboard-hero h1 {
    color: #FFFFFF !important;
    font-size: clamp(34px, 4vw, 56px);
    margin: 14px 0;
}

.dashboard-hero p {
    color: #D6E0DC !important;
    font-weight: 650;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-actions a {
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(30,166,74,.45);
    color: #7EE7A2 !important;
    text-decoration: none;
    font-weight: 900;
}

.dashboard-actions a.primary,
.dashboard-actions a:hover {
    background: #1EA64A;
    color: #FFFFFF !important;
}

.dashboard-live-card {
    background:
        linear-gradient(135deg, rgba(47,194,106,.18), rgba(255,255,255,.04)),
        #17211E;
    border: 1px solid rgba(126,231,162,.18);
    border-radius: 24px;
    padding: 26px;
    border-bottom: 6px solid #1EA64A;
}

.dashboard-live-card span {
    color: #F2C94C !important;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
}

.dashboard-live-card strong {
    display: block;
    color: #FFFFFF !important;
    font-size: 34px;
    margin: 12px 0;
}

.dashboard-live-card p {
    color: #D6E0DC !important;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-grid article {
    background: #1F2B2A;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    border-bottom: 5px solid #2FC26A;
}

.metric-grid span {
    color: #FFFFFF !important;
    font-weight: 900;
    display: block;
    margin-bottom: 12px;
}

.metric-grid strong {
    color: #F2C94C !important;
    font-size: 26px;
    display: block;
    line-height: 1.2;
    margin-bottom: 14px;
}

.metric-grid p {
    color: #D6E0DC !important;
    line-height: 1.55;
}

.dashboard-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.dashboard-panel {
    background: #1F2B2A;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 44px rgba(0,0,0,.20);
    margin-bottom: 22px;
}

.dashboard-panel h2 {
    color: #FFFFFF !important;
    margin: 6px 0 18px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-head a {
    color: #F2C94C !important;
    font-weight: 900;
    text-decoration: none;
}

.mini-label {
    color: #F2C94C !important;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
}

.acnova-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: #FFFFFF;
    overflow: hidden;
    border-radius: 18px;
}

.acnova-table th {
    background: #234B35 !important;
    color: #FFFFFF !important;
    padding: 15px 16px;
    text-align: left;
    font-weight: 900;
}

.acnova-table td {
    background: #FFFFFF !important;
    color: #22272A !important;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(35,75,53,.10);
    font-weight: 650;
}

.acnova-table tr:nth-child(even) td {
    background: #F6F7F4 !important;
}

.acnova-table td:first-child {
    color: #0F7A3D !important;
    font-weight: 900;
}

.status-pill {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(30,166,74,.14);
    color: #0F7A3D !important;
    font-weight: 900;
    font-size: 12px;
}

.market-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.market-flow-grid article {
    background: #1F2B2A;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    padding: 22px;
    border-top: 5px solid #1EA64A;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.market-flow-grid span {
    color: #F2C94C !important;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
}

.market-flow-grid h3 {
    color: #FFFFFF !important;
    margin: 12px 0;
}

.market-flow-grid p {
    color: #D6E0DC !important;
    line-height: 1.6;
}

.workflow-list {
    display: grid;
    gap: 12px;
}

.workflow-list article {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 14px;
}

.workflow-list strong {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #1EA64A;
    color: #FFFFFF !important;
}

.workflow-list p {
    margin: 0;
    color: #D6E0DC !important;
}

/* Fix old command table white text issue globally */
.command-table td,
.common-data-card p {
    color: #22272A !important;
}

.command-table td:first-child {
    color: #0F7A3D !important;
    font-weight: 900;
}

html[data-theme="dark"] .command-table td {
    color: #22272A !important;
}

html[data-theme="dark"] .command-table td:first-child {
    color: #0F7A3D !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .acnova-shell {
        grid-template-columns: 1fr;
    }

    .acnova-side {
        position: relative;
        top: auto;
        height: auto;
        border-right: none;
        border-bottom: 4px solid #1EA64A;
    }

    .acnova-side nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .acnova-side a {
        white-space: nowrap;
    }

    .dashboard-two-col {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .market-flow-grid {
        grid-template-columns: 1fr;
    }

    .acnova-main {
        padding: 24px 16px;
    }
}

/* =========================================================
   ACNOVA TABLE READABILITY FIX
   White table areas must use strong readable text
   ========================================================= */

.acnova-table,
.command-table {
    background: #FFFFFF !important;
}

.acnova-table th,
.command-table th {
    background: #234B35 !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
}

.acnova-table td,
.command-table td {
    background: #FFFFFF !important;
    color: #22272A !important;
    font-weight: 750 !important;
    opacity: 1 !important;
}

.acnova-table tr:nth-child(even) td,
.command-table tr:nth-child(even) td {
    background: #F6F7F4 !important;
    color: #22272A !important;
}

.acnova-table td:first-child,
.command-table td:first-child,
.acnova-table td strong,
.command-table td strong {
    color: #0F7A3D !important;
    font-weight: 950 !important;
}

.acnova-table td:nth-child(5),
.command-table td:nth-child(5),
.acnova-table .price,
.command-table .price {
    color: #8A6500 !important;
    font-weight: 950 !important;
}

.acnova-table td:nth-child(2),
.command-table td:nth-child(2),
.acnova-table td:nth-child(3),
.command-table td:nth-child(3),
.acnova-table td:nth-child(4),
.command-table td:nth-child(4) {
    color: #234B35 !important;
}

.table-wrap {
    background: #FFFFFF !important;
    border: 1px solid rgba(35, 75, 53, .18);
}

html[data-theme="dark"] .acnova-table td,
html[data-theme="dark"] .command-table td {
    background: #FFFFFF !important;
    color: #22272A !important;
}

html[data-theme="dark"] .acnova-table tr:nth-child(even) td,
html[data-theme="dark"] .command-table tr:nth-child(even) td {
    background: #F6F7F4 !important;
    color: #22272A !important;
}

html[data-theme="dark"] .acnova-table td:first-child,
html[data-theme="dark"] .command-table td:first-child {
    color: #0F7A3D !important;
}

html[data-theme="dark"] .acnova-table td:nth-child(5),
html[data-theme="dark"] .command-table td:nth-child(5) {
    color: #8A6500 !important;
}

/* Fix any faded text inside table cells */
.acnova-table span,
.command-table span,
.acnova-table p,
.command-table p {
    color: inherit !important;
    opacity: 1 !important;
}

.module-link {
    display: inline-flex;
    margin-top: 14px;
    padding: 9px 13px;
    border-radius: 12px;
    background: #1EA64A;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 900;
}

.module-link:hover {
    background: #0F7A3D;
}

@media (max-width: 900px) {
    .dashboard-hero h1 {
        font-size: 34px !important;
        line-height: 1.1;
    }

    .market-flow-grid article {
        min-height: auto !important;
    }

    .acnova-side {
        width: 100%;
    }
}

/* ACNOVA PUBLIC CSS READABILITY PATCH */
:root {
  --acnova-light-text: #17231B;
  --acnova-light-muted: #405448;
  --acnova-dark-bg: #07130C;
  --acnova-dark-panel: #102A1A;
  --acnova-dark-panel-2: #0B1D12;
  --acnova-dark-text: #FFFFFF;
  --acnova-dark-muted: rgba(255,255,255,.84);
  --acnova-gold: #D4A017;
}

body.dark,
html[data-theme="dark"] body {
  background: var(--acnova-dark-bg) !important;
  color: var(--acnova-dark-text) !important;
}

.hero,
.hero-section,
.main-hero,
.command-hero,
.dashboard-hero {
  color: var(--acnova-light-text) !important;
}

.hero h1,
.hero-section h1,
.main-hero h1,
.command-hero h1,
.dashboard-hero h1 {
  color: #234B35 !important;
}

.hero p,
.hero span,
.hero-section p,
.hero-section span,
.main-hero p,
.main-hero span,
.command-hero p,
.command-hero span,
.dashboard-hero p,
.dashboard-hero span {
  color: var(--acnova-light-text) !important;
  opacity: 1 !important;
}

body.dark .hero,
body.dark .hero-section,
body.dark .main-hero,
body.dark .command-hero,
body.dark .dashboard-hero,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .main-hero,
html[data-theme="dark"] .command-hero,
html[data-theme="dark"] .dashboard-hero {
  background: var(--acnova-dark-bg) !important;
  color: #FFFFFF !important;
}

body.dark .hero h1,
body.dark .hero-section h1,
body.dark .main-hero h1,
body.dark .command-hero h1,
body.dark .dashboard-hero h1,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero-section h1,
html[data-theme="dark"] .main-hero h1,
html[data-theme="dark"] .command-hero h1,
html[data-theme="dark"] .dashboard-hero h1 {
  color: #FFFFFF !important;
}

body.dark .hero p,
body.dark .hero span,
body.dark .hero-section p,
body.dark .hero-section span,
body.dark .main-hero p,
body.dark .main-hero span,
body.dark .command-hero p,
body.dark .command-hero span,
body.dark .dashboard-hero p,
body.dark .dashboard-hero span,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .hero span,
html[data-theme="dark"] .hero-section p,
html[data-theme="dark"] .hero-section span,
html[data-theme="dark"] .main-hero p,
html[data-theme="dark"] .main-hero span,
html[data-theme="dark"] .command-hero p,
html[data-theme="dark"] .command-hero span,
html[data-theme="dark"] .dashboard-hero p,
html[data-theme="dark"] .dashboard-hero span {
  color: var(--acnova-dark-muted) !important;
  opacity: 1 !important;
}

.card,
.hero-card,
.feature-card,
.content-card,
.page-card,
.public-page-card,
.about-card,
.developer-card,
.market-card,
.marketplace-card,
.auth-card,
.login-card,
.register-card,
.info-card,
.summary-card,
.mock-card,
.stat-card,
.mini-feature,
.hero-feature,
.dashboard-live-card,
.common-data-card {
  background: #FFFFFF !important;
  color: var(--acnova-light-text) !important;
  border-color: rgba(35,75,53,.16) !important;
}

.card h1, .card h2, .card h3,
.hero-card h1, .hero-card h2, .hero-card h3,
.feature-card h1, .feature-card h2, .feature-card h3,
.content-card h1, .content-card h2, .content-card h3,
.page-card h1, .page-card h2, .page-card h3,
.public-page-card h1, .public-page-card h2, .public-page-card h3,
.about-card h1, .about-card h2, .about-card h3,
.developer-card h1, .developer-card h2, .developer-card h3,
.market-card h1, .market-card h2, .market-card h3,
.marketplace-card h1, .marketplace-card h2, .marketplace-card h3,
.auth-card h1, .auth-card h2, .auth-card h3,
.login-card h1, .login-card h2, .login-card h3,
.register-card h1, .register-card h2, .register-card h3,
.mock-card h1, .mock-card h2, .mock-card h3,
.stat-card h1, .stat-card h2, .stat-card h3,
.mini-feature h1, .mini-feature h2, .mini-feature h3,
.hero-feature h1, .hero-feature h2, .hero-feature h3,
.dashboard-live-card strong,
.common-data-card h3 {
  color: #234B35 !important;
  opacity: 1 !important;
}

.card p, .card span, .card li,
.hero-card p, .hero-card span, .hero-card li,
.feature-card p, .feature-card span, .feature-card li,
.content-card p, .content-card span, .content-card li,
.page-card p, .page-card span, .page-card li,
.public-page-card p, .public-page-card span, .public-page-card li,
.about-card p, .about-card span, .about-card li,
.developer-card p, .developer-card span, .developer-card li,
.market-card p, .market-card span, .market-card li,
.marketplace-card p, .marketplace-card span, .marketplace-card li,
.auth-card p, .auth-card span, .auth-card li,
.login-card p, .login-card span, .login-card li,
.register-card p, .register-card span, .register-card li,
.mock-card p, .mock-card span, .mock-card li,
.stat-card p, .stat-card span, .stat-card li,
.mini-feature p, .mini-feature span, .mini-feature li,
.hero-feature p, .hero-feature span, .hero-feature li,
.dashboard-live-card p,
.common-data-card p,
.common-data-card span {
  color: var(--acnova-light-muted) !important;
  opacity: 1 !important;
}

body.dark .card,
body.dark .hero-card,
body.dark .feature-card,
body.dark .content-card,
body.dark .page-card,
body.dark .public-page-card,
body.dark .about-card,
body.dark .developer-card,
body.dark .market-card,
body.dark .marketplace-card,
body.dark .auth-card,
body.dark .login-card,
body.dark .register-card,
body.dark .info-card,
body.dark .summary-card,
body.dark .mock-card,
body.dark .stat-card,
body.dark .mini-feature,
body.dark .hero-feature,
body.dark .dashboard-live-card,
body.dark .common-data-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .public-page-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .developer-card,
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .marketplace-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .register-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .mock-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .mini-feature,
html[data-theme="dark"] .hero-feature,
html[data-theme="dark"] .dashboard-live-card,
html[data-theme="dark"] .common-data-card {
  background: linear-gradient(145deg, var(--acnova-dark-panel), var(--acnova-dark-panel-2)) !important;
  color: #FFFFFF !important;
  border-color: rgba(212,160,23,.28) !important;
}

body.dark .card h1, body.dark .card h2, body.dark .card h3,
body.dark .hero-card h1, body.dark .hero-card h2, body.dark .hero-card h3,
body.dark .feature-card h1, body.dark .feature-card h2, body.dark .feature-card h3,
body.dark .content-card h1, body.dark .content-card h2, body.dark .content-card h3,
body.dark .page-card h1, body.dark .page-card h2, body.dark .page-card h3,
body.dark .public-page-card h1, body.dark .public-page-card h2, body.dark .public-page-card h3,
body.dark .about-card h1, body.dark .about-card h2, body.dark .about-card h3,
body.dark .developer-card h1, body.dark .developer-card h2, body.dark .developer-card h3,
body.dark .market-card h1, body.dark .market-card h2, body.dark .market-card h3,
body.dark .marketplace-card h1, body.dark .marketplace-card h2, body.dark .marketplace-card h3,
body.dark .auth-card h1, body.dark .auth-card h2, body.dark .auth-card h3,
body.dark .login-card h1, body.dark .login-card h2, body.dark .login-card h3,
body.dark .register-card h1, body.dark .register-card h2, body.dark .register-card h3,
body.dark .mock-card h1, body.dark .mock-card h2, body.dark .mock-card h3,
body.dark .stat-card h1, body.dark .stat-card h2, body.dark .stat-card h3,
body.dark .mini-feature h1, body.dark .mini-feature h2, body.dark .mini-feature h3,
body.dark .hero-feature h1, body.dark .hero-feature h2, body.dark .hero-feature h3,
body.dark .dashboard-live-card strong,
body.dark .common-data-card h3,
html[data-theme="dark"] .card h1, html[data-theme="dark"] .card h2, html[data-theme="dark"] .card h3,
html[data-theme="dark"] .hero-card h1, html[data-theme="dark"] .hero-card h2, html[data-theme="dark"] .hero-card h3,
html[data-theme="dark"] .feature-card h1, html[data-theme="dark"] .feature-card h2, html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .content-card h1, html[data-theme="dark"] .content-card h2, html[data-theme="dark"] .content-card h3,
html[data-theme="dark"] .page-card h1, html[data-theme="dark"] .page-card h2, html[data-theme="dark"] .page-card h3,
html[data-theme="dark"] .public-page-card h1, html[data-theme="dark"] .public-page-card h2, html[data-theme="dark"] .public-page-card h3,
html[data-theme="dark"] .about-card h1, html[data-theme="dark"] .about-card h2, html[data-theme="dark"] .about-card h3,
html[data-theme="dark"] .developer-card h1, html[data-theme="dark"] .developer-card h2, html[data-theme="dark"] .developer-card h3,
html[data-theme="dark"] .market-card h1, html[data-theme="dark"] .market-card h2, html[data-theme="dark"] .market-card h3,
html[data-theme="dark"] .marketplace-card h1, html[data-theme="dark"] .marketplace-card h2, html[data-theme="dark"] .marketplace-card h3,
html[data-theme="dark"] .auth-card h1, html[data-theme="dark"] .auth-card h2, html[data-theme="dark"] .auth-card h3,
html[data-theme="dark"] .login-card h1, html[data-theme="dark"] .login-card h2, html[data-theme="dark"] .login-card h3,
html[data-theme="dark"] .register-card h1, html[data-theme="dark"] .register-card h2, html[data-theme="dark"] .register-card h3,
html[data-theme="dark"] .mock-card h1, html[data-theme="dark"] .mock-card h2, html[data-theme="dark"] .mock-card h3,
html[data-theme="dark"] .stat-card h1, html[data-theme="dark"] .stat-card h2, html[data-theme="dark"] .stat-card h3,
html[data-theme="dark"] .mini-feature h1, html[data-theme="dark"] .mini-feature h2, html[data-theme="dark"] .mini-feature h3,
html[data-theme="dark"] .hero-feature h1, html[data-theme="dark"] .hero-feature h2, html[data-theme="dark"] .hero-feature h3,
html[data-theme="dark"] .dashboard-live-card strong,
html[data-theme="dark"] .common-data-card h3 {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

body.dark .card p, body.dark .card span, body.dark .card li,
body.dark .hero-card p, body.dark .hero-card span, body.dark .hero-card li,
body.dark .feature-card p, body.dark .feature-card span, body.dark .feature-card li,
body.dark .content-card p, body.dark .content-card span, body.dark .content-card li,
body.dark .page-card p, body.dark .page-card span, body.dark .page-card li,
body.dark .public-page-card p, body.dark .public-page-card span, body.dark .public-page-card li,
body.dark .about-card p, body.dark .about-card span, body.dark .about-card li,
body.dark .developer-card p, body.dark .developer-card span, body.dark .developer-card li,
body.dark .market-card p, body.dark .market-card span, body.dark .market-card li,
body.dark .marketplace-card p, body.dark .marketplace-card span, body.dark .marketplace-card li,
body.dark .auth-card p, body.dark .auth-card span, body.dark .auth-card li,
body.dark .login-card p, body.dark .login-card span, body.dark .login-card li,
body.dark .register-card p, body.dark .register-card span, body.dark .register-card li,
body.dark .mock-card p, body.dark .mock-card span, body.dark .mock-card li,
body.dark .stat-card p, body.dark .stat-card span, body.dark .stat-card li,
body.dark .mini-feature p, body.dark .mini-feature span, body.dark .mini-feature li,
body.dark .hero-feature p, body.dark .hero-feature span, body.dark .hero-feature li,
body.dark .dashboard-live-card p,
body.dark .common-data-card p,
body.dark .common-data-card span,
html[data-theme="dark"] .card p, html[data-theme="dark"] .card span, html[data-theme="dark"] .card li,
html[data-theme="dark"] .hero-card p, html[data-theme="dark"] .hero-card span, html[data-theme="dark"] .hero-card li,
html[data-theme="dark"] .feature-card p, html[data-theme="dark"] .feature-card span, html[data-theme="dark"] .feature-card li,
html[data-theme="dark"] .content-card p, html[data-theme="dark"] .content-card span, html[data-theme="dark"] .content-card li,
html[data-theme="dark"] .page-card p, html[data-theme="dark"] .page-card span, html[data-theme="dark"] .page-card li,
html[data-theme="dark"] .public-page-card p, html[data-theme="dark"] .public-page-card span, html[data-theme="dark"] .public-page-card li,
html[data-theme="dark"] .about-card p, html[data-theme="dark"] .about-card span, html[data-theme="dark"] .about-card li,
html[data-theme="dark"] .developer-card p, html[data-theme="dark"] .developer-card span, html[data-theme="dark"] .developer-card li,
html[data-theme="dark"] .market-card p, html[data-theme="dark"] .market-card span, html[data-theme="dark"] .market-card li,
html[data-theme="dark"] .marketplace-card p, html[data-theme="dark"] .marketplace-card span, html[data-theme="dark"] .marketplace-card li,
html[data-theme="dark"] .auth-card p, html[data-theme="dark"] .auth-card span, html[data-theme="dark"] .auth-card li,
html[data-theme="dark"] .login-card p, html[data-theme="dark"] .login-card span, html[data-theme="dark"] .login-card li,
html[data-theme="dark"] .register-card p, html[data-theme="dark"] .register-card span, html[data-theme="dark"] .register-card li,
html[data-theme="dark"] .mock-card p, html[data-theme="dark"] .mock-card span, html[data-theme="dark"] .mock-card li,
html[data-theme="dark"] .stat-card p, html[data-theme="dark"] .stat-card span, html[data-theme="dark"] .stat-card li,
html[data-theme="dark"] .mini-feature p, html[data-theme="dark"] .mini-feature span, html[data-theme="dark"] .mini-feature li,
html[data-theme="dark"] .hero-feature p, html[data-theme="dark"] .hero-feature span, html[data-theme="dark"] .hero-feature li,
html[data-theme="dark"] .dashboard-live-card p,
html[data-theme="dark"] .common-data-card p,
html[data-theme="dark"] .common-data-card span {
  color: var(--acnova-dark-muted) !important;
  opacity: 1 !important;
}

.capacity-grid > *,
.metrics-grid > *,
.acnova-capacity-grid > *,
.acnova-metrics-grid > *,
.acnova-role-grid span,
.acnova-metrics-grid span {
  background: #FFFFFF !important;
  color: #163828 !important;
  border: 1px solid var(--acnova-gold) !important;
  border-left-width: 5px !important;
  opacity: 1 !important;
}

.capacity-grid > * *,
.metrics-grid > * *,
.acnova-capacity-grid > * *,
.acnova-metrics-grid > * *,
.acnova-role-grid span *,
.acnova-metrics-grid span * {
  color: #163828 !important;
  opacity: 1 !important;
}

body.dark .capacity-grid > *,
body.dark .metrics-grid > *,
body.dark .acnova-capacity-grid > *,
body.dark .acnova-metrics-grid > *,
body.dark .acnova-role-grid span,
body.dark .acnova-metrics-grid span,
html[data-theme="dark"] .capacity-grid > *,
html[data-theme="dark"] .metrics-grid > *,
html[data-theme="dark"] .acnova-capacity-grid > *,
html[data-theme="dark"] .acnova-metrics-grid > *,
html[data-theme="dark"] .acnova-role-grid span,
html[data-theme="dark"] .acnova-metrics-grid span {
  background: rgba(255,255,255,.10) !important;
  color: #FFFFFF !important;
  border-color: rgba(212,160,23,.56) !important;
}

body.dark .capacity-grid > * *,
body.dark .metrics-grid > * *,
body.dark .acnova-capacity-grid > * *,
body.dark .acnova-metrics-grid > * *,
body.dark .acnova-role-grid span *,
body.dark .acnova-metrics-grid span *,
html[data-theme="dark"] .capacity-grid > * *,
html[data-theme="dark"] .metrics-grid > * *,
html[data-theme="dark"] .acnova-capacity-grid > * *,
html[data-theme="dark"] .acnova-metrics-grid > * *,
html[data-theme="dark"] .acnova-role-grid span *,
html[data-theme="dark"] .acnova-metrics-grid span * {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

/* ACNOVA INDEX + FOOTER GLOBAL PRODUCT PATCH */
body,
main,
section {
  color: #17231B;
}

body.dark,
html[data-theme="dark"] body {
  color: #FFFFFF;
}

/* Index / landing page */
.acnova-landing,
.landing-page,
.home-page,
.index-page,
.hero,
.hero-section,
.main-hero,
.ac-hero,
.command-hero {
  color: #17231B !important;
}

.acnova-landing h1,
.acnova-landing h2,
.acnova-landing h3,
.landing-page h1,
.landing-page h2,
.landing-page h3,
.home-page h1,
.home-page h2,
.home-page h3,
.index-page h1,
.index-page h2,
.index-page h3,
.hero h1,
.hero h2,
.hero h3,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.main-hero h1,
.main-hero h2,
.main-hero h3,
.ac-hero h1,
.ac-hero h2,
.ac-hero h3 {
  color: #234B35 !important;
  opacity: 1 !important;
}

.acnova-landing p,
.acnova-landing span,
.acnova-landing li,
.landing-page p,
.landing-page span,
.landing-page li,
.home-page p,
.home-page span,
.home-page li,
.index-page p,
.index-page span,
.index-page li,
.hero p,
.hero span,
.hero li,
.hero-section p,
.hero-section span,
.hero-section li,
.main-hero p,
.main-hero span,
.main-hero li,
.ac-hero p,
.ac-hero span,
.ac-hero li {
  color: #17231B !important;
  opacity: 1 !important;
}

/* Dark index */
body.dark .acnova-landing,
body.dark .landing-page,
body.dark .home-page,
body.dark .index-page,
body.dark .hero,
body.dark .hero-section,
body.dark .main-hero,
body.dark .ac-hero,
html[data-theme="dark"] .acnova-landing,
html[data-theme="dark"] .landing-page,
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .index-page,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .main-hero,
html[data-theme="dark"] .ac-hero {
  color: #FFFFFF !important;
}

body.dark .acnova-landing h1,
body.dark .acnova-landing h2,
body.dark .acnova-landing h3,
body.dark .landing-page h1,
body.dark .landing-page h2,
body.dark .landing-page h3,
body.dark .home-page h1,
body.dark .home-page h2,
body.dark .home-page h3,
body.dark .index-page h1,
body.dark .index-page h2,
body.dark .index-page h3,
body.dark .hero h1,
body.dark .hero h2,
body.dark .hero h3,
body.dark .hero-section h1,
body.dark .hero-section h2,
body.dark .hero-section h3,
body.dark .main-hero h1,
body.dark .main-hero h2,
body.dark .main-hero h3,
html[data-theme="dark"] .acnova-landing h1,
html[data-theme="dark"] .acnova-landing h2,
html[data-theme="dark"] .acnova-landing h3,
html[data-theme="dark"] .landing-page h1,
html[data-theme="dark"] .landing-page h2,
html[data-theme="dark"] .landing-page h3,
html[data-theme="dark"] .home-page h1,
html[data-theme="dark"] .home-page h2,
html[data-theme="dark"] .home-page h3,
html[data-theme="dark"] .index-page h1,
html[data-theme="dark"] .index-page h2,
html[data-theme="dark"] .index-page h3,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero h2,
html[data-theme="dark"] .hero h3,
html[data-theme="dark"] .hero-section h1,
html[data-theme="dark"] .hero-section h2,
html[data-theme="dark"] .hero-section h3,
html[data-theme="dark"] .main-hero h1,
html[data-theme="dark"] .main-hero h2,
html[data-theme="dark"] .main-hero h3 {
  color: #FFFFFF !important;
}

body.dark .acnova-landing p,
body.dark .acnova-landing span,
body.dark .acnova-landing li,
body.dark .landing-page p,
body.dark .landing-page span,
body.dark .landing-page li,
body.dark .home-page p,
body.dark .home-page span,
body.dark .home-page li,
body.dark .index-page p,
body.dark .index-page span,
body.dark .index-page li,
body.dark .hero p,
body.dark .hero span,
body.dark .hero li,
body.dark .hero-section p,
body.dark .hero-section span,
body.dark .hero-section li,
body.dark .main-hero p,
body.dark .main-hero span,
body.dark .main-hero li,
html[data-theme="dark"] .acnova-landing p,
html[data-theme="dark"] .acnova-landing span,
html[data-theme="dark"] .acnova-landing li,
html[data-theme="dark"] .landing-page p,
html[data-theme="dark"] .landing-page span,
html[data-theme="dark"] .landing-page li,
html[data-theme="dark"] .home-page p,
html[data-theme="dark"] .home-page span,
html[data-theme="dark"] .home-page li,
html[data-theme="dark"] .index-page p,
html[data-theme="dark"] .index-page span,
html[data-theme="dark"] .index-page li,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .hero span,
html[data-theme="dark"] .hero li,
html[data-theme="dark"] .hero-section p,
html[data-theme="dark"] .hero-section span,
html[data-theme="dark"] .hero-section li,
html[data-theme="dark"] .main-hero p,
html[data-theme="dark"] .main-hero span,
html[data-theme="dark"] .main-hero li {
  color: rgba(255,255,255,.88) !important;
  opacity: 1 !important;
}

/* Footer + quick links */
footer,
.site-footer,
.ac-footer,
.footer-link-fix {
  background: linear-gradient(145deg, #102A1A, #061009) !important;
  color: #FFFFFF !important;
  border-top: 3px solid #D4A017 !important;
}

footer *,
.site-footer *,
.ac-footer *,
.footer-link-fix * {
  opacity: 1 !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer strong,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer strong,
.ac-footer h1,
.ac-footer h2,
.ac-footer h3,
.ac-footer h4,
.ac-footer strong,
.footer-link-fix h1,
.footer-link-fix h2,
.footer-link-fix h3,
.footer-link-fix h4,
.footer-link-fix strong,
.footer-title {
  color: #FFFFFF !important;
}

footer p,
footer span,
footer li,
footer small,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer small,
.ac-footer p,
.ac-footer span,
.ac-footer li,
.ac-footer small,
.footer-link-fix p,
.footer-link-fix span,
.footer-link-fix li,
.footer-link-fix small,
.footer-text,
.footer-bottom {
  color: rgba(255,255,255,.86) !important;
}

footer a,
.site-footer a,
.ac-footer a,
.footer-link-fix a,
.footer-col a {
  color: #EAFBF0 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

footer a:hover,
.site-footer a:hover,
.ac-footer a:hover,
.footer-link-fix a:hover,
.footer-col a:hover {
  color: #F2C94C !important;
}

.newsletter input {
  background: rgba(255,255,255,.10) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

.newsletter input::placeholder {
  color: rgba(255,255,255,.65) !important;
}

.newsletter button {
  background: linear-gradient(135deg, #1EA64A, #F2C94C) !important;
  color: #07130C !important;
}

/* ACNOVA INDEX FINAL READABILITY PATCH */

/* Light mode index feature cards */
body:not(.dark) .feature-card,
html:not([data-theme="dark"]) .feature-card,
body:not(.dark) .hero-feature,
html:not([data-theme="dark"]) .hero-feature,
body:not(.dark) .mini-feature,
html:not([data-theme="dark"]) .mini-feature {
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(16,42,26,.10) !important;
}

body:not(.dark) .feature-card h3,
body:not(.dark) .hero-feature h3,
body:not(.dark) .mini-feature h3,
html:not([data-theme="dark"]) .feature-card h3,
html:not([data-theme="dark"]) .hero-feature h3,
html:not([data-theme="dark"]) .mini-feature h3 {
  color: #102A1A !important;
  opacity: 1 !important;
}

body:not(.dark) .feature-card p,
body:not(.dark) .hero-feature p,
body:not(.dark) .mini-feature p,
html:not([data-theme="dark"]) .feature-card p,
html:not([data-theme="dark"]) .hero-feature p,
html:not([data-theme="dark"]) .mini-feature p {
  color: #405448 !important;
  opacity: 1 !important;
}

/* Secondary/View System button in light mode */
body:not(.dark) .btn-secondary,
body:not(.dark) .secondary-btn,
body:not(.dark) .button-secondary,
body:not(.dark) a.secondary,
body:not(.dark) .hero .ac-btn:not(.ac-btn-green),
html:not([data-theme="dark"]) .btn-secondary,
html:not([data-theme="dark"]) .secondary-btn,
html:not([data-theme="dark"]) .button-secondary,
html:not([data-theme="dark"]) a.secondary,
html:not([data-theme="dark"]) .hero .ac-btn:not(.ac-btn-green) {
  background: #FFFFFF !important;
  color: #102A1A !important;
  border: 1px solid rgba(16,42,26,.20) !important;
  text-shadow: none !important;
}

/* Dark mode feature cards on index */
body.dark .feature-card,
body.dark .hero-feature,
body.dark .mini-feature,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .hero-feature,
html[data-theme="dark"] .mini-feature {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.16) !important;
}

body.dark .feature-card h3,
body.dark .hero-feature h3,
body.dark .mini-feature h3,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .hero-feature h3,
html[data-theme="dark"] .mini-feature h3 {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

body.dark .feature-card p,
body.dark .hero-feature p,
body.dark .mini-feature p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .hero-feature p,
html[data-theme="dark"] .mini-feature p {
  color: rgba(255,255,255,.88) !important;
  opacity: 1 !important;
}

/* White "How AcNova works" card must stay dark text even in dark mode */
.hero .mock-card,
.hero-section .mock-card,
.main-hero .mock-card,
.ac-hero .mock-card,
.hero .how-card,
.hero-section .how-card,
.main-hero .how-card,
.ac-hero .how-card,
.hero .workflow-card,
.hero-section .workflow-card,
.main-hero .workflow-card,
.ac-hero .workflow-card {
  background: rgba(255,255,255,.94) !important;
  color: #102A1A !important;
}

.hero .mock-card *,
.hero-section .mock-card *,
.main-hero .mock-card *,
.ac-hero .mock-card *,
.hero .how-card *,
.hero-section .how-card *,
.main-hero .how-card *,
.ac-hero .how-card *,
.hero .workflow-card *,
.hero-section .workflow-card *,
.main-hero .workflow-card *,
.ac-hero .workflow-card * {
  color: #102A1A !important;
  opacity: 1 !important;
}

/* Dashboard preview metric cards readable in dark preview */
.stat-card strong,
.stat-card b,
.stat-card span,
.stat-card p,
.dashboard-live-card strong,
.dashboard-live-card b,
.dashboard-live-card span,
.dashboard-live-card p {
  opacity: 1 !important;
}

body.dark .stat-card strong,
body.dark .stat-card b,
body.dark .dashboard-live-card strong,
body.dark .dashboard-live-card b,
html[data-theme="dark"] .stat-card strong,
html[data-theme="dark"] .stat-card b,
html[data-theme="dark"] .dashboard-live-card strong,
html[data-theme="dark"] .dashboard-live-card b {
  color: #FFFFFF !important;
}

body.dark .stat-card span,
body.dark .stat-card p,
body.dark .dashboard-live-card span,
body.dark .dashboard-live-card p,
html[data-theme="dark"] .stat-card span,
html[data-theme="dark"] .stat-card p,
html[data-theme="dark"] .dashboard-live-card span,
html[data-theme="dark"] .dashboard-live-card p {
  color: rgba(255,255,255,.82) !important;
}

/* Footer quick links remain readable */
.footer-col a,
.footer-col span,
.footer-bottom,
.footer-text {
  opacity: 1 !important;
}

/* ACNOVA INDEX SPECIFIC OVERRIDE PATCH */

/* Landing feature cards */
body:not(.dark) .feature-card h3,
body:not(.dark) .hero-feature h3,
body:not(.dark) .mini-feature h3,
html:not([data-theme="dark"]) .feature-card h3,
html:not([data-theme="dark"]) .hero-feature h3,
html:not([data-theme="dark"]) .mini-feature h3 {
  color: #102A1A !important;
  opacity: 1 !important;
}

body:not(.dark) .feature-card p,
body:not(.dark) .hero-feature p,
body:not(.dark) .mini-feature p,
html:not([data-theme="dark"]) .feature-card p,
html:not([data-theme="dark"]) .hero-feature p,
html:not([data-theme="dark"]) .mini-feature p {
  color: #30443A !important;
  opacity: 1 !important;
}

/* Dark mode landing cards */
body.dark .feature-card h3,
body.dark .hero-feature h3,
body.dark .mini-feature h3,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .hero-feature h3,
html[data-theme="dark"] .mini-feature h3 {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

body.dark .feature-card p,
body.dark .hero-feature p,
body.dark .mini-feature p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .hero-feature p,
html[data-theme="dark"] .mini-feature p {
  color: rgba(255,255,255,.9) !important;
  opacity: 1 !important;
}

/* White workflow/how-it-works card must always use dark readable text */
.mock-card,
.how-card,
.workflow-card,
.system-card,
.hero-copy-card {
  background: rgba(255,255,255,.96) !important;
  color: #102A1A !important;
}

.mock-card *,
.how-card *,
.workflow-card *,
.system-card *,
.hero-copy-card * {
  color: #102A1A !important;
  opacity: 1 !important;
}

/* Dashboard preview tiles inside hero */
.stat-card,
.dashboard-live-card {
  color: #FFFFFF !important;
}

.stat-card h3,
.stat-card strong,
.stat-card b,
.dashboard-live-card h3,
.dashboard-live-card strong,
.dashboard-live-card b {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

.stat-card p,
.stat-card span,
.dashboard-live-card p,
.dashboard-live-card span {
  color: rgba(255,255,255,.82) !important;
  opacity: 1 !important;
}

/* Light secondary button */
body:not(.dark) .hero a:not(.ac-btn-green),
body:not(.dark) .hero-section a:not(.ac-btn-green),
body:not(.dark) .main-hero a:not(.ac-btn-green),
html:not([data-theme="dark"]) .hero a:not(.ac-btn-green),
html:not([data-theme="dark"]) .hero-section a:not(.ac-btn-green),
html:not([data-theme="dark"]) .main-hero a:not(.ac-btn-green) {
  color: #102A1A !important;
  text-shadow: none !important;
}
