/* MUI micro-icons (services, methodology) */
.mui-wrapper {
    height: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.mui-base {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    padding: 6px;
    position: relative;
    overflow: hidden;
    animation: floatMui 4s ease-in-out infinite;
}

@keyframes floatMui {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mui-chat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-end;
    height: 100%;
}

.mui-bubble {
    border-radius: 4px;
    height: 12px;
    animation: popIn 2s infinite alternate;
}

.mui-bubble.left {
    width: 70%;
    background: #f3f4f6;
}

.mui-bubble.right {
    width: 85%;
    background: var(--text-blue);
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mui-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

@keyframes popIn {
    0%, 20% { opacity: 0; transform: scale(0.8); }
    40%, 100% { opacity: 1; transform: scale(1); }
}

.mui-shop {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}

.mui-img {
    width: 100%;
    height: 20px;
    background: #f3f4f6;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.mui-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s infinite;
}

.mui-line-1 {
    width: 60%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.mui-line-2 {
    width: 40%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.mui-btn-shop {
    width: 24px;
    height: 10px;
    background: var(--text-blue);
    border-radius: 4px;
    align-self: flex-end;
    margin-top: auto;
}

@keyframes shimmer {
    100% { left: 200%; }
}

.mui-design {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 100%;
    align-content: center;
}

.mui-color {
    width: 100%;
    padding-bottom: 100%;
    border-radius: 50%;
    background: #e5e7eb;
    animation: popColor 3s infinite;
}

.mui-color:nth-child(1) {
    background: var(--text-blue);
    animation-delay: 0s;
}

.mui-color:nth-child(2) {
    background: #8c96f8;
    animation-delay: 0.2s;
    border-radius: 4px;
}

.mui-color:nth-child(3) {
    background: #111827;
    animation-delay: 0.4s;
}

.mui-color:nth-child(4) {
    border: 2px dashed #d1d5db;
    background: transparent;
    animation-delay: 0.6s;
}

@keyframes popColor {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mui-flow {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.mui-node {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #f3f4f6;
    z-index: 2;
    border: 1px solid #d1d5db;
}

.mui-node.active {
    background: var(--text-blue);
    box-shadow: 0 2px 6px rgba(91, 104, 246, 0.4);
}

.mui-path {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #e5e7eb;
    z-index: 1;
}

.mui-path-fill {
    position: absolute;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--text-blue);
    z-index: 1;
    animation: flowPath 2s infinite;
}

@keyframes flowPath {
    0% { height: 0%; top: 0; }
    50% { height: 100%; top: 0; }
    100% { height: 0%; top: 100%; }
}

.mui-wireframe {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px;
}

.mui-header-wire {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 2px;
}

.mui-hero-wire {
    width: 100%;
    height: 14px;
    background: rgba(91, 104, 246, 0.1);
    border-radius: 2px;
    border: 1px solid rgba(91, 104, 246, 0.3);
}

.mui-boxes-wire {
    display: flex;
    gap: 3px;
    flex: 1;
}

.mui-box-wire {
    flex: 1;
    background: #f3f4f6;
    border-radius: 2px;
}

.mui-dash {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}

.mui-kpis {
    display: flex;
    gap: 4px;
    height: 14px;
}

.mui-kpi {
    flex: 1;
    background: #f3f4f6;
    border-radius: 3px;
}

.mui-chart-box {
    flex: 1;
    background: #fafafc;
    border-radius: 3px;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 2px 4px;
}

.mui-bar {
    flex: 1;
    background: var(--text-blue);
    border-radius: 1px 1px 0 0;
    animation: barGrow 2s infinite alternate;
}

.mui-bar:nth-child(1) {
    height: 40%;
    animation-delay: 0.1s;
    opacity: 0.6;
}

.mui-bar:nth-child(2) {
    height: 60%;
    animation-delay: 0.2s;
    opacity: 0.8;
}

.mui-bar:nth-child(3) {
    height: 90%;
    animation-delay: 0.3s;
}

@keyframes barGrow {
    0% { transform: scaleY(0.5); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

.mui-scan {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

.mui-scan-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 70%;
    height: 70%;
}

.mui-scan-bar {
    flex: 1;
    background: var(--text-blue);
    border-radius: 1px 1px 0 0;
    animation: barGrow 2s infinite alternate;
}

.mui-scan-bar:nth-child(1) {
    height: 35%;
    animation-delay: 0s;
    opacity: 0.55;
}

.mui-scan-bar:nth-child(2) {
    height: 55%;
    animation-delay: 0.15s;
    opacity: 0.75;
}

.mui-scan-bar:nth-child(3) {
    height: 80%;
    animation-delay: 0.3s;
}

.mui-scan-ring {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--text-blue);
    border-radius: 50%;
    animation: scanPulse 2s ease-in-out infinite;
}

.mui-scan-ring::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 6px;
    height: 2px;
    background: var(--text-blue);
    transform: rotate(45deg);
    border-radius: 1px;
}

@keyframes scanPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
}

.mui-launch {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.mui-rocket-body {
    position: relative;
    width: 10px;
    height: 22px;
    background: linear-gradient(180deg, var(--text-blue) 0%, #8c96f8 100%);
    border-radius: 6px 6px 2px 2px;
    animation: rocketLift 2.4s ease-in-out infinite;
    z-index: 2;
}

.mui-rocket-body::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

.mui-rocket-flame {
    width: 8px;
    height: 8px;
    background: linear-gradient(180deg, #fbbf24, #f97316);
    border-radius: 0 0 50% 50%;
    margin-top: -2px;
    animation: flameFlicker 0.6s ease-in-out infinite alternate;
    z-index: 1;
}

.mui-launch-trail {
    position: absolute;
    bottom: 2px;
    width: 2px;
    height: 0;
    background: rgba(91, 104, 246, 0.35);
    animation: trailGrow 2.4s ease-in-out infinite;
}

@keyframes rocketLift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes flameFlicker {
    0% { transform: scaleY(0.85); opacity: 0.8; }
    100% { transform: scaleY(1.1); opacity: 1; }
}

@keyframes trailGrow {
    0%, 100% { height: 0; opacity: 0; }
    50% { height: 14px; opacity: 1; }
}

.mui-base,
.mui-bubble.left,
.mui-img,
.mui-line-1,
.mui-line-2,
.mui-color,
.mui-node,
.mui-path,
.mui-wireframe,
.mui-header-wire,
.mui-box-wire,
.mui-kpi,
.mui-chart-box {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

html.dark .mui-base {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

html.dark .mui-bubble.left {
    background: #334155;
}

html.dark .mui-img {
    background: #1e293b;
}

html.dark .mui-img::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

html.dark .mui-line-1,
html.dark .mui-line-2 {
    background: #334155;
}

html.dark .mui-color {
    background: #334155;
}

html.dark .mui-color:nth-child(4) {
    border-color: #475569;
}

html.dark .mui-node {
    background: #1e293b;
    border-color: #475569;
}

html.dark .mui-node.active {
    background: var(--text-blue);
    border-color: var(--text-blue);
}

html.dark .mui-path {
    background: #334155;
}

html.dark .mui-wireframe {
    border-color: #334155;
}

html.dark .mui-header-wire,
html.dark .mui-box-wire {
    background: #334155;
}

html.dark .mui-kpi {
    background: #334155;
}

html.dark .mui-chart-box {
    background: #1e293b;
    border-color: #334155;
}
