/* Demo landing + top notice */

.demo-landing {

    min-height: 100vh;

    background: #0f172a;

    margin: 0;

}



.demo-landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.demo-landing-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fef08a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(254, 240, 138, 0.35);
}

.demo-landing-header__phone:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.45);
}

.demo-landing-header__brand {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.demo-landing-header__brand:hover {
    color: #fff;
}

.demo-landing-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}



.demo-banner-wrap {

    border-radius: 12px;

    overflow: hidden;

    margin-bottom: 16px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

}



.demo-banner-img {

    width: 100%;

    height: auto;

    display: block;

}



.demo-banner-fallback {

    background: linear-gradient(135deg, #1e3a8a, #2563eb);

    border-radius: 12px;

    margin-bottom: 16px;

}



.demo-landing-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-landing-card__head {
    text-align: center;
    margin-bottom: 22px;
}

.demo-landing-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.demo-landing-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.25;
}

.demo-landing-lead {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.demo-landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.demo-landing-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 14px 10px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.demo-landing-feature i {
    font-size: 1.25rem;
    color: #2563eb;
}

.demo-landing-wa {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #78350f;
    margin-bottom: 22px;
}

.demo-landing-wa > i {
    font-size: 1.5rem;
    color: #25d366;
    margin-top: 2px;
}

.demo-landing-wa a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.demo-landing-wa a:hover {
    text-decoration: underline;
}

.demo-landing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.demo-landing-btn-primary,
.demo-landing-btn-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    font-weight: 700;
}

.demo-landing-btn-primary i,
.demo-landing-btn-secondary i {
    font-size: 1.35rem;
}

.demo-landing-note {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin: 0;
    padding-top: 4px;
}



.demo-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
    min-height: 42px;
    line-height: 1.35;
}

.demo-top-bar__left,
.demo-top-bar__right {
    flex: 0 0 auto;
}

.demo-top-bar__center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-weight: 500;
}

.demo-top-bar__icon {
    flex-shrink: 0;
    opacity: 0.9;
    font-size: 13px;
}

.demo-top-bar__msg strong {
    font-weight: 800;
    color: #fef08a;
}

.demo-top-bar__wa {
    display: inline;
    opacity: 0.92;
}

.demo-top-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.demo-top-bar__phone:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.demo-top-bar__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fef08a;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(254, 240, 138, 0.35);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.demo-top-bar__home:hover {
    color: #fff;
    background: rgba(254, 240, 138, 0.25);
}

@media (max-width: 768px) {
    :root {
        --demo-bar-height: 48px;
    }

    .demo-top-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        min-height: var(--demo-bar-height);
    }

    .demo-top-bar__left {
        justify-self: start;
    }

    .demo-top-bar__right {
        justify-self: end;
    }

    .demo-top-bar__center {
        grid-column: 2;
        justify-self: center;
        max-width: 42vw;
    }

    .demo-top-bar__icon {
        display: none;
    }

    .demo-top-bar__msg {
        font-size: 9px;
        line-height: 1.25;
        text-align: center;
    }

    .demo-top-bar__wa {
        display: none;
    }

    .demo-top-bar__phone {
        font-size: 11px;
        padding: 6px 10px;
    }

    .demo-top-bar__phone span {
        font-size: 11px;
    }

    .demo-top-bar__home {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 420px) {
    :root {
        --demo-bar-height: 44px;
    }

    .demo-top-bar__center {
        display: none;
    }

    .demo-top-bar {
        grid-template-columns: 1fr auto;
    }

    .demo-top-bar__right {
        grid-column: 2;
    }
}

/* Demo footer — index + all app pages (contact left, brand right, mobile stack) */
.demo-landing .platform-credit-wrap--login,
body.demo-app .platform-credit-wrap--app {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    padding: 0 4px 8px;
    box-sizing: border-box;
}

.si-demo-footer.platform-credit--login,
.si-demo-footer.platform-credit--app {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    width: 100%;
    padding: 16px 20px;
    margin: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}

.si-demo-footer .pc-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.si-demo-footer .pc-block--contact {
    align-items: flex-start;
    text-align: left;
}

.si-demo-footer .pc-block--brand {
    align-items: flex-end;
    text-align: right;
}

.si-demo-footer .pc-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    line-height: 1.2;
    margin: 0;
}

.si-demo-footer .pc-brand {
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1.25;
    word-break: break-word;
}

.si-demo-footer .pc-brand:hover {
    color: #fef08a;
}

