/* Panel-level Files & Setup actions; kept separate from recharge product cards. */
#services-list .panel-storefront-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 15px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#services-list .panel-storefront-card:not(.is-maintenance):hover { transform: translateY(-2px); }
#services-list .panel-card-open {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}
#services-list .panel-card-open:focus-visible,
#services-list .panel-card-setup:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
#services-list .panel-card-open:disabled { cursor: not-allowed; opacity: 1; }
#services-list .panel-card-setup {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 9px 9px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    background: linear-gradient(110deg,#2563eb,#5636d5);
    color: #fff;
    box-shadow: 0 4px 11px rgba(45,75,190,.18);
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    cursor: pointer;
    transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
#services-list .panel-card-setup:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 7px 15px rgba(45,75,190,.24); }
#services-list .panel-card-setup:active { transform: translateY(0) scale(.985); }
#services-list .panel-card-setup-arrow { margin-left: auto; font-size: 9px; opacity: .86; }
html[data-theme="dark"] #services-list .panel-card-setup { border-color: rgba(255,255,255,.16); box-shadow: 0 5px 14px rgba(0,0,0,.28); }

.pp-panel-setup-overlay[hidden] { display: none !important; }
body.pp-panel-setup-active { overflow: hidden; }
.pp-panel-setup-overlay {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(16px,env(safe-area-inset-top)) 15px max(16px,env(safe-area-inset-bottom));
    background: rgba(10,15,25,.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
}
.pp-panel-setup-overlay.is-open { opacity: 1; }
.pp-panel-setup-dialog {
    width: min(530px,100%);
    max-height: min(82dvh,760px);
    overflow: auto;
    padding: clamp(17px,4vw,25px);
    border: 1px solid rgba(37,99,235,.3);
    border-radius: 22px;
    background: #fff;
    color: #1c2637;
    box-shadow: 0 28px 80px rgba(4,10,25,.3);
    transform: translateY(10px) scale(.99);
    transition: transform .18s ease;
}
.pp-panel-setup-overlay.is-open .pp-panel-setup-dialog { transform: translateY(0) scale(1); }
.pp-panel-setup-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid #e8edf4; }
.pp-panel-setup-kicker { margin: 0 0 5px; color: #3569c8; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.pp-panel-setup-header h2 { margin: 0; color: #182337; font-size: clamp(17px,4vw,22px); font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; }
#pp-panel-setup-close { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid #dce3ec; border-radius: 50%; background: #f7f9fc; color: #344054; cursor: pointer; }
#pp-panel-setup-close:hover { border-color: #9eb5dd; background: #eef4ff; }
.pp-panel-setup-list { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.pp-panel-setup-item { display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; }
.pp-panel-setup-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #dbe6fb; border-radius: 50%; background: #eff5ff; color: #285db7; font-size: 10px; font-weight: 900; }
.pp-panel-setup-resource-copy { display: grid; min-width: 0; gap: 4px; }
.pp-panel-setup-resource-copy strong { color: inherit; font-size: 13px; font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; }
.pp-panel-setup-resource-copy small { color: #68758a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.pp-panel-setup-link,
.pp-panel-setup-video { display: flex; min-width: 0; min-height: 60px; align-items: center; justify-content: space-between; gap: 13px; padding: 12px 15px; border: 1px solid #dfe6f0; border-radius: 14px; background: #fbfcfe; color: #1859bd; text-decoration: none; text-align: left; cursor: pointer; }
.pp-panel-setup-link:hover,
.pp-panel-setup-video:hover { border-color: #b8c9e8; background: #f4f8ff; }
.pp-panel-setup-link > i { flex: 0 0 auto; color: #53647e; font-size: 12px; }
.pp-panel-setup-video { width: 100%; color: #1d2c44; }
.pp-panel-setup-thumb { position: relative; display: grid; flex: 0 0 90px; width: 90px; height: 54px; place-items: center; overflow: hidden; border-radius: 9px; background: #101827; }
.pp-panel-setup-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-panel-setup-thumb > i { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(20,28,44,.76); color: #fff; font-size: 10px; }
.pp-panel-setup-empty { display: grid; justify-items: center; gap: 7px; padding: 26px 14px; border: 1px dashed #cbd6e5; border-radius: 15px; color: #53647e; text-align: center; }
.pp-panel-setup-empty > i { color: #3569c8; font-size: 22px; }
.pp-panel-setup-empty strong { color: #26364d; font-size: 13px; }
.pp-panel-setup-empty span { font-size: 11px; }
.pp-panel-setup-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #e8edf4; color: #66748a; font-size: 10px; line-height: 1.45; }
.pp-panel-setup-note i { color: #c91e32; }
html[data-theme="dark"] .pp-panel-setup-dialog { border-color: #34465f; background: #151d2a; color: #edf2f8; }
html[data-theme="dark"] .pp-panel-setup-header { border-color: #303d50; }
html[data-theme="dark"] .pp-panel-setup-header h2,
html[data-theme="dark"] .pp-panel-setup-empty strong { color: #f3f6fb; }
html[data-theme="dark"] #pp-panel-setup-close { border-color: #3a4a60; background: #1d293a; color: #e7edf6; }
html[data-theme="dark"] .pp-panel-setup-number { border-color: #344b70; background: #1c2d47; color: #a8c7ff; }
html[data-theme="dark"] .pp-panel-setup-resource-copy small,
html[data-theme="dark"] .pp-panel-setup-note { color: #aab8ca; }
html[data-theme="dark"] .pp-panel-setup-link,
html[data-theme="dark"] .pp-panel-setup-video { border-color: #334155; background: #1a2638; color: #a8c7ff; }
html[data-theme="dark"] .pp-panel-setup-link:hover,
html[data-theme="dark"] .pp-panel-setup-video:hover { border-color: #4d668c; background: #202f45; }
html[data-theme="dark"] .pp-panel-setup-empty { border-color: #3a4a60; color: #b8c4d4; }
html[data-theme="dark"] .pp-panel-setup-note { border-color: #303d50; }

/* PRIME PANEL footer redesign: brand-red identity with theme-native surfaces. */
#site-footer.pp-footer {
    --pp-footer-ink: #171b24;
    --pp-footer-muted: #687080;
    --pp-footer-line: #e1e4e9;
    --pp-footer-surface: #fff;
    --pp-footer-soft: #f7f8fa;
    --pp-footer-red: #e50920;
    display: block;
    margin-top: 34px;
    border-top: 1px solid var(--pp-footer-line) !important;
    background: var(--pp-footer-surface) !important;
    color: var(--pp-footer-ink) !important;
    font-family: inherit;
}
#site-footer .pp-footer-inner { width: min(1180px,100%); margin-inline: auto; padding: 33px clamp(16px,4vw,36px) calc(112px + env(safe-area-inset-bottom)); }
#site-footer .pp-footer-top { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(155px,.8fr) minmax(175px,.9fr); gap: clamp(22px,4vw,50px); align-items: start; }
#site-footer .pp-footer-brand-lockup { display: flex; min-width: 0; align-items: center; gap: 13px; }
#site-footer .pp-footer-logo { width: 56px; height: 56px; }
#site-footer .pp-footer-brand-copy { min-width: 0; }
#site-footer .pp-footer-brand { margin: 0; color: var(--pp-footer-ink) !important; font-size: 19px; font-weight: 950; letter-spacing: .07em; line-height: 1.15; }
#site-footer .pp-footer-brand span { color: var(--pp-footer-red); }
#site-footer .pp-footer-tagline { margin: 5px 0 0; color: var(--pp-footer-muted) !important; font-size: 11px; line-height: 1.4; }
#site-footer .pp-footer-description { max-width: 390px; margin: 15px 0 13px; color: var(--pp-footer-muted) !important; font-size: 12px; line-height: 1.7; }
#site-footer .pp-footer-website { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(229,9,32,.32); border-radius: 999px; color: #a40b1c !important; font-size: 11px; font-weight: 800; text-decoration: none; transition: background-color .16s ease,border-color .16s ease; }
#site-footer .pp-footer-website:hover { border-color: var(--pp-footer-red); background: #fff3f4; }
#site-footer .pp-footer-website .fa-arrow-right { margin-left: 2px; }
#site-footer .pp-footer-nav { display: grid; align-content: start; gap: 9px; padding-left: clamp(0px,2vw,22px); border-left: 1px solid var(--pp-footer-line); }
#site-footer .pp-footer-heading { display: flex; align-items: center; gap: 9px; margin: 3px 0 7px; color: var(--pp-footer-ink) !important; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
#site-footer .pp-footer-heading > i { color: var(--pp-footer-red); font-size: 15px; }
#site-footer .pp-footer-link { display: flex; width: 100%; min-height: 36px; align-items: center; gap: 10px; padding: 5px 0; border: 0; background: transparent; color: #454c58 !important; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; transition: color .15s ease,transform .15s ease; }
#site-footer .pp-footer-link > i:first-child { width: 17px; color: var(--pp-footer-red); text-align: center; }
#site-footer .pp-footer-link:hover { color: #b10b1d !important; transform: translateX(2px); }
#site-footer .pp-footer-link-arrow { margin-left: auto; color: #9097a3 !important; font-size: 9px; }
#site-footer .pp-footer-payment { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 16px; align-items: center; margin-top: 28px; padding: 17px 20px; border: 1px solid rgba(229,9,32,.22); border-radius: 18px; background: linear-gradient(105deg,#fff1f2,#fff 57%,#fff6f5); }
#site-footer .pp-footer-payment-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #ffe1e4; color: var(--pp-footer-red); font-size: 24px; }
#site-footer .pp-footer-payment-copy { min-width: 0; }
#site-footer .pp-footer-payment h2 { margin: 0 0 5px; color: var(--pp-footer-ink); font-size: 14px; font-weight: 900; }
#site-footer .pp-footer-payment p { margin: 0; color: #555e6d; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
#site-footer #footer-history-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 10px; padding: 9px 15px; border: 1px solid #bb0a1e; border-radius: 999px; background: linear-gradient(110deg,#c90d22,#ed2638); color: #fff; font: inherit; font-size: 11px; font-weight: 850; white-space: nowrap; cursor: pointer; box-shadow: 0 5px 14px rgba(180,10,30,.16); }
#site-footer #footer-history-action:hover { filter: brightness(1.05); }
#site-footer .pp-footer-developer { display: grid; grid-template-columns: 58px minmax(220px,1.2fr) minmax(220px,1fr); align-items: center; gap: 15px; margin-top: 15px; padding: 16px 18px; border: 1px solid var(--pp-footer-line) !important; border-radius: 18px; background: #fbfbfc !important; box-shadow: 0 6px 18px rgba(15,23,42,.045) !important; animation: none !important; }
#site-footer .pp-footer-developer::before { content: none !important; animation: none !important; }
#site-footer .pp-footer-dev-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #ffe5e7; color: var(--pp-footer-red); font-size: 19px; }
#site-footer .pp-footer-dev-copy { min-width: 0; }
#site-footer .pp-footer-eyebrow { margin: 0 0 4px; color: #6b7280 !important; font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
#site-footer .pp-footer-credit { margin: 0; color: var(--pp-footer-ink) !important; font-size: 17px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
#site-footer .pp-footer-contacts { display: grid; gap: 8px; min-width: 0; padding-left: 17px; border-left: 1px solid var(--pp-footer-line); }
#site-footer .pp-footer-contacts[hidden] { display: none !important; }
#site-footer .pp-footer-contact-link { display: flex; min-width: 0; align-items: center; gap: 9px; color: #3f4856 !important; font-size: 11px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
#site-footer .pp-footer-contact-link .fa-whatsapp { color: #169b59 !important; font-size: 17px; }
#site-footer .pp-footer-contact-link .fa-envelope { color: #2563eb !important; font-size: 14px; }
#site-footer .pp-footer-contact-link:hover { color: var(--pp-footer-red) !important; }
#site-footer .pp-footer-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto 42px; gap: 18px; align-items: center; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--pp-footer-line); }
#site-footer .pp-footer-legal { display: grid; gap: 4px; color: var(--pp-footer-muted); font-size: 10px; line-height: 1.45; }
#site-footer .pp-footer-legal p { margin: 0; }
#site-footer .pp-footer-legal a { width: fit-content; color: var(--pp-footer-muted); text-decoration: none; }
#site-footer .pp-footer-legal a:hover { color: var(--pp-footer-red); }
#site-footer .pp-footer-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
#site-footer .pp-footer-social[hidden] { display: none !important; }
#site-footer .pp-footer-social-link,
#site-footer .pp-footer-back-top { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--pp-footer-line); border-radius: 50%; background: var(--pp-footer-soft); color: #353c48; text-decoration: none; transition: color .15s ease,border-color .15s ease,background-color .15s ease,transform .15s ease; }
#site-footer .pp-footer-social-link:hover { border-color: #f0a0aa; background: #fff1f2; color: var(--pp-footer-red); transform: translateY(-1px); }
#site-footer .pp-footer-back-top { width: 42px; height: 42px; border-color: #c41024; background: var(--pp-footer-red); color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(180,10,30,.18); }
#site-footer .pp-footer-back-top:hover { transform: translateY(-2px); background: #c90d22; }
#site-footer :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

html[data-theme="dark"] #site-footer.pp-footer {
    --pp-footer-ink: #f1f3f7;
    --pp-footer-muted: #aeb6c3;
    --pp-footer-line: #30343d;
    --pp-footer-surface: #111318;
    --pp-footer-soft: #1a1d24;
    --pp-footer-red: #f1263b;
    border-color: #30343d !important;
    background: #111318 !important;
    color: #d9dde5 !important;
}
html[data-theme="dark"] #site-footer .pp-footer-tagline,
html[data-theme="dark"] #site-footer .pp-footer-description { color: #aeb6c3 !important; }
html[data-theme="dark"] #site-footer .pp-footer-website { border-color: rgba(241,38,59,.45); color: #ff8995 !important; }
html[data-theme="dark"] #site-footer .pp-footer-website:hover { background: #291a20; }
html[data-theme="dark"] #site-footer .pp-footer-nav { border-color: #30343d; }
html[data-theme="dark"] #site-footer .pp-footer-link { color: #c3c9d3 !important; }
html[data-theme="dark"] #site-footer .pp-footer-link > i:first-child { color: #f1263b !important; }
html[data-theme="dark"] #site-footer .pp-footer-link:hover { color: #ff8d99 !important; }
html[data-theme="dark"] #site-footer .pp-footer-payment { border-color: rgba(241,38,59,.36); background: linear-gradient(105deg,#29171c,#191a20 58%,#24171c); }
html[data-theme="dark"] #site-footer .pp-footer-payment-mark { background: #49212a; color: #ff8d99; }
html[data-theme="dark"] #site-footer .pp-footer-payment h2 { color: #f5f6f8; }
html[data-theme="dark"] #site-footer .pp-footer-payment p { color: #c0c6d0; }
html[data-theme="dark"] #site-footer .pp-footer-developer { border-color: #303844 !important; background: #171a20 !important; box-shadow: 0 7px 20px rgba(0,0,0,.22) !important; animation: none !important; }
html[data-theme="dark"] #site-footer .pp-footer-dev-mark { background: #48212a; color: #ff8995; }
html[data-theme="dark"] #site-footer .pp-footer-eyebrow { color: #aeb6c3 !important; }
html[data-theme="dark"] #site-footer .pp-footer-contacts { border-color: #303844; }
html[data-theme="dark"] #site-footer .pp-footer-contact-link { color: #d4d8e0 !important; }
html[data-theme="dark"] #site-footer .pp-footer-developer .pp-footer-contact-link .fa-whatsapp { color: #25d366 !important; }
html[data-theme="dark"] #site-footer .pp-footer-developer .pp-footer-contact-link .fa-envelope { color: #60a5fa !important; }
html[data-theme="dark"] #site-footer .pp-footer-bottom { border-color: #30343d; }
html[data-theme="dark"] #site-footer .pp-footer-social-link { border-color: #343a46; background: #1a1d24; color: #e5e7eb; }
html[data-theme="dark"] #site-footer .pp-footer-social-link:hover { border-color: #92323d; background: #2a1b20; color: #ff8995; }
html[data-theme="dark"] #site-footer .pp-footer-back-top { color: #fff; }

/* Small, self-contained admin editor for ordered panel resources. */
.swal2-popup .pp-admin-setup-editor { display: grid; gap: 11px; max-height: min(67vh,680px); overflow: auto; padding: 1px 3px 5px; text-align: left; }
.swal2-popup .pp-admin-setup-intro { margin: 0; color: #566174; font-size: 11px; line-height: 1.55; }
.swal2-popup #pp-admin-setup-rows { display: grid; gap: 10px; }
.swal2-popup .pp-admin-setup-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 12px; border: 1px solid #dfe5ed; border-radius: 13px; background: #f9fafb; }
.swal2-popup .pp-admin-setup-row header { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; color: #263244; font-size: 11px; }
.swal2-popup .pp-admin-setup-row-actions { display: flex; gap: 5px; }
.swal2-popup .pp-admin-setup-row-actions button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dce3ec; border-radius: 8px; background: #fff; color: #475569; cursor: pointer; }
.swal2-popup .pp-admin-setup-row-actions button:disabled { opacity: .4; cursor: default; }
.swal2-popup .pp-admin-setup-row-actions button[data-setup-row-action="remove"] { color: #b42336; }
.swal2-popup .pp-admin-setup-row label { display: grid; min-width: 0; gap: 4px; color: #475569; font-size: 9px; font-weight: 800; }
.swal2-popup .pp-admin-setup-row label:nth-of-type(3) { grid-column: 1 / -1; }
.swal2-popup .pp-admin-setup-row input,
.swal2-popup .pp-admin-setup-row select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid #d4dce7; border-radius: 8px; background: #fff; color: #263244; font: inherit; font-size: 10px; font-weight: 550; }
.swal2-popup .pp-admin-setup-add { min-height: 39px; border: 1px dashed #9baed0; border-radius: 10px; background: #f3f7ff; color: #3156aa; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
html[data-theme="dark"] .swal2-popup .pp-admin-setup-intro { color: #b6c2d2; }
html[data-theme="dark"] .swal2-popup .pp-admin-setup-row { border-color: #354255; background: #182232; }
html[data-theme="dark"] .swal2-popup .pp-admin-setup-row header,
html[data-theme="dark"] .swal2-popup .pp-admin-setup-row label { color: #e0e7f0; }
html[data-theme="dark"] .swal2-popup .pp-admin-setup-row-actions button,
html[data-theme="dark"] .swal2-popup .pp-admin-setup-row input,
html[data-theme="dark"] .swal2-popup .pp-admin-setup-row select { border-color: #3b4a60; background: #111a28; color: #e7edf6; }
html[data-theme="dark"] .swal2-popup .pp-admin-setup-add { border-color: #435a84; background: #1b2b45; color: #a8c7ff; }

@media (max-width: 760px) {
    #site-footer .pp-footer-inner { padding-top: 27px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
    #site-footer .pp-footer-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px 16px; }
    #site-footer .pp-footer-identity { grid-column: 1 / -1; }
    #site-footer .pp-footer-nav { padding-left: 0; border-left: 0; }
    #site-footer .pp-footer-payment { grid-template-columns: 46px minmax(0,1fr); gap: 12px; padding: 14px; }
    #site-footer .pp-footer-payment-mark { width: 42px; height: 42px; font-size: 19px; }
    #site-footer #footer-history-action { grid-column: 2; justify-self: start; min-height: 39px; }
    #site-footer .pp-footer-developer { grid-template-columns: 45px minmax(0,1fr); gap: 10px 12px; padding: 14px; }
    #site-footer .pp-footer-dev-mark { width: 42px; height: 42px; }
    #site-footer .pp-footer-contacts { grid-column: 2; padding: 11px 0 0; border-top: 1px solid var(--pp-footer-line); border-left: 0; }
    #site-footer .pp-footer-bottom { grid-template-columns: minmax(0,1fr) 40px; gap: 10px; }
    #site-footer .pp-footer-social { grid-column: 1; grid-row: 2; justify-content: flex-start; }
    #site-footer .pp-footer-back-top { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 420px) {
    #services-list .panel-card-setup { min-height: 35px; gap: 6px; margin-inline: 7px; font-size: 9px; }
    #site-footer .pp-footer-inner { padding-right: 15px; padding-left: 15px; }
    #site-footer .pp-footer-top { gap: 21px 13px; }
    #site-footer .pp-footer-brand { font-size: 17px; }
    #site-footer .pp-footer-logo { width: 49px; height: 49px; }
    #site-footer .pp-footer-payment { border-radius: 15px; }
    #site-footer .pp-footer-payment h2 { font-size: 12px; }
    #site-footer .pp-footer-payment p { font-size: 10px; }
    #site-footer #footer-history-action { padding-inline: 12px; font-size: 10px; }
    #site-footer .pp-footer-credit { font-size: 15px; }
    #site-footer .pp-footer-contact-link { font-size: 10px; }
    .swal2-popup .pp-admin-setup-row { grid-template-columns: minmax(0,1fr); }
    .swal2-popup .pp-admin-setup-row label:nth-of-type(3) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    #services-list .panel-storefront-card,
    #services-list .panel-card-setup,
    .pp-panel-setup-overlay,
    .pp-panel-setup-dialog,
    #site-footer .pp-footer-link,
    #site-footer .pp-footer-social-link,
    #site-footer .pp-footer-back-top { transition: none !important; animation: none !important; }
}

/* Glass header and direction-aware chrome, matched to the existing bottom tabs. */
#site-top-shell {
    background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(244,247,251,.76)) !important;
    border-bottom: 1px solid rgba(148,163,184,.24);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 8px 26px rgba(15,23,42,.08);
    transition: transform .18s cubic-bezier(.22,.68,.28,1), opacity .15s ease !important;
    will-change: transform, opacity;
}
#site-top-shell > header,
#main-site-header {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
#bottom-nav {
    transition: transform .18s cubic-bezier(.22,.68,.28,1), opacity .15s ease !important;
    will-change: transform, opacity;
}
#site-top-shell.pp-scroll-chrome-hidden {
    transform: translateY(calc(-100% - 8px));
    opacity: 0;
    pointer-events: none;
}
#bottom-nav.pp-scroll-chrome-hidden {
    transform: translate(-50%, calc(100% + 20px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
html[data-theme="dark"] #site-top-shell {
    background: linear-gradient(145deg, rgba(24,31,43,.88), rgba(16,22,32,.76)) !important;
    border-bottom-color: rgba(148,163,184,.18);
    box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
html[data-theme="dark"] #site-top-shell > header,
html[data-theme="dark"] #main-site-header {
    background: transparent !important;
}
@media (min-width: 768px) {
    #bottom-nav.pp-scroll-chrome-hidden { transform: translateY(calc(100% + 18px)) !important; }
}
@media (prefers-reduced-motion: reduce) {
    #site-top-shell,
    #bottom-nav { transition: none !important; }
}
