/* ==============================================================================
   Plataforma Phygital Google Avaliações — Nolei Creative
   Design System & Estilos CSS Globais
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
    --primary: #0055FF;
    --primary-hover: #0043D6;
    --primary-light: #EEF4FF;
    --primary-dark: #002D72;

    /* GetKoda Official Design System Tokens (getkoda_visual_identity.md) */
    --koda-bg: #E5E5E3;            /* Noomo Agency Beige Canvas */
    --koda-bg-alt: #EDECEA;
    --koda-card: #FFFFFF;
    --koda-dark: #0F172A;
    --koda-oled: #111111;
    --koda-velvet: #0C0C0E;
    --koda-border: rgba(0, 0, 0, 0.08);
    --koda-border-dark: rgba(255, 255, 255, 0.12);

    /* O Espectro GetKoda (Gradiente Oficial) */
    --koda-spectrum: linear-gradient(to right, #0055FF, #0D9488, #6D28D9);
    --koda-spectrum-135: linear-gradient(135deg, #0055FF 0%, #0D9488 50%, #6D28D9 100%);
    --koda-pilar-ai: #6D28D9;
    --koda-pilar-acq: #0055FF;
    --koda-pilar-design: #0D9488;

    /* O Sistema Óptico Liquid Glass (getkoda_visual_identity.md - Sec. 4) */
    --btn-radius: 9999px;
    --btn-radius-square: 18px;
    --glass-bg: linear-gradient(135deg, rgba(0, 85, 255, 0.08) 0%, rgba(112, 0, 255, 0.08) 100%);
    --glass-bg-hover: linear-gradient(135deg, rgba(0, 85, 255, 0.18) 0%, rgba(112, 0, 255, 0.18) 100%);
    --glass-top-light: inset 0 1.5px 0 rgba(255, 255, 255, 0.75);
    --glass-rim: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    --glass-relief: inset 0 -12px 18px -12px rgba(20, 30, 50, 0.15);
    --glass-shadow: 0 12px 26px rgba(20, 30, 50, 0.12);
    --glass-shadow-hover: 0 16px 30px rgba(0, 85, 255, 0.25), 0 16px 30px rgba(112, 0, 255, 0.15);
    --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 72%, rgba(255, 255, 255, 0) 100%);
    --glass-text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
    --tone-neutral-text: #1C2330;
    --koda-easing: cubic-bezier(0.16, 1, 0.3, 1);

    --font-display: 'Syne', sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;

    --dark: #0F172A;
    --dark-surface: #1E293B;
    --text-main: #1C2330;
    --text-muted: #475569;
    --text-light: #94A3B8;

    --bg-main: #E5E5E3;
    --bg-card: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --border-focus: #93C5FD;

    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 35px -6px rgba(0, 0, 0, 0.12);

    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.2) rgba(229, 229, 227, 0.5);
}

/* Scrollbar Minimalista Alinhada à Identidade Visual */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(229, 229, 227, 0.45);
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 85, 255, 0.55);
    background-clip: content-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--koda-bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 1.15em;
    height: 1.15em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
    text-decoration: none;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-item.active a {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-tag {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: capitalize;
}

/* Page Header */
.page-header {
    margin: 32px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0, 85, 255, 0.1);
    border-color: rgba(0, 85, 255, 0.28);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.metric-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card General */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.data-table th {
    background: #F1F5F9;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 16px 18px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #F8FAFC;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-disponivel {
    background: #F1F5F9;
    color: #475569;
}

.badge-ativo {
    background: var(--success-light);
    color: #065F46;
}

.badge-pausado {
    background: var(--warning-light);
    color: #92400E;
}

.badge-nfc {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-qr {
    background: #F3E8FF;
    color: #7E22CE;
    border: 1px solid #E9D5FF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 85, 212, 0.25);
}

.btn-secondary {
    background: white;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 212, 0.15);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: white;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 540px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Review / Public Customer Screen */
.review-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

.review-card {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.review-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #EEF4FF;
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px 0;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2.8rem;
    color: #CBD5E1;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    padding: 0;
}

.star-btn:hover,
.star-btn.active {
    color: #FBBF24;
    transform: scale(1.2);
}

.btn-google {
    background: #FFFFFF;
    color: #3C4043;
    border: 1px solid #DADCE0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    font-weight: 700;
    padding: 16px 28px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
    transition: var(--transition);
}

.btn-google:hover {
    background: #F8FAFC;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
    border-color: #4285F4;
    transform: translateY(-2px);
}

/* Documentation Styling */
.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.docs-sidebar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 96px;
}

.docs-nav-group {
    margin-bottom: 24px;
}

.docs-nav-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.docs-nav-list {
    list-style: none;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}

.docs-nav-link:hover,
.docs-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.docs-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    min-height: 600px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.docs-content h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}