.si-demo-footer .pc-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    color: #fef08a;
    font-weight: 700;
    font-size: clamp(14px, 3.5vw, 16px);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(254, 240, 138, 0.45);
    white-space: nowrap;
    max-width: 100%;
}

.si-demo-footer .pc-phone span {
    line-height: 1;
}

.si-demo-footer .pc-phone:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.65);
}

.si-demo-footer .pc-vrule {
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    min-height: 48px;
    background: rgba(148, 163, 184, 0.35);
    border-radius: 1px;
}

body.demo-app .main-content {
    padding-bottom: 24px;
}

@media (max-width: 640px) {
    .demo-landing-features {
        grid-template-columns: 1fr;
    }

    .demo-landing-actions {
        grid-template-columns: 1fr;
    }

    .demo-landing-card {
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .si-demo-footer.platform-credit--login,
    .si-demo-footer.platform-credit--app {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 14px;
    }

    .si-demo-footer .pc-vrule {
        display: none;
    }

    .si-demo-footer .pc-block--contact,
    .si-demo-footer .pc-block--brand {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .si-demo-footer .pc-phone {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .demo-landing .platform-credit-wrap--login,
    body.demo-app .platform-credit-wrap--app {
        padding: 0 0 16px;
    }
}

@media (max-width: 400px) {
    .si-demo-footer .pc-phone {
        white-space: normal;
        font-size: 14px;
        padding: 10px 12px;
    }
}



:root {
    --demo-bar-height: 42px;
}



/* Sidebar below demo bar — fixes hidden logo */

body.demo-app .sidebar {

    top: var(--demo-bar-height);

    height: calc(100vh - var(--demo-bar-height));

    height: calc(100dvh - var(--demo-bar-height));

}



body.demo-app .sidebar-header {

    padding: 14px 12px;

    align-items: flex-start;

    gap: 8px;

}



body.demo-app .sidebar-header .logo {

    flex: 1;

    min-width: 0;

    align-items: flex-start !important;

    gap: 8px !important;

}



body.demo-app .sidebar-logo-img {

    width: 40px;

    height: 40px;

    max-width: 40px;

    max-height: 40px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;

}



body.demo-app .sidebar-header .sidebar-text {

    font-size: 0.8rem;

    line-height: 1.25;

    white-space: normal;

    word-break: break-word;

    display: block;

    max-width: 168px;

}



body.demo-app .main-content {

    min-height: calc(100vh - var(--demo-bar-height));

    min-height: calc(100dvh - var(--demo-bar-height));

    overflow-x: hidden;

}



body.demo-app.page-pos .main-content,

body.demo-app.page-pos #mainContent {

    height: calc(100dvh - var(--demo-bar-height));

    max-height: calc(100dvh - var(--demo-bar-height));

}



body.demo-app.page-pos .pos-shell {

    flex: 1 1 auto;

    min-height: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



body.demo-app.page-pos .pos-wrap {

    flex: 1 1 auto;

    min-height: 0;

}



body.demo-app.page-pos .pos-sidebar-wrap {

    max-height: 100%;

    min-height: 0;

}



body.demo-app.page-pos .pos-cart-column {

    min-height: 0;

}



body.demo-app.page-pos .pos-cart-footer {

    font-size: 0.78rem;

}



body.demo-app.page-pos .pos-checkout-dock {

    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));

}



body.demo-app .demo-readonly-banner {

    border-left: 4px solid #2563eb;

}



body.demo-app .demo-page-readonly .btn:not(.btn-close):disabled,

body.demo-app a.btn.disabled {

    opacity: 0.55;

    pointer-events: none;

    cursor: not-allowed;

}



body.demo-app fieldset.demo-fieldset-lock {

    border: 0;

    margin: 0;

    padding: 0;

}



body.demo-app fieldset.demo-fieldset-lock:disabled input,

body.demo-app fieldset.demo-fieldset-lock:disabled select,

body.demo-app fieldset.demo-fieldset-lock:disabled textarea,

body.demo-app fieldset.demo-fieldset-lock:disabled button {

    opacity: 1;

    cursor: default;

}



/* ——— Demo app layout by device ———
   Phone + tablet (≤1024): drawer sidebar + bottom nav (iPad Pro included)
   Desktop (≥1025): fixed sidebar, no bottom nav, content below demo bar
*/

/* Tablet: readable demo top bar (between phone grid and desktop flex) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --demo-bar-height: 52px;
    }

    .demo-top-bar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        padding: 10px 14px;
        min-height: var(--demo-bar-height);
    }

    .demo-top-bar__center {
        flex: 1 1 auto;
        max-width: none;
    }

    .demo-top-bar__icon {
        display: inline;
    }

    .demo-top-bar__msg {
        font-size: 11px;
        line-height: 1.35;
    }

    .demo-top-bar__wa {
        display: inline;
    }
}

/* Phone + tablet: mobile shell */
@media (max-width: 1024px) {
    body.demo-app .sidebar {
        transform: translateX(-100%);
        width: min(300px, 88vw);
        z-index: 1003;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
    }

    body.demo-app .sidebar.open {
        transform: translateX(0);
    }

    body.demo-app .sidebar #toggleSidebar {
        display: none;
    }

    body.demo-app .main-content {
        margin-left: 0 !important;
        padding-top: calc(var(--demo-bar-height, 48px) + 52px) !important;
        padding-left: max(12px, env(safe-area-inset-left)) !important;
        padding-right: max(12px, env(safe-area-inset-right)) !important;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(100dvh - var(--demo-bar-height, 48px));
    }

    body.demo-app .main-content.expanded {
        margin-left: 0 !important;
    }

    body.demo-app .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        top: calc(var(--demo-bar-height, 48px) + 8px);
        left: max(10px, env(safe-area-inset-left));
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 10px;
        z-index: 1002;
    }

    body.demo-app .mobile-nav {
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0;
        padding: 4px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        min-height: 64px;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
        z-index: 1001;
    }

    body.demo-app .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 0;
        min-width: 0;
        max-width: 20%;
        padding: 2px 4px 4px;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.15;
        color: #64748b;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    body.demo-app .mobile-nav a i {
        display: block;
        font-size: 19px;
        margin-bottom: 2px;
        line-height: 1;
    }

    body.demo-app .mobile-nav a.active {
        color: #2563eb;
        font-weight: 700;
    }

    body.demo-app .mobile-nav a.pos-fab {
        flex: 0 0 68px;
        max-width: none;
        margin-top: -14px;
        padding-bottom: 0;
    }

    body.demo-app .mobile-nav a.pos-fab span {
        display: flex;
        width: 48px;
        height: 48px;
        margin: 0 auto 2px;
        font-size: 18px;
        border-radius: 50%;
        background: linear-gradient(145deg, #3b82f6, #2563eb);
        color: #fff;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
        align-items: center;
        justify-content: center;
    }

    body.demo-app .mobile-nav a.pos-fab.active {
        color: #2563eb;
    }

    body.demo-app.page-pos {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.demo-app.page-pos .main-content,
    body.demo-app.page-pos #mainContent {
        margin-left: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        padding-top: calc(var(--demo-bar-height, 48px) + 48px) !important;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.demo-app .top-bar {
        margin-top: 0;
    }

    body.demo-app .brand-top-banner {
        margin-top: 0;
    }
}

/* Desktop / large laptop */
@media (min-width: 1025px) {
    :root {
        --demo-bar-height: 42px;
    }

    body.demo-app .mobile-menu-btn,
    body.demo-app .mobile-nav {
        display: none !important;
    }

    body.demo-app .sidebar {
        transform: none !important;
        width: 268px;
        top: var(--demo-bar-height);
        height: calc(100dvh - var(--demo-bar-height));
    }

    body.demo-app .sidebar.collapsed {
        width: 72px;
    }

    body.demo-app .main-content {
        margin-left: 268px !important;
        padding-top: calc(var(--demo-bar-height) + 16px) !important;
        padding-bottom: 32px !important;
        min-height: calc(100dvh - var(--demo-bar-height));
    }

    body.demo-app .main-content.expanded {
        margin-left: 72px !important;
    }

    body.demo-app.page-pos .main-content,
    body.demo-app.page-pos #mainContent {
        margin-left: 268px !important;
        padding-top: calc(var(--demo-bar-height) + 8px) !important;
        height: calc(100dvh - var(--demo-bar-height)) !important;
        max-height: calc(100dvh - var(--demo-bar-height)) !important;
    }

    body.demo-app.page-pos .main-content.expanded {
        margin-left: 72px !important;
    }
}

@media (max-width: 380px) {
    body.demo-app .mobile-nav a {
        font-size: 8px;
    }

    body.demo-app .mobile-nav a i {
        font-size: 16px;
    }

    body.demo-app .mobile-nav a.pos-fab span {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

