/* assets/ui/simuvote-ui.css - shared controls added to every page by includes/site_ui.php
   - sidebar collapse (icons only) on dashboards
   - the + button menu, back-to-top arrow, help assistant panel, share sheet
   - dark mode
   - the SimuVote logo everywhere: phone mark + wordmark in the logo's colours */

/* ---------- Logo (assets/images/simuvote-logo.png): purple #554FD4 to pink #FA6486 ---------- */
/* Phone clearly taller than the letters, close to the word (as in the logo picture), without
   making menus and sidebars taller */
.sv-logo-mark {
    display: inline-block;
    height: 1.6em;
    width: auto;
    margin: -.08em .14em -.08em 0;
    vertical-align: middle;
    flex-shrink: 0;
    background: none !important;
    -webkit-text-fill-color: initial;
}
/* Logo containers that space their children (flex gap) keep phone and word close too */
:is(div, a, span, h1, h2, h3):has(> .sv-logo-mark + .sv-logo-word) {
    gap: 0 !important;
    column-gap: 0 !important;
    align-items: center;
}
.sv-logo-word {
    background: linear-gradient(90deg, #554FD4 0%, #9A57B8 55%, #FA6486 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -.01em;
}

.sv-ui {
    --sv-primary: #6C63FF;
    --sv-primary-dark: #554FD8;
    --sv-accent: #FF6584;
    --sv-gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --sv-text: #1A1A2E;
    --sv-muted: #6b7280;
    --sv-surface: #ffffff;
    --sv-soft: #F4F3FF;
    --sv-fab-bottom: 22px;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.sv-ui *, .sv-ui *::before, .sv-ui *::after { box-sizing: border-box; }
.sv-ui button { font-family: inherit; }

/* ---------- + button and its menu ---------- */
.sv-fab {
    position: fixed;
    right: 22px;
    bottom: var(--sv-fab-bottom);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    /* The box also covers the space of the hidden menu, right where the back-to-top arrow sits:
       only the + button (and the menu once open) take clicks, so the arrow underneath works */
    pointer-events: none;
}
.sv-fab-main { pointer-events: auto; }

.sv-fab-main, .sv-top {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--sv-gradient);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
    font-size: 1.35rem;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.sv-fab-main:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(108, 99, 255, 0.45); }
.sv-fab-main:focus-visible, .sv-fab-item:focus-visible, .sv-top:focus-visible { outline: 3px solid rgba(108, 99, 255, .45); outline-offset: 3px; }
.sv-fab-main i { transition: transform .3s ease; }
.sv-fab.open .sv-fab-main i { transform: rotate(135deg); }

.sv-fab-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.sv-fab-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none !important;
    opacity: 0;
    transform: translateY(14px) scale(.85);
    transition: opacity .2s ease, transform .2s ease;
}

.sv-fab-item i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sv-surface);
    color: var(--sv-primary);
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(26, 26, 46, 0.18);
    transition: background .2s ease, color .2s ease;
}

.sv-fab-item:hover i { background: var(--sv-primary); color: #fff; }

.sv-fab-label {
    background: var(--sv-text);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.sv-fab.open .sv-fab-menu { pointer-events: auto; }
.sv-fab.open .sv-fab-item { opacity: 1; transform: none; }
.sv-fab.open .sv-fab-item:nth-child(5) { transition-delay: .02s; }
.sv-fab.open .sv-fab-item:nth-child(4) { transition-delay: .05s; }
.sv-fab.open .sv-fab-item:nth-child(3) { transition-delay: .08s; }
.sv-fab.open .sv-fab-item:nth-child(2) { transition-delay: .11s; }
.sv-fab.open .sv-fab-item:nth-child(1) { transition-delay: .14s; }

/* Back to top: sits just above the + button while the menu is closed */
.sv-top {
    position: fixed;
    right: 28px;
    bottom: calc(var(--sv-fab-bottom) + 68px);
    width: 44px;
    height: 44px;
    font-size: 1rem;
    z-index: 1089;
    background: var(--sv-surface);
    color: var(--sv-primary);
    box-shadow: 0 6px 18px rgba(26, 26, 46, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.sv-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.sv-top:hover { background: var(--sv-primary); color: #fff; }
.sv-ui.menu-open .sv-top { opacity: 0; pointer-events: none; }

/* ---------- Backdrop, toast ---------- */
.sv-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 39, .45);
    z-index: 1095;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.sv-backdrop.show { opacity: 1; pointer-events: auto; }

.sv-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--sv-fab-bottom) + 80px);
    transform: translate(-50%, 20px);
    background: var(--sv-text);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: .9rem;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    max-width: calc(100% - 32px);
    text-align: center;
}

.sv-toast.show { opacity: 1; transform: translate(-50%, 0); }

.sv-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, .18);
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Help assistant (slides in from the right) ---------- */
.sv-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    height: 100dvh;
    width: 400px;
    max-width: 100%;
    background: var(--sv-surface);
    color: var(--sv-text);
    z-index: 1096;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
    transform: translateX(105%);
    transition: transform .3s ease;
}

