.demo-connected {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 4rem;
    color: #070B14;
}
.demo-connected__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 1rem;
    align-items: stretch;
    margin: 2rem 0 1rem;
}
.demo-connected__hero > div,
.demo-connected__layout,
.demo-connected__status,
.demo-web-panel,
.demo-route-list,
.demo-phone-shell {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(15,23,42,.10);
}
.demo-connected__hero > div:first-child { padding: 2rem; }
.demo-connected__hero h1 { font-size: clamp(2rem, 4vw, 4.2rem); line-height: .98; margin: .5rem 0 1rem; letter-spacing: -.055em; color: #070B14; }
.demo-connected__hero p { max-width: 720px; color: #475569; font-size: 1.05rem; line-height: 1.65; }
.demo-connected__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.demo-connected__status { padding: 1.2rem; display: grid; align-content: center; gap: .75rem; }
.demo-connected__status strong { font-size: 1.05rem; }
.demo-connected__status span { display: flex; align-items: center; gap: .55rem; color: #334155; padding: .75rem; border: 1px solid rgba(15,23,42,.08); border-radius: 18px; background: #F8FAFC; }
.demo-connected__status svg { color: #007BFF; }
.demo-connected__layout {
    display: grid;
    grid-template-columns: 250px minmax(340px, 420px) 1fr;
    gap: 1rem;
    padding: 1rem;
    align-items: stretch;
}
.demo-route-list { padding: .8rem; display: grid; gap: .65rem; align-content: start; }
.demo-route-button {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    gap: .1rem .65rem;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(15,23,42,.09);
    background: #fff;
    color: #070B14;
    border-radius: 19px;
    padding: .85rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15,23,42,.055);
    transition: .2s ease;
}
.demo-route-button:hover, .demo-route-button.is-active { transform: translateY(-2px); border-color: rgba(0,123,255,.35); box-shadow: 0 18px 40px rgba(0,123,255,.14); }
.demo-route-button.is-active { background: linear-gradient(135deg, #fff, #EFF6FF); }
.demo-route-button svg { grid-row: span 2; width: 22px; height: 22px; color: #007BFF; background: #EFF6FF; border-radius: 14px; padding: 10px; box-sizing: content-box; }
.demo-route-button span { font-weight: 800; }
.demo-route-button small { color: #64748B; font-size: .76rem; }
.demo-phone-shell { padding: 1rem; display: grid; justify-items: center; gap: 1rem; }
.demo-phone {
    width: min(100%, 390px);
    min-height: 740px;
    border-radius: 38px;
    border: 1px solid rgba(15,23,42,.10);
    background: linear-gradient(180deg, #fff, #F8FAFC);
    box-shadow: inset 0 0 0 8px #fff, 0 28px 80px rgba(15,23,42,.18);
    padding: 1.1rem;
    position: relative;
    overflow: hidden;
}
.demo-phone__bar { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 800; color: #0F172A; padding: .15rem .35rem .75rem; }
.demo-phone__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.demo-phone__brand img { width: 44px; height: 32px; object-fit: contain; }
.demo-phone__brand div { flex: 1; line-height: 1.05; }
.demo-phone__brand strong { display: block; font-weight: 900; letter-spacing: .02em; }
.demo-phone__brand small { color: #64748B; font-size: .75rem; }
.demo-pwa { display: inline-flex; align-items: center; gap: .32rem; border: 1px solid rgba(255,193,7,.55); color: #B77900; border-radius: 999px; padding: .35rem .55rem; font-size: .72rem; font-weight: 800; background: #FFFBEB; }
.demo-route-line { display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem; border-radius: 18px; background: #EFF6FF; color: #1D4ED8; font-size: .78rem; font-weight: 800; margin-bottom: .8rem; }
.demo-phone__content { min-height: 545px; padding-bottom: 4.5rem; }
.demo-bottom-nav { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; padding: .55rem; border: 1px solid rgba(15,23,42,.08); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 18px 48px rgba(15,23,42,.13); }
.demo-bottom-nav button { border: 0; background: transparent; color: #64748B; border-radius: 18px; padding: .55rem .3rem; display: grid; gap: .15rem; place-items: center; cursor: pointer; font-size: .68rem; font-weight: 800; }
.demo-bottom-nav button.is-active { color: #fff; background: linear-gradient(135deg, #007BFF, #0057D8); box-shadow: 0 10px 25px rgba(0,123,255,.28); }
.demo-bottom-nav svg { width: 18px; height: 18px; }
.demo-open-route { width: 100%; justify-content: center; }
.demo-screen-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.demo-screen-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.04em; }
.demo-screen-head p { margin: .2rem 0 0; color: #64748B; font-size: .84rem; }
.demo-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: .8rem; }
.demo-kpi, .demo-item-card, .demo-product-row, .demo-inventory-row { border: 1px solid rgba(15,23,42,.08); background: #fff; border-radius: 22px; padding: .85rem; box-shadow: 0 12px 30px rgba(15,23,42,.055); }
.demo-kpi i, .demo-item-card > i, .demo-product-row > i, .demo-inventory-row > i { color: #007BFF; }
.demo-kpi small { display: block; color: #64748B; margin: .4rem 0 .15rem; }
.demo-kpi strong { font-size: 1.25rem; }
.demo-mini-chart { height: 110px; display: flex; align-items: end; gap: .55rem; padding: 1rem; border: 1px solid rgba(15,23,42,.08); border-radius: 22px; background: #fff; margin-bottom: .8rem; }
.demo-mini-chart span { flex: 1; background: linear-gradient(180deg, #60A5FA, #007BFF); border-radius: 999px 999px 6px 6px; }
.demo-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.demo-actions-grid button { border: 1px solid rgba(15,23,42,.08); background: #fff; border-radius: 18px; padding: .65rem .25rem; color: #0F172A; font-weight: 800; font-size: .7rem; display: grid; place-items: center; gap: .25rem; }
.demo-actions-grid svg { color: #007BFF; width: 18px; height: 18px; }
.demo-route-progress { border: 1px solid rgba(15,23,42,.08); border-radius: 22px; padding: .8rem; background: #fff; margin-bottom: .8rem; }
.demo-progress-bar { height: 8px; background: #E2E8F0; border-radius: 999px; overflow: hidden; margin-top: .55rem; }
.demo-progress-bar span { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, #FFC107, #007BFF); }
.demo-item-list { display: grid; gap: .7rem; }
.demo-item-card { display: grid; grid-template-columns: 42px 1fr; gap: .7rem; align-items: center; }
.demo-item-card > i { width: 24px; height: 24px; padding: .55rem; background: #EFF6FF; border-radius: 16px; }
.demo-item-card h3 { margin: 0; font-size: .95rem; }
.demo-item-card p { margin: .18rem 0 .55rem; color: #64748B; font-size: .78rem; }
.demo-status-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.demo-status { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .28rem .5rem; font-size: .68rem; font-weight: 800; }
.demo-status.success { color: #047857; background: #ECFDF5; }
.demo-status.warning { color: #B77900; background: #FFFBEB; }
.demo-status.info { color: #1D4ED8; background: #EFF6FF; }
.demo-search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid rgba(15,23,42,.09); border-radius: 18px; padding: .75rem; color: #64748B; margin-bottom: .75rem; }
.demo-tabs { display: flex; gap: .45rem; margin-bottom: .75rem; }
.demo-tabs span { flex: 1; text-align: center; padding: .55rem; border-radius: 999px; background: #F1F5F9; color: #475569; font-size: .72rem; font-weight: 800; }
.demo-tabs span:first-child { background: #007BFF; color: #fff; }
.demo-product-list { display: grid; gap: .55rem; }
.demo-product-row, .demo-inventory-row { display: grid; grid-template-columns: 36px 1fr auto; gap: .65rem; align-items: center; }
.demo-product-row strong, .demo-inventory-row strong { font-size: .9rem; }
.demo-product-row small, .demo-inventory-row small { display: block; color: #64748B; }
.demo-qty { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #DBEAFE; border-radius: 999px; padding: .28rem .55rem; color: #1D4ED8; font-weight: 900; }
.demo-total-bar { margin-top: .8rem; display: flex; justify-content: space-between; align-items: center; padding: .8rem; border-radius: 20px; background: #070B14; color: #fff; }
.demo-total-bar a { color: #fff; background: #007BFF; border-radius: 14px; padding: .65rem .85rem; text-decoration: none; font-weight: 900; }
.demo-inventory-row .stock { font-weight: 900; font-size: 1.1rem; }
.demo-inventory-row .green { color: #16A34A; }
.demo-inventory-row .blue { color: #007BFF; }
.demo-inventory-row .red { color: #DC2626; }
.demo-inventory-row .yellow { color: #B77900; }
.demo-web-panel { padding: 1rem; }
.demo-web-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.demo-web-panel__top img { height: 44px; width: 140px; object-fit: contain; object-position: left center; }
.demo-web-panel__top span { color: #64748B; font-weight: 800; }
.demo-web-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
.demo-web-grid article { border: 1px solid rgba(15,23,42,.08); border-radius: 22px; padding: 1rem; background: #fff; display: grid; gap: .3rem; box-shadow: 0 12px 30px rgba(15,23,42,.055); }
.demo-web-grid svg { color: #007BFF; }
.demo-web-grid strong { font-size: 1.25rem; }
.demo-web-grid span { color: #64748B; }
.demo-chart { height: 190px; display: flex; align-items: end; gap: .6rem; padding: 1rem; border: 1px solid rgba(15,23,42,.08); background: #fff; border-radius: 24px; margin-bottom: 1rem; }
.demo-chart span { flex: 1; border-radius: 999px 999px 6px 6px; background: linear-gradient(180deg, #60A5FA, #007BFF); }
.demo-web-list { display: grid; gap: .55rem; }
.demo-web-list p { margin: 0; display: flex; align-items: center; gap: .5rem; color: #334155; }
.demo-web-list svg { color: #16A34A; }
.demo-web-list code { background: #EFF6FF; color: #1D4ED8; padding: .15rem .35rem; border-radius: 8px; }
@media (max-width: 1080px) {
    .demo-connected__hero, .demo-connected__layout { grid-template-columns: 1fr; }
    .demo-route-list { grid-template-columns: repeat(2, 1fr); }
    .demo-phone { min-height: 710px; }
}
@media (max-width: 620px) {
    .demo-connected { width: min(100% - 1rem, 440px); }
    .demo-connected__hero > div:first-child { padding: 1.2rem; }
    .demo-connected__hero h1 { font-size: 2.15rem; }
    .demo-route-list { grid-template-columns: 1fr; }
    .demo-connected__layout { padding: .6rem; }
    .demo-phone-shell, .demo-web-panel { padding: .7rem; }
    .demo-phone { min-height: 735px; border-radius: 30px; padding: .9rem; }
    .demo-actions-grid { grid-template-columns: repeat(2, 1fr); }
}