.docs-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    word-break: break-word;
}

.docs-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    word-break: break-word;
}

.docs-content p, .docs-content ul, .docs-content ol {
    margin-bottom: 16px;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.docs-content ul, .docs-content ol {
    padding-left: 24px;
}

.docs-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 18px;
    background: #F8FAFC;
    color: var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
}

.docs-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
}

.docs-content table {
    display: table;
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    margin: 0;
}

.docs-content > table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 24px 0;
}

.docs-content th, .docs-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 0.88rem;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.docs-content th {
    background: #F8FAFC;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.docs-content pre {
    background: #0F172A;
    color: #F8FAFC;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    max-width: 100%;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.88rem;
    margin: 20px 0;
}

.docs-content code {
    background: #F1F5F9;
    color: #0F172A;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.88em;
    word-break: break-word;
}

.docs-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    word-break: normal;
}

.docs-content .mermaid {
    max-width: 100%;
    overflow-x: auto;
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 24px 0;
    text-align: center;
}

/* ============================================================================== */
/* GAVETA MOBILE DE DOCUMENTOS (ACCORDION / DRAWER EXCLUSIVO MOBILE)              */
/* ============================================================================== */
.docs-mobile-drawer-box {
    display: none;
    width: 100%;
    margin-bottom: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.docs-mobile-drawer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.docs-mobile-drawer-btn:active {
    background: #F8FAFC;
}

.docs-drawer-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #EEF4FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docs-mobile-drawer-content {
    display: none;
}

.docs-mobile-drawer-box.open .docs-mobile-drawer-content {
    display: block;
    animation: drawerSlideDown 0.22s ease-out;
}

.docs-drawer-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease;
    border: 1px solid transparent;
}

.docs-drawer-item:hover,
.docs-drawer-item:active {
    background: #F1F5F9;
}

.docs-drawer-item.active {
    background: #EEF4FF;
    color: var(--primary);
    font-weight: 700;
    border-color: rgba(0, 85, 212, 0.2);
}

.docs-drawer-item-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.docs-drawer-item.active .docs-drawer-item-icon {
    color: var(--primary);
}

.docs-drawer-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-drawer-item-title {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-drawer-item-cat {
    font-size: 0.70rem;
    color: var(--text-muted);
}

.docs-drawer-item-check {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

@keyframes drawerSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Docs & Navigation */
@media (max-width: 900px) {
    .docs-mobile-drawer-box {
        display: block !important;
    }
    .docs-sidebar {
        display: none !important;
    }
    .docs-layout {
        display: block !important;
        margin-top: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .docs-content {
        padding: 20px 14px !important;
        border-radius: 14px !important;
        min-height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .docs-content h1 {
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        line-height: 1.25 !important;
    }
    .docs-content h2 {
        font-size: 1.2rem !important;
        margin: 22px 0 10px !important;
        line-height: 1.3 !important;
    }
    .docs-content h3 {
        font-size: 1.05rem !important;
        margin: 18px 0 8px !important;
    }
    .docs-content p, .docs-content li {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }
    .docs-content hr {
        border: 0 !important;
        height: 1px !important;
        background: var(--border) !important;
        margin: 20px 0 !important;
        width: 100% !important;
    }
    .docs-table-wrap {
        margin: 16px 0 !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid var(--border) !important;
    }
    .docs-content table {
        min-width: 520px !important;
        display: table !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .docs-content .mermaid {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        margin: 18px 0 !important;
    }
    .docs-content pre {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        margin: 16px 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Classes Utilitárias para Alternar Tabela Desktop vs Cards Mobile */
.desktop-only-table {
    display: block;
}
.mobile-only-cards {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only-table {
        display: none !important;
    }
    .mobile-only-cards {
        display: flex !important;
    }
}

/* ==============================================================================
   ESTILOS EXCLUSIVOS DA HOMEPAGE DE ALTA CONVERSÃO (DESIGN SYSTEM KODAGET)
   ============================================================================== */

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(229, 229, 227, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 16px 0;
}

.lp-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: pulseGlow 1.8s infinite ease-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.lp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--dark);
    margin: 20px 0 18px;
}

.lp-hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: #475569;
    line-height: 1.55;
    max-width: 680px;
    margin-bottom: 32px;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 30px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 85, 255, 0.28);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.lp-btn-primary:hover {
    background: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 85, 255, 0.35);
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--dark);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 15px 26px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lp-btn-secondary:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--dark);
}

.lp-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 85, 255, 0.2);
}

