:root {
    --ea-bg: #f6f8fb;
    --ea-bg-strong: #edf2f7;
    --ea-surface: #ffffff;
    --ea-surface-raised: #ffffff;
    --ea-surface-soft: #f9fbfd;
    --ea-surface-muted: #f1f5f9;
    --ea-border: #dde5ee;
    --ea-border-strong: #c7d3df;
    --ea-text: #111827;
    --ea-text-soft: #42526a;
    --ea-muted: #728096;
    --ea-faint: #94a3b8;
    --ea-primary: var(--app-accent, #dc2626);
    --ea-primary-hover: var(--app-accent-hover, #b91c1c);
    --ea-primary-light: var(--app-accent-light, #fca5a5);
    --ea-primary-soft: var(--app-accent-soft, #fef2f2);
    --ea-primary-softer: var(--app-accent-softer, #fff7f7);
    --ea-primary-ring: var(--app-accent-ring, rgba(220, 38, 38, .24));
    --ea-primary-shadow: var(--app-accent-shadow, rgba(220, 38, 38, .20));
    --ea-danger: #dc2626;
    --ea-danger-soft: #fff1f2;
    --ea-radius-xs: 6px;
    --ea-radius: 8px;
    --ea-radius-lg: 10px;
    --ea-shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 8px rgba(15, 23, 42, .05);
    --ea-shadow-2: 0 10px 30px rgba(15, 23, 42, .08);
    --ea-shadow-3: 0 20px 56px rgba(15, 23, 42, .12);
    --ea-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-active-theme="enterprise-android"],
html[data-active-theme="enterprise-android"].dark {
    color-scheme: light;
    background: var(--ea-bg) !important;
    scroll-behavior: smooth;
}

html[data-active-theme="enterprise-android"] *,
html[data-active-theme="enterprise-android"] *::before,
html[data-active-theme="enterprise-android"] *::after {
    letter-spacing: 0 !important;
}

html[data-active-theme="enterprise-android"] body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(246, 248, 251, .92) 420px),
        var(--ea-bg) !important;
    color: var(--ea-text) !important;
    font-family: var(--ea-font) !important;
    text-rendering: geometricPrecision;
}

html[data-active-theme="enterprise-android"] ::selection {
    background: rgba(var(--app-accent-rgb, 220, 38, 38), .18);
}

html[data-active-theme="enterprise-android"] a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html[data-active-theme="enterprise-android"] img,
html[data-active-theme="enterprise-android"] svg,
html[data-active-theme="enterprise-android"] canvas,
html[data-active-theme="enterprise-android"] video {
    max-width: 100%;
}

/* Geometry and surfaces */
html[data-active-theme="enterprise-android"] .rounded-lg,
html[data-active-theme="enterprise-android"] .rounded-xl,
html[data-active-theme="enterprise-android"] .rounded-2xl,
html[data-active-theme="enterprise-android"] [class*="rounded-["],
html[data-active-theme="enterprise-android"] .card,
html[data-active-theme="enterprise-android"] .stat-card,
html[data-active-theme="enterprise-android"] .glass-card,
html[data-active-theme="enterprise-android"] .glass-panel,
html[data-active-theme="enterprise-android"] .table-container {
    border-radius: var(--ea-radius) !important;
}

html[data-active-theme="enterprise-android"] .card,
html[data-active-theme="enterprise-android"] .stat-card,
html[data-active-theme="enterprise-android"] .glass-card,
html[data-active-theme="enterprise-android"] .glass-panel,
html[data-active-theme="enterprise-android"] .table-container,
html[data-active-theme="enterprise-android"] [class*="bg-white"][class*="border"][class*="rounded"],
html[data-active-theme="enterprise-android"] [class*="dark:bg-dark-surface"][class*="border"],
html[data-active-theme="enterprise-android"] [class*="dark:bg-slate-800"][class*="border"] {
    background: var(--ea-surface) !important;
    border-color: var(--ea-border) !important;
    box-shadow: var(--ea-shadow-1) !important;
}

html[data-active-theme="enterprise-android"] .shadow-sm,
html[data-active-theme="enterprise-android"] .shadow,
html[data-active-theme="enterprise-android"] .shadow-md,
html[data-active-theme="enterprise-android"] .shadow-lg,
html[data-active-theme="enterprise-android"] .shadow-xl,
html[data-active-theme="enterprise-android"] .shadow-2xl {
    box-shadow: var(--ea-shadow-1) !important;
}

html[data-active-theme="enterprise-android"] .hover\:shadow-md:hover,
html[data-active-theme="enterprise-android"] .hover\:shadow-lg:hover,
html[data-active-theme="enterprise-android"] .group:hover .group-hover\:shadow-lg {
    box-shadow: var(--ea-shadow-2) !important;
}

html[data-active-theme="enterprise-android"] .bg-slate-50,
html[data-active-theme="enterprise-android"] .bg-gray-50,
html[data-active-theme="enterprise-android"] .dark\:bg-dark-bg,
html[data-active-theme="enterprise-android"] .dark\:bg-slate-900,
html[data-active-theme="enterprise-android"] .dark\:bg-slate-950 {
    background: var(--ea-bg) !important;
}

html[data-active-theme="enterprise-android"] .bg-slate-100,
html[data-active-theme="enterprise-android"] .bg-gray-100,
html[data-active-theme="enterprise-android"] .dark\:bg-slate-800,
html[data-active-theme="enterprise-android"] .dark\:bg-slate-700 {
    background: var(--ea-surface-soft) !important;
}

html[data-active-theme="enterprise-android"] .text-slate-950,
html[data-active-theme="enterprise-android"] .text-slate-900,
html[data-active-theme="enterprise-android"] .text-gray-900,
html[data-active-theme="enterprise-android"] .dark\:text-white,
html[data-active-theme="enterprise-android"] .dark\:text-slate-100,
html[data-active-theme="enterprise-android"] .dark\:text-slate-200 {
    color: var(--ea-text) !important;
}

html[data-active-theme="enterprise-android"] .text-slate-700,
html[data-active-theme="enterprise-android"] .text-slate-600,
html[data-active-theme="enterprise-android"] .text-gray-700,
html[data-active-theme="enterprise-android"] .dark\:text-slate-300 {
    color: var(--ea-text-soft) !important;
}

html[data-active-theme="enterprise-android"] .text-slate-500,
html[data-active-theme="enterprise-android"] .text-slate-400,
html[data-active-theme="enterprise-android"] .text-gray-500,
html[data-active-theme="enterprise-android"] .text-gray-400,
html[data-active-theme="enterprise-android"] .dark\:text-slate-400,
html[data-active-theme="enterprise-android"] .dark\:text-slate-500 {
    color: var(--ea-muted) !important;
}

html[data-active-theme="enterprise-android"] .border-slate-100,
html[data-active-theme="enterprise-android"] .border-slate-200,
html[data-active-theme="enterprise-android"] .border-slate-300,
html[data-active-theme="enterprise-android"] .border-gray-100,
html[data-active-theme="enterprise-android"] .border-gray-200,
html[data-active-theme="enterprise-android"] .dark\:border-dark-border,
html[data-active-theme="enterprise-android"] .dark\:border-slate-800,
html[data-active-theme="enterprise-android"] .dark\:border-slate-700 {
    border-color: var(--ea-border) !important;
}

/* Typography */
html[data-active-theme="enterprise-android"] .page-title,
html[data-active-theme="enterprise-android"] h1,
html[data-active-theme="enterprise-android"] h2,
html[data-active-theme="enterprise-android"] h3 {
    color: var(--ea-text) !important;
    font-weight: 850 !important;
}

html[data-active-theme="enterprise-android"] .page-subtitle,
html[data-active-theme="enterprise-android"] p,
html[data-active-theme="enterprise-android"] small {
    letter-spacing: 0 !important;
}

html[data-active-theme="enterprise-android"] .section-title,
html[data-active-theme="enterprise-android"] .form-label,
html[data-active-theme="enterprise-android"] .table th,
html[data-active-theme="enterprise-android"] [class*="uppercase"] {
    letter-spacing: .02em !important;
}

/* Buttons and actions */
html[data-active-theme="enterprise-android"] .btn,
html[data-active-theme="enterprise-android"] button,
html[data-active-theme="enterprise-android"] input[type="button"],
html[data-active-theme="enterprise-android"] input[type="submit"],
html[data-active-theme="enterprise-android"] .ea-primary-action,
html[data-active-theme="enterprise-android"] .ea-secondary-action,
html[data-active-theme="enterprise-android"] .ea-icon-action,
html[data-active-theme="enterprise-android"] .cart-btn,
html[data-active-theme="enterprise-android"] .submit-btn,
html[data-active-theme="enterprise-android"] .back-btn,
html[data-active-theme="enterprise-android"] .qty-btn,
html[data-active-theme="enterprise-android"] .cat-btn {
    border-radius: var(--ea-radius) !important;
    font-weight: 760 !important;
    min-height: 38px;
    -webkit-tap-highlight-color: transparent;
}

html[data-active-theme="enterprise-android"] .btn-primary,
html[data-active-theme="enterprise-android"] .btn-success,
html[data-active-theme="enterprise-android"] .ea-primary-action,
html[data-active-theme="enterprise-android"] .cart-btn,
html[data-active-theme="enterprise-android"] .submit-btn,
html[data-active-theme="enterprise-android"] .back-btn,
html[data-active-theme="enterprise-android"] .qty-btn.add,
html[data-active-theme="enterprise-android"] [class*="bg-primary-600"],
html[data-active-theme="enterprise-android"] [class*="bg-green-600"],
html[data-active-theme="enterprise-android"] [class*="bg-emerald-600"],
html[data-active-theme="enterprise-android"] [class*="bg-blue-600"],
html[data-active-theme="enterprise-android"] [class*="bg-indigo-600"],
html[data-active-theme="enterprise-android"] [class*="bg-cyan-600"] {
    background: linear-gradient(135deg, var(--ea-primary), var(--ea-primary-hover)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px var(--ea-primary-shadow) !important;
}

html[data-active-theme="enterprise-android"] .btn-primary:hover,
html[data-active-theme="enterprise-android"] .btn-success:hover,
html[data-active-theme="enterprise-android"] .ea-primary-action:hover,
html[data-active-theme="enterprise-android"] .cart-btn:hover,
html[data-active-theme="enterprise-android"] .submit-btn:hover,
html[data-active-theme="enterprise-android"] .back-btn:hover,
html[data-active-theme="enterprise-android"] .qty-btn.add:hover {
    background: var(--ea-primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

html[data-active-theme="enterprise-android"] .btn-secondary,
html[data-active-theme="enterprise-android"] .ea-secondary-action,
html[data-active-theme="enterprise-android"] .receipt-btn,
html[data-active-theme="enterprise-android"] button[class*="bg-white"],
html[data-active-theme="enterprise-android"] a[class*="bg-white"] {
    background: var(--ea-surface) !important;
    border: 1px solid var(--ea-border-strong) !important;
    color: var(--ea-text) !important;
    box-shadow: var(--ea-shadow-1) !important;
}

html[data-active-theme="enterprise-android"] .btn-secondary:hover,
html[data-active-theme="enterprise-android"] .ea-secondary-action:hover,
html[data-active-theme="enterprise-android"] .receipt-btn:hover {
    background: var(--ea-surface-soft) !important;
    border-color: var(--ea-primary-ring) !important;
    color: var(--ea-primary) !important;
}

html[data-active-theme="enterprise-android"] .btn-danger,
html[data-active-theme="enterprise-android"] [class*="bg-red-600"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, .18) !important;
}

/* Forms */
html[data-active-theme="enterprise-android"] input,
html[data-active-theme="enterprise-android"] select,
html[data-active-theme="enterprise-android"] textarea,
html[data-active-theme="enterprise-android"] .form-input,
html[data-active-theme="enterprise-android"] .form-select,
html[data-active-theme="enterprise-android"] .form-textarea,
html[data-active-theme="enterprise-android"] .form-multiselect {
    background: #ffffff !important;
    border: 1px solid var(--ea-border-strong) !important;
    border-radius: var(--ea-radius) !important;
    color: var(--ea-text) !important;
    box-shadow: none !important;
}

html[data-active-theme="enterprise-android"] input::placeholder,
html[data-active-theme="enterprise-android"] textarea::placeholder {
    color: var(--ea-faint) !important;
}

html[data-active-theme="enterprise-android"] input:focus,
html[data-active-theme="enterprise-android"] select:focus,
html[data-active-theme="enterprise-android"] textarea:focus,
html[data-active-theme="enterprise-android"] .form-input:focus,
html[data-active-theme="enterprise-android"] .form-select:focus,
html[data-active-theme="enterprise-android"] .form-textarea:focus {
    border-color: var(--ea-primary) !important;
    box-shadow: 0 0 0 3px var(--ea-primary-ring) !important;
    outline: none !important;
}

html[data-active-theme="enterprise-android"] input[type="checkbox"]:not(.sr-only),
html[data-active-theme="enterprise-android"] input[type="radio"]:not(.sr-only) {
    accent-color: var(--ea-primary);
}

html[data-active-theme="enterprise-android"] input[type="color"] {
    padding: 3px !important;
    min-height: 40px;
}

/* Badges, statuses, notices */
html[data-active-theme="enterprise-android"] .badge,
html[data-active-theme="enterprise-android"] [class*="rounded-full"][class*="text-xs"] {
    border-radius: 999px !important;
    font-weight: 780 !important;
}

html[data-active-theme="enterprise-android"] .badge-success,
html[data-active-theme="enterprise-android"] .badge-info,
html[data-active-theme="enterprise-android"] .badge-warning,
html[data-active-theme="enterprise-android"] .badge-purple,
html[data-active-theme="enterprise-android"] .level-bronze,
html[data-active-theme="enterprise-android"] .level-gold,
html[data-active-theme="enterprise-android"] .level-platinum,
html[data-active-theme="enterprise-android"] .level-elite,
html[data-active-theme="enterprise-android"] [class*="bg-green-50"],
html[data-active-theme="enterprise-android"] [class*="bg-emerald-50"],
html[data-active-theme="enterprise-android"] [class*="bg-blue-50"],
html[data-active-theme="enterprise-android"] [class*="bg-sky-50"],
html[data-active-theme="enterprise-android"] [class*="bg-indigo-50"],
html[data-active-theme="enterprise-android"] [class*="bg-purple-50"] {
    background: var(--ea-primary-soft) !important;
    border-color: var(--ea-primary-ring) !important;
    color: var(--ea-primary) !important;
}

html[data-active-theme="enterprise-android"] [class*="bg-amber-50"],
html[data-active-theme="enterprise-android"] [class*="bg-yellow-50"] {
    background: color-mix(in srgb, var(--ea-primary) 8%, white) !important;
    border-color: var(--ea-primary-ring) !important;
    color: var(--ea-primary) !important;
}

html[data-active-theme="enterprise-android"] [class*="bg-red-50"] {
    background: var(--ea-danger-soft) !important;
    border-color: rgba(220, 38, 38, .18) !important;
    color: #b91c1c !important;
}

html[data-active-theme="enterprise-android"] .health-ok,
html[data-active-theme="enterprise-android"] .health-warning,
html[data-active-theme="enterprise-android"] [class*="bg-emerald-500"],
html[data-active-theme="enterprise-android"] [class*="bg-green-500"],
html[data-active-theme="enterprise-android"] [class*="bg-amber-500"],
html[data-active-theme="enterprise-android"] [class*="bg-blue-500"],
html[data-active-theme="enterprise-android"] [class*="bg-indigo-500"] {
    background-color: var(--ea-primary) !important;
}

/* Tables */
html[data-active-theme="enterprise-android"] .table-container {
    overflow: auto;
}

html[data-active-theme="enterprise-android"] .table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

html[data-active-theme="enterprise-android"] .table thead,
html[data-active-theme="enterprise-android"] table thead tr {
    background: var(--ea-surface-soft) !important;
}

html[data-active-theme="enterprise-android"] .table th,
html[data-active-theme="enterprise-android"] table th {
    color: var(--ea-muted) !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}

html[data-active-theme="enterprise-android"] .table td,
html[data-active-theme="enterprise-android"] table td {
    color: var(--ea-text-soft) !important;
    border-color: var(--ea-border) !important;
}

html[data-active-theme="enterprise-android"] .table tbody tr:hover,
html[data-active-theme="enterprise-android"] table tbody tr:hover {
    background: var(--ea-primary-softer) !important;
}

/* Admin shell */
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside {
    background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
    border-right: 1px solid var(--ea-border) !important;
    box-shadow: 8px 0 32px rgba(15, 23, 42, .05) !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside > div:first-child,
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside > div:last-child {
    background: rgba(255, 255, 255, .94) !important;
    border-color: var(--ea-border) !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside .text-white,
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside .text-slate-200 {
    color: var(--ea-text) !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside .text-slate-400,
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside .text-slate-500,
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside .text-slate-600 {
    color: var(--ea-muted) !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside nav button {
    color: var(--ea-muted) !important;
    min-height: 34px;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside nav a {
    min-height: 42px;
    color: var(--ea-text-soft) !important;
    border: 1px solid transparent !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside nav a:hover,
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside nav a[class*="bg-primary"] {
    background: var(--ea-primary-soft) !important;
    border-color: var(--ea-primary-ring) !important;
    color: var(--ea-primary) !important;
    box-shadow: none !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > aside nav svg,
html[data-active-theme="enterprise-android"] body > .flex.h-full > aside a svg {
    color: currentColor !important;
    stroke: currentColor !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > div.flex-1 > header {
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: blur(16px) saturate(1.1);
    border-bottom: 1px solid var(--ea-border) !important;
    box-shadow: 0 1px 14px rgba(15, 23, 42, .04) !important;
}

html[data-active-theme="enterprise-android"] body > .flex.h-full > div.flex-1 > main {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(246, 248, 251, 0) 260px),
        var(--ea-bg) !important;
}

html[data-active-theme="enterprise-android"] .page-header {
    align-items: flex-end !important;
    gap: 1rem !important;
}

/* App layout and auth screens */
html[data-active-theme="enterprise-android"] body > .min-h-screen > nav {
    background: rgba(255, 255, 255, .92) !important;
    border-color: var(--ea-border) !important;
    box-shadow: 0 1px 14px rgba(15, 23, 42, .04) !important;
}

html[data-active-theme="enterprise-android"] body > .min-h-screen > main {
    background: var(--ea-bg) !important;
}

html[data-active-theme="enterprise-android"] body > div.min-h-screen.flex.flex-col.md\:flex-row > div:first-child {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .96), rgba(69, 10, 10, .92)),
        var(--ea-text) !important;
}

html[data-active-theme="enterprise-android"] body > div.min-h-screen.flex.flex-col.md\:flex-row > div:last-child {
    background: var(--ea-surface) !important;
}

html[data-active-theme="enterprise-android"] body > div.min-h-screen.flex.items-center.justify-center {
    background:
        radial-gradient(circle at top left, var(--ea-primary-soft), transparent 38%),
        var(--ea-bg) !important;
}

html[data-active-theme="enterprise-android"] .bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px) !important;
}

/* Dashboard, charts, and metric panels */
html[data-active-theme="enterprise-android"] [class*="from-primary"],
html[data-active-theme="enterprise-android"] [class*="from-green"],
html[data-active-theme="enterprise-android"] [class*="from-emerald"],
html[data-active-theme="enterprise-android"] [class*="from-blue"],
html[data-active-theme="enterprise-android"] [class*="from-indigo"],
html[data-active-theme="enterprise-android"] [class*="from-purple"],
html[data-active-theme="enterprise-android"] [class*="from-cyan"] {
    --tw-gradient-from: var(--ea-primary-hover) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(var(--app-accent-rgb, 220, 38, 38), 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html[data-active-theme="enterprise-android"] [class*="via-primary"],
html[data-active-theme="enterprise-android"] [class*="via-green"],
html[data-active-theme="enterprise-android"] [class*="via-emerald"],
html[data-active-theme="enterprise-android"] [class*="via-blue"],
html[data-active-theme="enterprise-android"] [class*="via-indigo"],
html[data-active-theme="enterprise-android"] [class*="via-purple"] {
    --tw-gradient-via: var(--ea-primary) var(--tw-gradient-via-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important;
}

html[data-active-theme="enterprise-android"] [class*="to-primary"],
html[data-active-theme="enterprise-android"] [class*="to-green"],
html[data-active-theme="enterprise-android"] [class*="to-emerald"],
html[data-active-theme="enterprise-android"] [class*="to-blue"],
html[data-active-theme="enterprise-android"] [class*="to-indigo"],
html[data-active-theme="enterprise-android"] [class*="to-purple"],
html[data-active-theme="enterprise-android"] [class*="to-cyan"] {
    --tw-gradient-to: var(--ea-primary-light) var(--tw-gradient-to-position) !important;
}

html[data-active-theme="enterprise-android"] .plugin-store-dark-card,
html[data-active-theme="enterprise-android"] .plugin-installed-modal,
html[data-active-theme="enterprise-android"] [class*="from-slate-950"][class*="via-primary"] {
    background: linear-gradient(135deg, #111827, #450a0a) !important;
    color: #ffffff !important;
}

html[data-active-theme="enterprise-android"] .plugin-store-dark-card h1,
html[data-active-theme="enterprise-android"] .plugin-store-dark-card h2,
html[data-active-theme="enterprise-android"] .plugin-store-dark-card h3,
html[data-active-theme="enterprise-android"] .plugin-installed-modal h1,
html[data-active-theme="enterprise-android"] .plugin-installed-modal h2,
html[data-active-theme="enterprise-android"] .plugin-installed-modal .text-white {
    color: #ffffff !important;
}

/* POS and kitchen surfaces */
html[data-active-theme="enterprise-android"] [data-order-id],
html[data-active-theme="enterprise-android"] .order-card,
html[data-active-theme="enterprise-android"] .kitchen-card,
html[data-active-theme="enterprise-android"] .item-card {
    border-radius: var(--ea-radius) !important;
}

html[data-active-theme="enterprise-android"] .kds-board,
html[data-active-theme="enterprise-android"] .kds-panel {
    background: var(--ea-bg) !important;
}

html[data-active-theme="enterprise-android"] .rounded-t-lg.bg-gradient-to-br,
html[data-active-theme="enterprise-android"] [class*="from-blue-950"][class*="to-sky"] {
    background: linear-gradient(135deg, #111827, var(--ea-primary-hover)) !important;
}

/* QR guest ordering */
html[data-active-theme="enterprise-android"] .qr-header {
    background: linear-gradient(135deg, #ffffff, var(--ea-primary-soft)) !important;
    color: var(--ea-text) !important;
    border-bottom: 1px solid var(--ea-border) !important;
    box-shadow: 0 1px 18px rgba(15, 23, 42, .07) !important;
}

html[data-active-theme="enterprise-android"] .qr-header h1,
html[data-active-theme="enterprise-android"] .qr-header p {
    color: var(--ea-text) !important;
}

html[data-active-theme="enterprise-android"] .qr-brand,
html[data-active-theme="enterprise-android"] .qr-badge,
html[data-active-theme="enterprise-android"] .ea-kicker,
html[data-active-theme="enterprise-android"] .ea-guest-context,
html[data-active-theme="enterprise-android"] .cat-btn.active,
html[data-active-theme="enterprise-android"] .cat-btn:hover {
    background: var(--ea-primary-soft) !important;
    border-color: var(--ea-primary-ring) !important;
    color: var(--ea-primary) !important;
}

html[data-active-theme="enterprise-android"] .cat-bar {
    background: rgba(255, 255, 255, .92) !important;
    border-color: var(--ea-border) !important;
    backdrop-filter: blur(14px);
}

html[data-active-theme="enterprise-android"] .cat-btn {
    background: var(--ea-surface) !important;
    border-color: var(--ea-border) !important;
    color: var(--ea-text-soft) !important;
}

html[data-active-theme="enterprise-android"] .cat-btn.active,
html[data-active-theme="enterprise-android"] .cat-btn:hover {
    background: var(--ea-primary) !important;
    border-color: var(--ea-primary) !important;
    color: #ffffff !important;
}

html[data-active-theme="enterprise-android"] .menu-section,
html[data-active-theme="enterprise-android"] .cat-group-items {
    gap: 1rem;
}

html[data-active-theme="enterprise-android"] .item-card,
html[data-active-theme="enterprise-android"] .cart-item,
html[data-active-theme="enterprise-android"] .items-list,
html[data-active-theme="enterprise-android"] .total-row,
html[data-active-theme="enterprise-android"] .modal,
html[data-active-theme="enterprise-android"] .card.status-pending,
html[data-active-theme="enterprise-android"] .card.status-confirmed,
html[data-active-theme="enterprise-android"] .card.status-rejected,
html[data-active-theme="enterprise-android"] .card.status-expired {
    background: var(--ea-surface) !important;
    border-color: var(--ea-border) !important;
    box-shadow: var(--ea-shadow-1) !important;
}

html[data-active-theme="enterprise-android"] .item-card:hover {
    border-color: var(--ea-primary-ring) !important;
    box-shadow: var(--ea-shadow-2) !important;
}

html[data-active-theme="enterprise-android"] .item-icon {
    background: var(--ea-surface-muted) !important;
    border: 1px solid var(--ea-border);
}

html[data-active-theme="enterprise-android"] .item-price,
html[data-active-theme="enterprise-android"] .cart-item-price,
html[data-active-theme="enterprise-android"] .order-item-price,
html[data-active-theme="enterprise-android"] .status-confirmed .status-title {
    color: var(--ea-primary) !important;
}

html[data-active-theme="enterprise-android"] .cart-bar {
    background: rgba(255, 255, 255, .94) !important;
    border-top: 1px solid var(--ea-border) !important;
    box-shadow: 0 -10px 32px rgba(15, 23, 42, .08) !important;
}

html[data-active-theme="enterprise-android"] .overlay {
    background: rgba(15, 23, 42, .42) !important;
    backdrop-filter: blur(8px);
}

/* Public portal and storefront */
html[data-active-theme="enterprise-android"] .ea-public-shell,
html[data-active-theme="enterprise-android"] .ea-storefront,
html[data-active-theme="enterprise-android"] body#top {
    background:
        linear-gradient(180deg, #ffffff, var(--ea-bg) 48vh),
        var(--ea-bg) !important;
}

html[data-active-theme="enterprise-android"] .ea-public-topbar,
html[data-active-theme="enterprise-android"] .ea-storefront-bar,
html[data-active-theme="enterprise-android"] .topbar,
html[data-active-theme="enterprise-android"] .app-header,
html[data-active-theme="enterprise-android"] .bottom-nav {
    background: rgba(255, 255, 255, .94) !important;
    border-color: var(--ea-border) !important;
    box-shadow: 0 1px 18px rgba(15, 23, 42, .06) !important;
    backdrop-filter: blur(18px);
}

html[data-active-theme="enterprise-android"] .ea-public-brand,
html[data-active-theme="enterprise-android"] .ea-storefront-brand,
html[data-active-theme="enterprise-android"] .topbar-brand,
html[data-active-theme="enterprise-android"] .brand-text h1 {
    color: var(--ea-text) !important;
}

html[data-active-theme="enterprise-android"] .ea-public-hero,
html[data-active-theme="enterprise-android"] .ea-storefront-hero,
html[data-active-theme="enterprise-android"] .hero-wrapper,
html[data-active-theme="enterprise-android"] .hero {
    border-radius: var(--ea-radius-lg) !important;
    box-shadow: var(--ea-shadow-2) !important;
}

html[data-active-theme="enterprise-android"] .ea-public-hero,
html[data-active-theme="enterprise-android"] .ea-storefront-hero-inner {
    background:
        linear-gradient(135deg, #ffffff, var(--ea-primary-softer)),
        var(--ea-surface) !important;
    border: 1px solid var(--ea-border) !important;
}

html[data-active-theme="enterprise-android"] .ea-public-copy h1,
html[data-active-theme="enterprise-android"] .ea-storefront-hero-copy h1,
html[data-active-theme="enterprise-android"] .hero h1 {
    color: var(--ea-text) !important;
}

html[data-active-theme="enterprise-android"] .ea-public-copy p,
html[data-active-theme="enterprise-android"] .ea-storefront-hero-copy p,
html[data-active-theme="enterprise-android"] .hero p {
    color: var(--ea-text-soft) !important;
}

html[data-active-theme="enterprise-android"] .widget-card,
html[data-active-theme="enterprise-android"] .w-card,
html[data-active-theme="enterprise-android"] .quick-card,
html[data-active-theme="enterprise-android"] .ea-storefront-section,
html[data-active-theme="enterprise-android"] .ea-empty-panel,
html[data-active-theme="enterprise-android"] .ea-public-preview,
html[data-active-theme="enterprise-android"] .ea-storefront-visual,
html[data-active-theme="enterprise-android"] .ea-phone-shell {
    background: var(--ea-surface) !important;
    border: 1px solid var(--ea-border) !important;
    border-radius: var(--ea-radius-lg) !important;
    box-shadow: var(--ea-shadow-1) !important;
}

html[data-active-theme="enterprise-android"] .widget-card:hover,
html[data-active-theme="enterprise-android"] .quick-card:hover {
    border-color: var(--ea-primary-ring) !important;
    box-shadow: var(--ea-shadow-2) !important;
}

html[data-active-theme="enterprise-android"] .widget-icon,
html[data-active-theme="enterprise-android"] .w-card-icon,
html[data-active-theme="enterprise-android"] .quick-icon,
html[data-active-theme="enterprise-android"] .info-icon,
html[data-active-theme="enterprise-android"] .icon-btn,
html[data-active-theme="enterprise-android"] .ea-icon-action,
html[data-active-theme="enterprise-android"] .ea-storefront-mark {
    background: var(--ea-primary-soft) !important;
    color: var(--ea-primary) !important;
    border-color: var(--ea-primary-ring) !important;
}

html[data-active-theme="enterprise-android"] .album-thumb.active,
html[data-active-theme="enterprise-android"] .bottom-nav-item.active {
    color: var(--ea-primary) !important;
    border-color: var(--ea-primary) !important;
}

html[data-active-theme="enterprise-android"] .gp-ticker strong,
html[data-active-theme="enterprise-android"] .gp-dots button.is-active {
    background: var(--ea-primary) !important;
}

/* Ripple from theme.js */
html[data-active-theme="enterprise-android"] .ea-ripple-host {
    position: relative;
    overflow: hidden;
}

html[data-active-theme="enterprise-android"] .ea-ripple {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    transform: scale(0);
    background: rgba(255, 255, 255, .42);
    animation: ea-ripple .52s ease-out;
}

html[data-active-theme="enterprise-android"] .ea-ripple.dark {
    background: rgba(var(--app-accent-rgb, 220, 38, 38), .16);
}

@keyframes ea-ripple {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Responsive hardening */
@media (max-width: 1024px) {
    html[data-active-theme="enterprise-android"] body > .flex.h-full > aside {
        box-shadow: 16px 0 48px rgba(15, 23, 42, .14) !important;
    }

    html[data-active-theme="enterprise-android"] .page-header {
        align-items: flex-start !important;
    }
}

@media (max-width: 768px) {
    html[data-active-theme="enterprise-android"] body > .flex.h-full > div.flex-1 > main {
        padding: 1rem !important;
    }

    html[data-active-theme="enterprise-android"] .card,
    html[data-active-theme="enterprise-android"] .stat-card,
    html[data-active-theme="enterprise-android"] .glass-card,
    html[data-active-theme="enterprise-android"] .glass-panel,
    html[data-active-theme="enterprise-android"] .table-container,
    html[data-active-theme="enterprise-android"] .widget-card,
    html[data-active-theme="enterprise-android"] .w-card {
        border-radius: var(--ea-radius) !important;
    }

    html[data-active-theme="enterprise-android"] .btn,
    html[data-active-theme="enterprise-android"] button,
    html[data-active-theme="enterprise-android"] .ea-primary-action,
    html[data-active-theme="enterprise-android"] .ea-secondary-action {
        min-height: 40px;
    }

    html[data-active-theme="enterprise-android"] .ea-public-hero,
    html[data-active-theme="enterprise-android"] .ea-storefront-hero-inner {
        padding: 1rem !important;
    }
}

@media (max-width: 520px) {
    html[data-active-theme="enterprise-android"] h1,
    html[data-active-theme="enterprise-android"] .page-title {
        font-size: clamp(1.35rem, 8vw, 1.875rem) !important;
        line-height: 1.12 !important;
    }

    html[data-active-theme="enterprise-android"] .grid {
        min-width: 0;
    }

    html[data-active-theme="enterprise-android"] .table-container {
        border-radius: var(--ea-radius) !important;
    }
}