.sv-panel.open { transform: none; }

.sv-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--sv-gradient);
    color: #fff;
}

.sv-panel-title { font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }

.sv-chat {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--sv-soft);
}

.sv-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .92rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.sv-msg a { color: inherit; text-decoration: underline; }
.sv-bot { align-self: flex-start; background: var(--sv-surface); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.sv-user { align-self: flex-end; background: var(--sv-primary); color: #fff; border-bottom-right-radius: 4px; }

.sv-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-suggest button {
    border: 1px solid rgba(108, 99, 255, .35);
    background: var(--sv-surface);
    color: var(--sv-primary-dark);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: .82rem;
    cursor: pointer;
}

.sv-suggest button:hover { background: var(--sv-primary); color: #fff; }
/* Questions to tap under the assistant's latest answer */
.sv-chips { margin: -2px 0 6px; align-self: flex-start; }

.sv-typing { display: inline-flex; gap: 4px; }
.sv-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sv-muted); animation: svBlink 1s infinite ease-in-out; }
.sv-typing span:nth-child(2) { animation-delay: .15s; }
.sv-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes svBlink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.sv-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ececf6;
    background: var(--sv-surface);
    margin: 0;
}

.sv-chat-input input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dcdcf0;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 16px; /* no zoom on iPhone */
    font-family: inherit;
    color: var(--sv-text);
    background: #fff;
    outline: none;
}

.sv-chat-input input:focus { border-color: var(--sv-primary); box-shadow: 0 0 0 3px rgba(108, 99, 255, .15); }

.sv-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--sv-gradient);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---------- Share sheet ---------- */
.sv-sheet {
    position: fixed;
    left: 50%;
    bottom: 24px;
    width: 420px;
    max-width: calc(100% - 32px);
    background: var(--sv-surface);
    color: var(--sv-text);
    border-radius: 20px;
    padding: 18px;
    z-index: 1096;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    transform: translate(-50%, 130%);
    transition: transform .3s ease;
}

.sv-sheet.open { transform: translate(-50%, 0); }
.sv-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; }
.sv-sheet .sv-icon-btn { background: var(--sv-soft); color: var(--sv-text); }

.sv-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }

.sv-share-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--sv-text) !important;
    text-decoration: none !important;
    font-size: .78rem;
    cursor: pointer;
    text-align: center;
}

.sv-share-grid a[hidden] { display: none; }

.sv-share-grid i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--sv-primary);
}