.lp-card-dark {
    background: #0F172A;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.lp-card-dark h3, .lp-card-dark h4 {
    color: #FFFFFF;
}

.lp-card-dark p {
    color: #94A3B8;
}

.lp-interactive-plate {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}

.lp-plate-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: opacity 0.25s ease;
}

.lp-model-toggle {
    display: inline-flex;
    background: #FFFFFF;
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lp-model-btn {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lp-model-btn.active {
    background: var(--dark);
    color: #FFFFFF;
}

.lp-model-btn.active.azul {
    background: var(--primary);
    color: #FFFFFF;
}

.lp-price-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.lp-price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 16px 36px rgba(0, 85, 255, 0.12);
    transform: scale(1.02);
}

.lp-floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
    text-decoration: none;
}

.lp-floating-wa:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ==============================================================================
   GETKODA OFFICIAL DESIGN SYSTEM IMPLEMENTATION (getkoda_visual_identity.md)
   ============================================================================== */

/* 1. O SISTEMA DE BOTÕES "LIQUID GLASS" (getkoda_visual_identity.md — Sec. 4) */
.lg-base {
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--tone-neutral-text);
    isolation: isolate;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow), var(--glass-top-light), var(--glass-rim), var(--glass-relief);
    border: none;
    justify-content: center;
    align-items: center;
    transition: 0.2s var(--koda-easing);
    display: inline-flex;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.lg-base::before {
    content: "";
    pointer-events: none;
    background: var(--glass-sheen);
    border-radius: 9999px 9999px 90% 90%;
    height: 42%;
    position: absolute;
    top: 4px;
    left: 8px;
    right: 8px;
    z-index: 1;
}

.lg-base > span, .lg-base > .lg-content {
    z-index: 2;
    text-shadow: var(--glass-text-shadow);
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: inline-flex;
    position: relative;
}

.lg-base:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover), inset 0 1.5px 0 #ffffffe6, inset 0 0 0 1px #ffffff73, var(--glass-relief);
    transform: translateY(-2px);
    color: var(--dark);
}

.lg-base:active {
    transform: translateY(0px) scale(0.99);
}

/* Dimensões Oficiais do GetKoda */
.lg-sm {
    height: 44px;
    padding: 0 24px;
    font-size: 0.9rem;
}

.lg-md {
    height: 56px;
    padding: 0 38px;
    font-size: 1.05rem;
}

.lg-lg {
    height: 70px;
    padding: 0 50px;
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 800;
}

.lg-square {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: var(--btn-radius-square);
}

/* Variação de Alto Impacto: Liquid Glass Primary (Azul Elétrico & Cyber Jade) */
.lg-primary {
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.95) 0%, rgba(13, 148, 136, 0.90) 100%);
    color: #FFFFFF !important;
    box-shadow: 0 14px 30px rgba(0, 85, 255, 0.35), inset 0 1.5px 0 rgba(255, 255, 255, 0.65), var(--glass-rim), var(--glass-relief);
}

.lg-primary::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0) 100%);
}

.lg-primary > span, .lg-primary > .lg-content {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.lg-primary:hover {
    background: linear-gradient(135deg, #0055FF 0%, #0D9488 100%);
    box-shadow: 0 18px 36px rgba(0, 85, 255, 0.45), 0 14px 28px rgba(13, 148, 136, 0.3), inset 0 1.5px 0 #ffffff;
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

/* 2. BACKGROUND ATMOSFÉRICO EM 3 CAMADAS (Sec. 3) */

/* Camada 3: Grid Editorial Arquitetônico (72px × 72px) */
.editorial-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* Camada 2: Living Wave Mesh Canvas 2D */
.living-wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Camada 1: Halos Cromáticos Flutuantes (Ambient Orbs Blur) */
.ambient-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    -webkit-filter: blur(24px);
    opacity: 0.38;
    will-change: transform;
    pointer-events: none;
    transform: translateZ(0);
}

.ambient-orb-1 {
    width: 48vw;
    height: 48vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, #C5E1FF 0%, rgba(197, 225, 255, 0) 70%);
    top: -5vw;
    left: 8vw;
    animation: orbFloat1 24s ease-in-out infinite alternate;
}

.ambient-orb-2 {
    width: 26vw;
    height: 26vw;
    max-width: 320px;
    max-height: 320px;
    background: radial-gradient(circle, rgba(255, 207, 179, 0.35) 0%, rgba(255, 207, 179, 0) 70%);
    bottom: -3vw;
    right: 3vw;
    opacity: 0.3;
    pointer-events: none;
    animation: orbFloat2 28s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(5vw, 6vh, 0) scale(1.06); }
    100% { transform: translate3d(-3vw, 4vh, 0) scale(0.96); }
}

@keyframes orbFloat2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-6vw, -5vh, 0) scale(1.05); }
    100% { transform: translate3d(4vw, -3vh, 0) scale(0.95); }
}

/* 3. CARDS EM TRUE GLASS & CYBER GLASSMORPHISM (Sec. 2.1 e 9) */
.koda-glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.70);
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s var(--koda-easing);
}

.koda-glass-card:hover {
    box-shadow: 0 24px 50px -10px rgba(0, 85, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 85, 255, 0.3);
    transform: translateY(-3px);
}

/* Spotlight Interativo em Cards */
.card-spotlight-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.koda-glass-card:hover .card-spotlight-layer {
    opacity: 1;
}

/* 4. O ESPECTRO GETKODA (Gradiente de Assinatura) */
.koda-spectrum-text {
    background: var(--koda-spectrum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.koda-spectrum-border {
    border-image: var(--koda-spectrum) 1;
}

/* 5. MICRO-SELOS & KICKERS EDITORIAIS (Sec. 6) */
.koda-kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.koda-kicker::before, .koda-kicker::after {
    content: "•";
    opacity: 0.4;
}

/* 6. SCANNER LASER DE FORMULÁRIO (Sec. 5.4) */
.laser-sweep-box {
    position: relative;
    overflow: hidden;
}

.laser-sweep-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 85, 255, 0.6) 50%, transparent 100%);
    box-shadow: 0 0 12px rgba(0, 85, 255, 0.5);
    pointer-events: none;
    z-index: 10;
    animation: laserSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes laserSweep {
    0% { top: -2px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 7. SCROLL CIRCUIT TRACER (Sec. 5.3) */
.scroll-circuit-tracer {
    position: fixed;
    right: 12px;
    top: 25%;
    width: 3px;
    height: 50%;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 9999px;
    z-index: 80;
    overflow: hidden;
    pointer-events: none;
}

.tracer-progress-bar {
    width: 100%;
    height: 0%;
    background: var(--koda-spectrum);
    box-shadow: 0 0 8px #0055FF;
    border-radius: 9999px;
    transition: height 0.1s linear;
}

/* 8. CURSOR MAGNÉTICO DUPLO (Sec. 5.1) */
@media (hover: hover) and (pointer: fine) {
    .koda-cursor-dot {
        width: 7px;
        height: 7px;
        background: #0F172A;
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: transform 0.06s linear, background-color 0.2s ease;
    }

    .koda-cursor-ring {
        width: 32px;
        height: 32px;
        border: 1px solid rgba(15, 23, 42, 0.18);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.2s var(--koda-easing), height 0.2s var(--koda-easing), border-color 0.2s ease, background 0.2s ease;
    }

    .koda-cursor-ring.active {
        width: 64px;
        height: 64px;
        border-color: #0055FF;
        background: rgba(0, 85, 255, 0.08);
        box-shadow: 0 0 20px rgba(0, 85, 255, 0.15);
    }
}

/* ============================================================================== */
/* 9. SIDEBAR LATERAL & TOPBAR (PADRÃO KODAGET.COM)                              */
/* ============================================================================== */

/* Sidebar Lateral Fixa (Desktop) */
.koda-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 84px;
    background: rgba(229, 229, 227, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 24px;
    transition: transform 0.3s var(--koda-easing);
}

.koda-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-bottom: 24px;
}

.koda-sidebar-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: radial-gradient(circle at center, rgba(0, 85, 255, 0.12) 0%, rgba(124, 58, 237, 0.08) 50%, rgba(244, 63, 94, 0.04) 100%);
    border: 1px solid rgba(0, 85, 255, 0.22);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.25s ease;
}

.koda-sidebar-logo:hover .koda-sidebar-icon {
    background: radial-gradient(circle at center, rgba(0, 85, 255, 0.2) 0%, rgba(124, 58, 237, 0.14) 50%, rgba(244, 63, 94, 0.08) 100%);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 6px 20px rgba(0, 85, 255, 0.18);
    transform: scale(1.05);
}

.koda-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 8px;
    list-style: none;
}

.koda-sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    padding: 10px 4px;
    border-radius: 14px;
    gap: 4px;
    transition: all 0.2s var(--koda-easing);
}

.koda-sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.koda-sidebar-link:hover,
.koda-sidebar-link.active {
    color: var(--primary);
    background: rgba(0, 85, 255, 0.08);
}