.sv-share-grid [data-share="whatsapp"] i { background: #25D366; }
.sv-share-grid [data-share="facebook"] i { background: #1877F2; }
.sv-share-grid [data-share="x"] i { background: #111; }
.sv-share-grid [data-share="telegram"] i { background: #229ED9; }
.sv-share-grid [data-share="sms"] i { background: #FFB84D; }
.sv-share-grid [data-share="email"] i { background: #FF6584; }

.sv-share-url {
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--sv-soft);
    font-size: .8rem;
    color: var(--sv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Phones ---------- */
@media (max-width: 576px) {
    .sv-fab { right: 16px; }
    .sv-top { right: 22px; }
    .sv-fab-main { width: 52px; height: 52px; }
    .sv-panel { width: 100%; }
    .sv-sheet { bottom: 16px; }
}

/* ---------- Sidebar: icons only (dashboards, wide screens) ---------- */
.sv-sb-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, .16);
    color: inherit;
    cursor: pointer;
    transition: background .2s ease;
    flex-shrink: 0;
}

.sv-sb-toggle:hover { background: rgba(255, 255, 255, .3); }
.sv-sb-toggle.on-light { background: rgba(108, 99, 255, .1); color: #554FD8; }
.sv-sb-toggle.on-light:hover { background: rgba(108, 99, 255, .2); }
.sv-sb-toggle svg { width: 22px; height: 22px; display: block; }
.sv-sb-toggle .sv-chev { transition: transform .3s ease; transform-box: fill-box; transform-origin: center; }
html.sv-sb-collapsed .sv-sb-toggle .sv-chev { transform: rotate(180deg); }

.sv-sb-bar {
    display: none;
    justify-content: flex-end;
    padding: 0 14px;
    margin: -6px 0 6px;
}

@media (min-width: 1201px) {
    .sv-sb-toggle { display: inline-flex; }
    .sv-sb-bar { display: flex; }

    .sv-has-sidebar .sv-sidebar,
    .sv-has-sidebar .sv-main { transition: width .3s ease, margin-left .3s ease; }

    html.sv-sb-collapsed .sv-sidebar { width: 80px !important; overflow-x: hidden; }
    html.sv-sb-collapsed .sv-main { margin-left: 80px !important; }
    html.sv-sb-collapsed .sv-sb-bar { justify-content: center; padding: 0; }

    html.sv-sb-collapsed .sv-sidebar .logo { padding-left: 0 !important; padding-right: 0 !important; text-align: center; justify-content: center; }
    html.sv-sb-collapsed .sv-sidebar .logo span,
    html.sv-sb-collapsed .sv-sidebar .logo h1,
    html.sv-sb-collapsed .sv-sidebar .logo h2,
    html.sv-sb-collapsed .sv-sidebar .logo h3,
    html.sv-sb-collapsed .sv-sidebar .logo small,
    html.sv-sb-collapsed .sv-sidebar .sv-sb-hide { display: none !important; }

    /* Labels hidden (text nodes too, via font-size), icons centred */
    html.sv-sb-collapsed .sv-sidebar .nav-link {
        display: flex !important;
        align-items: center;
        font-size: 0 !important;
        text-align: center;
        padding: 14px 0 !important;
        margin: 5px 12px !important;
        border-radius: 14px !important;
        justify-content: center;
        transform: none !important;
        position: relative;
    }

    html.sv-sb-collapsed .sv-sidebar .nav-link > span,
    html.sv-sb-collapsed .sv-sidebar .nav-link .badge { display: none !important; }

    html.sv-sb-collapsed .sv-sidebar .nav-link i {
        font-size: 1.15rem !important;
        width: auto !important;
        margin: 0 !important;
    }
}

@media print {
    .sv-ui, .sv-sb-toggle, .sv-sb-bar { display: none !important; }
}

/* ---------- Dark mode ----------
   One rule for every page: the page colours are inverted (white becomes near-black) and the hue is
   turned back, so brand colours stay close to the original. Photos and videos are inverted again so
   they look normal. Fixed elements keep working because the filter is on the root element. */
html.sv-dark {
    filter: invert(1) hue-rotate(180deg) contrast(.9);
    background: #fff;
}

html.sv-dark .sv-fab-main,
html.sv-dark .sv-panel-head,
html.sv-dark .sv-send,
html.sv-dark .sv-user,
html.sv-dark .sv-share-grid i,
html.sv-dark img,
html.sv-dark video,
html.sv-dark iframe,
html.sv-dark picture,
html.sv-dark .sv-keep-colors {
    filter: invert(1) hue-rotate(180deg);
}

html.sv-dark img[src$=".svg"],
html.sv-dark .sv-keep-colors img,
html.sv-dark .sv-keep-colors video,
html.sv-dark .sv-keep-colors iframe,
html.sv-dark .sv-keep-colors picture { filter: none; }

/* ---------- One font family on every page (as on the home page) ---------- */
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Montserrat', 'Poppins', sans-serif; }
button, input, select, textarea, .btn, .form-control, .form-select, .dropdown-item, .nav-link { font-family: inherit; }

/* ---------- Confirm dialog (svConfirm / data-confirm, in simuvote-ui.js) ---------- */
html.sv-confirm-open, html.sv-confirm-open body { overflow: hidden; }
.sv-confirm {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(26, 26, 46, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.sv-confirm.show { opacity: 1; visibility: visible; }
.sv-confirm-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    color: #1A1A2E;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(26, 26, 46, .3);
    padding: 28px 24px 22px;
    text-align: center;
    transform: translateY(14px) scale(.96);
    transition: transform .2s cubic-bezier(.2, .9, .3, 1.2);
}
.sv-confirm.show .sv-confirm-box { transform: none; }
.sv-confirm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: #F1EFFF;
    color: #6C63FF;
    box-shadow: 0 0 0 8px rgba(108, 99, 255, .07);
}
.sv-confirm.is-danger .sv-confirm-icon { background: #FFECEF; color: #E5484D; box-shadow: 0 0 0 8px rgba(229, 72, 77, .07); }
.sv-confirm-title {
    margin: 0 0 8px;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1A1A2E;
    overflow-wrap: anywhere;
}
.sv-confirm-text {
    margin: 0;
    max-height: 45vh;
    overflow: auto;
    color: #5b6170;
    font-size: .95rem;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.sv-confirm-actions { display: flex; gap: 10px; margin-top: 24px; }
.sv-confirm-actions button {
    flex: 1;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
}
.sv-confirm-actions button:active { transform: scale(.97); }
.sv-confirm-actions button:focus-visible { outline: 3px solid rgba(108, 99, 255, .45); outline-offset: 2px; }
.sv-confirm-cancel { background: #F1F1F6; color: #1A1A2E; }
.sv-confirm-cancel:hover { background: #E5E5EE; }
.sv-confirm-ok {
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(108, 99, 255, .3);
}
.sv-confirm-ok:hover { box-shadow: 0 10px 24px rgba(108, 99, 255, .4); }
.sv-confirm.is-danger .sv-confirm-ok { background: #E5484D; box-shadow: 0 8px 20px rgba(229, 72, 77, .3); }
.sv-confirm.is-danger .sv-confirm-ok:hover { background: #D63D42; }
@media (max-width: 400px) {
    .sv-confirm-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
    .sv-confirm, .sv-confirm-box { transition: none; }
}
/* Dark mode inverts the page; the coloured button keeps its colours */
html.sv-dark .sv-confirm-ok { filter: invert(1) hue-rotate(180deg); }

/* ---------- Dashboard menu in groups (includes/dashboard_menu.php) ---------- */
.sv-nav-group {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
    padding: 14px 20px 4px;
    margin: 0;
    pointer-events: none;
    white-space: nowrap;
}
.sv-nav-group:first-child { padding-top: 4px; }
@media (min-width: 1201px) {
    /* Icons-only sidebar: each group label becomes a thin line */
    html.sv-sb-collapsed .sv-sidebar .sv-nav-group {
        font-size: 0 !important;
        padding: 0 !important;
        height: 1px;
        margin: 10px 22px !important;
        background: currentColor;
        opacity: .25;
    }
}

/* ---------- Settings tabs (Profile / Password / Alerts / Room settings) ---------- */
.sv-settings-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    margin: 0 0 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}
.sv-settings-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    color: #4a4a68;
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.sv-settings-tabs a i { color: #6C63FF; }
.sv-settings-tabs a:hover { background: rgba(108, 99, 255, .08); color: #554FD8; }
.sv-settings-tabs a.active { background: linear-gradient(135deg, #6C63FF 0%, #8B7BFF 100%); color: #fff; }
.sv-settings-tabs a.active i { color: #fff; }
@media (max-width: 576px) {
    .sv-settings-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .sv-settings-tabs::-webkit-scrollbar { display: none; }
    .sv-settings-tabs a { white-space: nowrap; padding: 8px 12px; }
}

/* ---------- "Getting started" card (includes/setup_checklist.php) ---------- */
.sv-setup {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
    border-top: 4px solid #6C63FF;
}
.sv-setup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sv-setup-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #2d2b4a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sv-setup-head h2 i { color: #6C63FF; }
.sv-setup-head p { margin: 0; color: #6b6b85; font-size: .92rem; }
.sv-setup-hide {
    border: none;
    background: transparent;
    color: #9a9ab0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    cursor: pointer;
}
.sv-setup-hide:hover { background: rgba(0, 0, 0, .05); color: #4a4a68; }
.sv-setup-progress { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; }
.sv-setup-bar { flex: 1; height: 8px; border-radius: 8px; background: #ecebf7; overflow: hidden; }
.sv-setup-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #6C63FF, #FF6584); transition: width .4s ease; }
.sv-setup-count { font-weight: 700; color: #2d2b4a; font-size: .9rem; white-space: nowrap; }
.sv-setup-count span { font-weight: 500; color: #6b6b85; }
.sv-setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sv-setup-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ecebf3;
    transition: border-color .2s ease, background .2s ease;
}
.sv-setup-step.is-next { border-color: #6C63FF; background: rgba(108, 99, 255, .05); }
.sv-setup-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    background: #ecebf7;
    color: #554FD8;
}
.sv-setup-step.is-next .sv-setup-mark { background: #6C63FF; color: #fff; }
.sv-setup-step.is-done .sv-setup-mark { background: #28a745; color: #fff; }
.sv-setup-body { flex: 1; min-width: 0; }
.sv-setup-title { font-weight: 600; color: #2d2b4a; display: flex; align-items: center; gap: 8px; }
.sv-setup-title i { color: #6C63FF; font-size: .9rem; width: 16px; text-align: center; }
.sv-setup-step.is-done .sv-setup-title { color: #6b6b85; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.sv-setup-step.is-done .sv-setup-title i { color: #28a745; }
.sv-setup-text { color: #6b6b85; font-size: .85rem; margin-top: 2px; }
.sv-setup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #d9d7f3;
    color: #554FD8;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s ease;
}
.sv-setup-btn:hover { background: rgba(108, 99, 255, .08); color: #554FD8; }
.sv-setup-btn.is-primary { background: linear-gradient(135deg, #6C63FF 0%, #8B7BFF 100%); color: #fff; border-color: transparent; }
.sv-setup-btn.is-primary:hover { color: #fff; box-shadow: 0 6px 16px rgba(108, 99, 255, .35); }
.sv-setup-link { color: #9a9ab0; font-size: .85rem; text-decoration: none; flex-shrink: 0; }
.sv-setup-link:hover { color: #554FD8; text-decoration: underline; }
@keyframes svSetupFlash { 0%, 100% { box-shadow: 0 5px 20px rgba(0, 0, 0, .05); } 30%, 70% { box-shadow: 0 0 0 4px rgba(108, 99, 255, .45); } }
.sv-setup-flash { animation: svSetupFlash 1.6s ease 1; }
@media (max-width: 576px) {
    .sv-setup { padding: 18px 16px; }
    .sv-setup-step { flex-wrap: wrap; gap: 10px 12px; }
    .sv-setup-btn { width: 100%; justify-content: center; margin-left: 46px; width: calc(100% - 46px); }
}

/* "Powered by PigaTech Softcompany" at the bottom of dashboards and other pages without the public footer (includes/site_ui.php) */
.sv-powered { clear: both; text-align: center; font-size: .78rem; color: #8a8fa3; padding: 22px 12px 14px; letter-spacing: .02em; }
.sv-powered a { color: #6C63FF; font-weight: 600; text-decoration: none; }
.sv-powered a:hover { text-decoration: underline; }
html.sv-dark .sv-powered { color: #9aa0b8; }
html.sv-dark .sv-powered a { color: #A9A4FF; }
/* Pages whose <body> lays things out in a row (login, join...): the line takes a row of its own, under everything */
.sv-powered-end { width: 100%; }
body:has(> .sv-powered-end) { flex-wrap: wrap; }