.koda-sidebar-bottom {
    margin-top: auto;
    padding: 0 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Botões Destacados na Barra Lateral (Entrar & Comprar) */
.koda-sidebar-btn {
    width: 100%;
    max-width: 68px;
    padding: 9px 4px 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
}

.koda-sidebar-btn-primary {
    background: rgba(0, 85, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 85, 255, 0.3);
}

.koda-sidebar-btn-primary:hover {
    background: rgba(0, 85, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 85, 255, 0.45);
    color: #FFFFFF !important;
}

.koda-sidebar-btn-secondary {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.koda-sidebar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 85, 255, 0.4);
    color: #0055FF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.12);
}

@media (max-width: 991px) {
    .koda-sidebar-btn {
        max-width: 100%;
        flex-direction: row;
        gap: 10px;
        padding: 12px 16px;
        font-size: 0.88rem;
        border-radius: 12px;
        justify-content: flex-start;
    }
}

/* Gatilho Flutuante para Menu Mobile */
.koda-mobile-nav-trigger {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(229, 229, 227, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    color: var(--dark);
    z-index: 95;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--koda-easing);
}

.koda-mobile-nav-trigger:hover {
    background: #FFFFFF;
    color: var(--primary);
}

.koda-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.koda-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Conteúdo Principal com Offset da Sidebar Lateral */
.koda-main-layout {
    margin-left: 84px;
    padding-top: 36px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s var(--koda-easing);
}

/* Vitrine 3D Duo Transparente do Hero */
.clean-hero-showcase {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clean-hero-plate-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-hero-plate-box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: none !important;
}

.clean-hero-plate-box::after {
    display: none !important;
}

.clean-hero-duo-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.08));
    transition: filter 0.35s ease, transform 0.35s ease;
}

.clean-hero-plate-box:hover .clean-hero-duo-img {
    filter: drop-shadow(0 20px 36px rgba(0, 85, 255, 0.16));
}

/* ============================================================================== */
/* SEÇÃO A PLACA — DIAGRAMA DE ESPECIFICAÇÕES TÉCNICAS (5 ITENS + ORBIT 3D)       */
/* ============================================================================== */
.plate-spec-kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #059669;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.plate-diagram-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 28px;
    align-items: center;
    position: relative;
    margin: 40px 0 45px;
}

.plate-diagram-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.plate-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plate-spec-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 16px 36px -10px rgba(16, 185, 129, 0.12);
}

.plate-spec-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #081C14;
    color: #10B981;
    font-family: var(--font-mono, monospace);
    font-size: 0.86rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.plate-spec-content {
    flex: 1;
}

.plate-spec-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark, #0F172A);
    margin: 0 0 5px 0;
    letter-spacing: -0.01em;
}

.plate-spec-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.plate-diagram-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plate-orbit-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-orbit-ring {
    position: absolute;
    width: 92%;
    height: 92%;
    border-radius: 50%;
    border: 1.5px dashed rgba(16, 185, 129, 0.45);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: rotateOrbit 60s linear infinite;
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.plate-3d-view {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 320px;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.plate-3d-view:hover {
    transform: scale(1.05) translateY(-4px);
}

.plate-3d-active-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.14));
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Seletor de Modelo Interativo */
.plate-model-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 5px 6px;
    margin-top: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    z-index: 3;
}

.plate-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s ease;
}

.plate-toggle-btn:hover {
    color: var(--dark, #0F172A);
}

.plate-toggle-btn.active {
    background: var(--dark, #0F172A);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.toggle-dot.blue {
    background: #0055FF;
    box-shadow: 0 0 8px rgba(0, 85, 255, 0.5);
}

.toggle-dot.black {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.5);
}

/* Grid de Modelos Homologados no Rodapé da Seção */
.plate-models-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.plate-model-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plate-model-card:hover {
    transform: translateY(-4px);
    background: #FFFFFF;
    border-color: rgba(0, 85, 255, 0.3);
    box-shadow: 0 18px 40px -12px rgba(0, 85, 255, 0.12);
}

@media (max-width: 960px) {
    .plate-diagram-container {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 25px 0 35px;
    }
    .plate-diagram-center {
        order: -1;
    }
    .plate-orbit-wrapper {
        max-width: 290px;
    }
    .plate-orbit-ring {
        width: 88%;
        height: 88%;
    }
    .plate-3d-view {
        width: 80%;
        max-width: 250px;
    }
    .plate-diagram-col {
        gap: 16px;
    }
    .plate-spec-item {
        padding: 14px 16px;
    }
}

.clean-hero-img {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: contain;
    border-radius: 18px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.clean-hero-img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.clean-hero-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.clean-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-hero-dot:hover {
    background: rgba(0, 85, 255, 0.5);
    transform: scale(1.15);
}

.clean-hero-dot.active {
    width: 32px;
    border-radius: 9999px;
    background: #0055FF;
    box-shadow: 0 0 12px rgba(0, 85, 255, 0.5);
}

.koda-mobile-topbar {
    display: none;
}
.koda-sidebar-close {
    display: none;
}
.koda-sidebar-brand-name {
    display: none;
}
.lp-hero-sub-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .koda-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        padding: 0 16px;
        background: rgba(229, 229, 227, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        z-index: 95;
        box-sizing: border-box;
    }
    .koda-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    .koda-mobile-logo-wrap {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: #FFFFFF;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        box-sizing: border-box;
    }
    .koda-mobile-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .koda-mobile-brand-title {
        font-family: var(--font-display, 'Syne', sans-serif);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--dark, #0F172A);
        letter-spacing: -0.02em;
    }
    .koda-mobile-brand-title strong {
        color: var(--primary, #0055FF);
        font-weight: 800;
    }
    .koda-mobile-nav-trigger {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
        color: var(--dark, #0F172A) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
        padding: 0 !important;
        transition: all 0.2s ease;
    }
    .koda-mobile-nav-trigger:hover {
        background: #FFFFFF !important;
        color: var(--primary, #0055FF) !important;
    }
    .koda-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        height: -webkit-fill-available !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-right: none !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 9999 !important;
        padding: 16px 14px 0 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .koda-sidebar.active {
        transform: translateX(0) !important;
    }
    .koda-sidebar-overlay {
        z-index: 9990 !important;
    }
    .koda-sidebar-header-row {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }
    .koda-sidebar-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 0 !important;
        text-decoration: none !important;
    }
    .koda-sidebar-icon {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    .koda-sidebar-brand-name {
        display: inline-block !important;
        font-family: var(--font-display, 'Syne', sans-serif) !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: var(--dark, #0F172A) !important;
        letter-spacing: -0.02em !important;
    }
    .koda-sidebar-brand-name strong {
        color: var(--primary, #0055FF);
        font-weight: 800;
    }
    .koda-sidebar-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        background: rgba(15, 23, 42, 0.06) !important;
        border: none !important;
        cursor: pointer !important;
        color: var(--dark, #0F172A) !important;
        transition: all 0.2s ease;
    }
    .koda-sidebar-close:hover {
        background: rgba(15, 23, 42, 0.12) !important;
        color: var(--primary, #0055FF) !important;
    }
    .koda-sidebar nav {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        padding-right: 2px !important;
    }
    .koda-sidebar-nav {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    .koda-sidebar-link {
        flex-direction: row !important;
        gap: 12px !important;
        padding: 10px 14px !important;
        width: 100% !important;
        justify-content: flex-start !important;
        border-radius: 12px !important;
    }
    .koda-sidebar-label {
        display: inline-block !important;
        font-size: 0.9rem !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        font-weight: 600 !important;
    }
    .koda-sidebar-bottom {
        flex-shrink: 0 !important;
        margin-top: auto !important;
        padding: 12px 0 max(24px, env(safe-area-inset-bottom, 24px)) 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
        background: transparent !important;
    }
    .koda-sidebar-bottom .koda-sidebar-link {
        width: 100% !important;
    }
    .koda-sidebar-bottom .koda-sidebar-btn {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        font-size: 0.88rem !important;
        border-radius: 12px !important;
        justify-content: flex-start !important;
    }
    .koda-main-layout {
        padding-top: 16px !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    #inicio.koda-section-frame {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
        min-height: auto !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
        padding: 0 0 16px;
    }
    .hero-plate-col {
        order: -1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto 14px auto !important;
    }
    .hero-text-col {
        order: 2 !important;
        width: 100% !important;
    }
    .clean-hero-showcase {
        max-width: min(290px, 76vw) !important;
        margin: 0 auto !important;
    }
    .clean-hero-plate-box {
        max-width: min(290px, 76vw) !important;
        min-height: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .clean-hero-duo-img {
        width: 100% !important;
        height: auto !important;
    }
    .clean-hero-indicators {
        display: none !important;
    }
    .clean-hero-dot {
        width: 8px !important;
        height: 8px !important;
    }
    .clean-hero-dot.active {
        width: 22px !important;
    }
    .hero-text-col .koda-kicker {
        display: none !important;
    }
    .lp-hero-title {
        font-size: clamp(20px, 5.2vw, 26px) !important;
        line-height: 1.22 !important;
        margin-bottom: 12px !important;
    }
    .lp-hero-sub-desktop {
        display: none !important;
    }
    .lp-hero-sub-mobile {
        display: block !important;
        font-size: 0.84rem !important;
        line-height: 1.38 !important;
        color: #64748B !important;
        margin: 0 auto 14px !important;
        max-width: 320px !important;
    }
    .hero-actions {
        margin-top: 4px !important;
        margin-bottom: 16px !important;
        justify-content: center;
        gap: 10px !important;
    }
    .hero-metrics {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .clean-hero-showcase,
    .clean-hero-plate-box {
        max-width: 280px !important;
    }
}

/* Dock Flutuante Inferior Direito (WhatsApp + Topo com acabamento Liquid Glass) */
.koda-floating-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 99;
    pointer-events: none;
}

.koda-floating-dock > * {
    pointer-events: auto;
}

.koda-floating-dock .lp-floating-wa {
    position: relative;
    bottom: auto;
    right: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.25s var(--koda-easing);
}

.koda-floating-dock .lp-floating-wa:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

/* Botão Voltar ao Topo (Scroll to Top — Base Universal & Standalone para Dashboards) */
.koda-scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: #334155;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 95;
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.koda-scroll-top-btn.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.koda-scroll-top-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 85, 255, 0.22);
}

/* Quando dentro do Dock Flutuante (index.php) */
.koda-floating-dock .koda-scroll-top-btn {
    position: relative;
    bottom: auto;
    right: auto;
}

@media (max-width: 640px) {
    .koda-scroll-top-btn {
        bottom: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
    }

    .koda-floating-dock {
        bottom: 18px;
        right: 18px;
        gap: 10px;
    }
    .koda-floating-dock .lp-floating-wa {
        width: 48px;
        height: 48px;
    }
    .koda-floating-dock .koda-scroll-top-btn {
        width: 40px;
        height: 40px;
    }
}

/* Barra de Contexto do Topo nos Dashboards (SuperAdmin & Lojista) com sutil espectro da logo */
.dashboard-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.dashboard-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0055FF 0%, #0D9488 35%, #7C3AED 70%, #F43F5E 100%);
    opacity: 0.85;
}

/* Badge Unificado e Espaçado do Usuário Logado */
.dashboard-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

.dashboard-user-badge:hover {
    background: #FFFFFF;
    border-color: rgba(0, 85, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 85, 255, 0.08);
}

.dashboard-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: radial-gradient(circle at center, rgba(0, 85, 255, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 1px solid rgba(0, 85, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.dashboard-user-name {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* ============================================================================== */
/* 10. CARROSSEL DE PLACAS FÍSICAS (INTERACTIVE 3D CAROUSEL)                      */
/* ============================================================================== */
.koda-carousel-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0 20px;
}

.koda-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.koda-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.koda-carousel-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
    padding: 36px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.95);
    position: relative;
    overflow: hidden;
}

.koda-carousel-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0055FF 0%, #0D9488 35%, #7C3AED 70%, #F43F5E 100%);
    opacity: 0.9;
}

.koda-carousel-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
}

.koda-carousel-ctrl {
    position: static;
    transform: none;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: var(--dark);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.25s var(--koda-easing);
}

.koda-carousel-ctrl:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 85, 255, 0.22);
}

.koda-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.koda-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.18);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.koda-carousel-dot.active {
    width: 32px;
    border-radius: 9999px;
    background: var(--koda-spectrum);
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.4);
}

.rotate-180 {
    transform: rotate(180deg);
}

/* ============================================================================== */
/* 11. REGRAS DE RESPONSIVIDADE E ANTI-ESMAGAMENTO DE TEXTO                      */
/* ============================================================================== */
* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, span, li, a {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

@media (max-width: 991px) {
    .koda-topbar {
        left: 0;
        padding: 0 16px;
    }

    .koda-mobile-toggle,
    .koda-mobile-nav-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .koda-main-layout {
        margin-left: 0 !important;
    }

    .koda-carousel-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .koda-topbar {
        height: 64px;
    }

    .koda-main-layout {
        padding-top: 24px;
    }

    .koda-main-layout main.container {
        padding: 0 12px 40px !important;
    }
}

/* ============================================================================== */
/* 12. GRID DE PREÇOS COM RESPONSIVIDADE SEM QUEBRAS                              */
/* ============================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 48px;
    padding-top: 20px;
    width: 100%;
}

.lp-price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-price-card.featured {
    border: 2px solid var(--primary) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 16px 36px rgba(0, 85, 255, 0.12);
    overflow: visible !important;
}

.pricing-badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #0055FF 0%, #0D9488 35%, #7C3AED 70%, #F43F5E 100%);
    color: #FFFFFF;
    padding: 5px 18px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 85, 255, 0.35);
    z-index: 10;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .lp-price-card.featured {
        transform: translateY(-8px);
    }
    .lp-price-card.featured:hover {
        transform: translateY(-12px);
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        gap: 36px;
    }
    .lp-price-card.featured {
        transform: none;
    }
}

/* Enquadramento Natural por Viewport (Zoom e Scroll) sem quebrar o layout interno */
.koda-section-frame {
    scroll-margin-top: 0;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .koda-section-frame {
        min-height: auto;
        padding: 40px 0;
    }
}

/* Animações do Motor em Tempo Real */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes livePulse {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

.live-pulse-dot {
    animation: livePulse 2.5s infinite ease-in-out;
}

/* ============================================================================== */
/* 13. RESPONSIVIDADE PROFISSIONAL DOS DASHBOARDS (SUPERADMIN & LOJISTA)         */
/* ============================================================================== */

/* Grids e Layouts dos Painéis */
.admin-summary-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.admin-kpi-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.generator-layout-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

.generator-action-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
}

.charts-split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.charts-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.client-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.client-config-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.client-password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsividade de Grids em Telas Médias e Pequenas (Tablets & Celulares) */
@media (max-width: 1024px) {
    .generator-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .admin-summary-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 24px;
    }

    .charts-split-grid,
    .charts-dual-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .client-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .client-config-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-topbar {
        padding: 12px 16px;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-user-badge {
        align-self: flex-start;
    }

    /* Header do Dashboard Centralizado no Mobile */
    .page-header {
        margin: 20px 0 20px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .page-header > div:first-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .client-header-title-row,
    .page-header-title-row {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .page-title {
        font-size: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .page-subtitle {
        text-align: center !important;
        margin: 6px auto 0 !important;
        max-width: 480px !important;
    }

    .live-sync-indicator {
        margin: 6px auto 0 !important;
        justify-content: center !important;
    }

    .page-header .btn,
    .page-header a.btn,
    .btn-header-experience {
        width: 100% !important;
        max-width: 340px !important;
        justify-content: center !important;
        margin: 6px auto 0 !important;
    }

    /* Cards e Valores das Divisórias Centralizados no Mobile */
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .metric-card {
        padding: 20px 16px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .metric-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }

    .metric-title {
        text-align: center !important;
        font-size: 0.88rem !important;
    }

    .metric-icon {
        margin: 0 auto !important;
    }

    .metric-val {
        font-size: 1.95rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .metric-sub {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    /* Títulos e Divisórias das Seções Centralizados no Mobile */
    .card {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .card-title {
        font-size: 1.15rem !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .card-title > * {
        text-align: center !important;
    }

    .evolution-card-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .evolution-card-header > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .evolution-card-title-row {
        justify-content: center !important;
        text-align: center !important;
    }

    .evolution-card-header p {
        text-align: center !important;
    }

    .evolution-kpi-item {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .evolution-kpi-item > * {
        text-align: center !important;
    }

    /* Mobile Cards de Placas Centralizados e Organizados */
    .plaque-mobile-card {
        text-align: center !important;
        align-items: center !important;
    }

    .plaque-mobile-top {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .plaque-mobile-details {
        justify-content: space-around !important;
        text-align: center !important;
        width: 100% !important;
    }

    .plaque-mobile-field {
        text-align: center !important;
    }

    .mobile-only-cards > div {
        text-align: center !important;
    }

    .mobile-only-cards > div > div:first-child {
        justify-content: center !important;
    }

    /* Mobile Cards de Feedbacks/Avaliações Centralizados */
    .client-review-card {
        text-align: center !important;
        align-items: center !important;
    }

    .client-review-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .client-review-info {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .client-review-date {
        margin: 2px auto 0 !important;
    }

    .client-review-status-msg,
    .client-review-comment {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Textos da Documentação Técnica: EXCLUSIVAMENTE ALINHADOS À ESQUERDA */
    .docs-content,
    .docs-content * {
        text-align: left !important;
    }
    .docs-mobile-drawer-btn,
    .docs-drawer-item,
    .docs-drawer-item-title,
    .docs-drawer-item-cat {
        text-align: left !important;
    }

    .modal-dialog {
        padding: 20px 16px;
        max-width: 95vw;
        border-radius: 14px;
    }

    .filter-tabs-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Tabelas com Scroll Horizontal Suave e sem Estourar a Viewport */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}

.data-table {
    min-width: 640px;
}

/* Proteção Universal contra Transbordamento Horizontal (Zero Scrollbar indesejada) */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}
