/*
 * IMQRScan dashboard styles (the only custom stylesheet; everything else is Bootstrap 5.3).
 * Change the brand colors in :root and the whole app follows.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --imq-blue: #00a3e0;
    --imq-blue-dark: #0088bb;
    --imq-blue-deep: #006f99;
    --imq-blue-soft: #e8f7fd;
    --imq-ink: #0f1b2a;
    --imq-text: #1f2d3a;
    --imq-muted: #64748b;
    --imq-border: #e6edf3;
    --imq-bg: #f6f9fc;
    --imq-radius: 14px;
    --imq-shadow-sm: 0 1px 2px rgba(15, 27, 42, .05);
    --imq-shadow: 0 1px 3px rgba(15, 27, 42, .06), 0 8px 24px rgba(15, 27, 42, .05);

    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-size: .925rem;
    --bs-body-color: var(--imq-text);
    --bs-body-bg: var(--imq-bg);
    --bs-border-color: var(--imq-border);
    --bs-primary: #00a3e0;
    --bs-primary-rgb: 0, 163, 224;
    --bs-link-color: #0088bb;
    --bs-link-color-rgb: 0, 136, 187;
    --bs-link-hover-color: #006f99;
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 14px;
}

/* ---------- Base ---------- */
body { background: var(--imq-bg); color: var(--imq-text); -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
h1, h2, h3, .h4, .h5, .h6 { color: var(--imq-ink); letter-spacing: -.015em; }
h1.h4 { font-size: 1.4rem; font-weight: 700; }
a { text-decoration: none; }
.text-muted { color: var(--imq-muted) !important; }
::selection { background: #cdeefb; }

/* ---------- Buttons ---------- */
.btn { font-weight: 500; border-radius: 10px; padding: .5rem .95rem; }
.btn-sm { border-radius: 8px; padding: .32rem .7rem; }
.btn-lg { border-radius: 12px; padding: .75rem 1.2rem; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: var(--imq-blue); --bs-btn-border-color: var(--imq-blue);
    --bs-btn-hover-bg: var(--imq-blue-dark); --bs-btn-hover-border-color: var(--imq-blue-dark);
    --bs-btn-active-bg: var(--imq-blue-deep); --bs-btn-active-border-color: var(--imq-blue-deep);
    --bs-btn-disabled-bg: var(--imq-blue); --bs-btn-disabled-border-color: var(--imq-blue);
    box-shadow: 0 1px 2px rgba(0, 120, 170, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-outline-primary {
    --bs-btn-color: var(--imq-blue-dark); --bs-btn-border-color: #9fdcf3;
    --bs-btn-hover-bg: var(--imq-blue); --bs-btn-hover-border-color: var(--imq-blue);
    --bs-btn-active-bg: var(--imq-blue-dark); --bs-btn-active-border-color: var(--imq-blue-dark);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-hover-bg: #f3f7fa; --bs-btn-hover-border-color: #d5e0e8; --bs-btn-color: var(--imq-text); }
.btn-light.border { border-color: var(--imq-border) !important; }
.btn-check:checked + .btn-outline-primary { background: var(--imq-blue); border-color: var(--imq-blue); }

/* ---------- Forms ---------- */
.form-label { font-weight: 500; color: var(--imq-ink); }
.form-control, .form-select { background-color: #fff; border-color: #dbe4ec; border-radius: 10px; padding: .55rem .8rem; }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-control:hover, .form-select:hover { border-color: #c5d3de; }
.form-control:focus, .form-select:focus { border-color: #7fd1ef; box-shadow: 0 0 0 .22rem rgba(0, 163, 224, .14); }
.form-control:disabled { background: #f3f6f9; }
.form-text { color: var(--imq-muted); }
.form-check-input:checked { background-color: var(--imq-blue); border-color: var(--imq-blue); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0, 163, 224, .15); border-color: #7fd1ef; }
.input-group-text { background: #fff; border-color: #dbe4ec; color: var(--imq-muted); }
.form-control-color { height: 40px; padding: .25rem; }
.color-field .form-control-color { max-width: 46px; }
.pw-toggle { border-color: #dbe4ec !important; }

/* ---------- Layout: top bar and sidebar ---------- */
.app-topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--imq-border); height: 64px; z-index: 1030; }
.app-sidebar { background: #fff; border-right: 1px solid var(--imq-border); }
@media (min-width: 992px) { .app-sidebar { min-height: calc(100vh - 64px); position: sticky; top: 64px; } }
.app-sidebar .nav-link { color: #3a4a5a; border-radius: 9px; padding: .5rem .7rem; font-weight: 500; font-size: .9rem; }
.app-sidebar .nav-link i { color: #8193a3; }
.app-sidebar .nav-link:hover { background: #f3f7fa; color: var(--imq-ink); }
.app-sidebar .nav-link.active { background: var(--imq-blue-soft); color: var(--imq-blue-deep); font-weight: 600; }
.app-sidebar .nav-link.active i { color: var(--imq-blue); }
.sidebar-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
main.col-lg-9, main.col-xl-10 { min-width: 0; }

.topbar-btn { border: 1px solid var(--imq-border); background: #fff; border-radius: 999px; padding: .28rem .8rem .28rem .32rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--imq-text); font-size: .86rem; transition: border-color .15s, background .15s; }
.topbar-btn:hover, .topbar-btn[aria-expanded="true"] { border-color: #9fdcf3; background: var(--imq-blue-soft); }
.topbar-support { padding: .4rem .85rem; }
.avatar-initials { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--imq-blue), #0b5394); color: #fff; font-weight: 700; font-size: .76rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dropdown-menu { border: 1px solid var(--imq-border); box-shadow: 0 12px 32px rgba(15, 27, 42, .12); border-radius: 14px; padding: .4rem; font-size: .9rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
.dropdown-item:hover { background: #f3f7fa; }
.dropdown-item:active { background: var(--imq-blue); }
.menu-head { padding: .75rem 1rem; border-bottom: 1px solid var(--imq-border); margin-bottom: .3rem; min-width: 250px; }

/* ---------- Surfaces ---------- */
.panel { background: #fff; border: 1px solid var(--imq-border); border-radius: var(--imq-radius); box-shadow: var(--imq-shadow-sm); }
.page-head h1 { margin-bottom: .1rem; }
.section-title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; color: var(--imq-ink); }
.step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--imq-blue); color: #fff; font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.icon-soft { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--imq-blue-soft); color: var(--imq-blue-dark); font-size: 1.2rem; flex-shrink: 0; }
.alert { border-radius: 12px; border-width: 1px; }
.badge { font-weight: 600; letter-spacing: .01em; }
.list-group-item { border-color: var(--imq-border); }
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--imq-muted); font-weight: 600; }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 27, 42, .18); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--imq-blue); --bs-nav-link-color: var(--imq-blue-dark); --bs-nav-link-hover-color: var(--imq-blue-deep); }
.nav-pills .nav-link { border-radius: 9px; font-weight: 500; }

/* Stepper */
.stepper { list-style: none; margin: 0; padding: 0; gap: 1.25rem; font-size: .84rem; color: var(--imq-muted); }
.stepper li { display: flex; align-items: center; gap: .45rem; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--imq-border); display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: .74rem; }
.stepper li.done span { background: #e8f7ee; border-color: #b8e2c8; color: #1d7a46; }
.stepper li.current { color: var(--imq-ink); font-weight: 600; }
.stepper li.current span { background: var(--imq-blue); border-color: var(--imq-blue); color: #fff; }

/* ---------- QR list and type picker ---------- */
.type-card { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.type-card:hover, .type-card:focus { border-color: #9fdcf3; box-shadow: var(--imq-shadow); transform: translateY(-1px); color: inherit; }
.type-card .fw-semibold { color: var(--imq-ink); }
.qr-thumb { width: 92px; height: 92px; flex-shrink: 0; background: #fff; border: 1px solid var(--imq-border); border-radius: 12px; padding: 5px; display: flex; align-items: center; justify-content: center; }
.qr-thumb svg { display: block; max-width: 100%; max-height: 100%; }

/* ---------- Editor ---------- */
@media (min-width: 1200px) { .sticky-preview { position: sticky; top: 84px; } }
.qr-stage { background: repeating-conic-gradient(#f1f5f8 0% 25%, #fff 0% 50%) 50% / 18px 18px; border: 1px dashed #cfe0e8; border-radius: 14px; padding: 1.25rem; }
.qr-preview svg { display: block; margin: 0 auto; max-width: 100%; height: auto; max-height: 420px; }
.choice input { position: absolute; opacity: 0; }
.choice label { cursor: pointer; border: 1px solid var(--imq-border); border-radius: 12px; padding: 1rem; display: block; height: 100%; background: #fff; transition: border-color .15s; }
.choice label:hover { border-color: #9fdcf3; }
.choice input:checked + label { border-color: var(--imq-blue); background: var(--imq-blue-soft); box-shadow: inset 0 0 0 1px var(--imq-blue); }
.choice input:focus-visible + label { outline: 2px solid var(--imq-blue); outline-offset: 2px; }

.design-tabs { border-bottom: 1px solid var(--imq-border); gap: .2rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.design-tabs::-webkit-scrollbar { display: none; }
.design-tabs .nav-link { color: var(--imq-muted); font-size: .88rem; font-weight: 500; padding: .75rem .15rem; margin-right: 1rem; white-space: nowrap; border-bottom-width: 2px; }
.design-tabs .nav-link:hover { color: var(--imq-ink); }
.design-tabs .nav-link.active { color: var(--imq-blue-deep); border-bottom-color: var(--imq-blue); font-weight: 600; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; }
.pick, .preset { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .6rem .4rem; border: 1px solid var(--imq-border); border-radius: 12px; background: #fff; cursor: pointer; color: var(--imq-text); transition: border-color .15s, box-shadow .15s, background .15s; }
.pick:hover, .preset:hover { border-color: #9fdcf3; background: #fbfdfe; }
.btn-check:checked + .pick { border-color: var(--imq-blue); box-shadow: inset 0 0 0 1px var(--imq-blue); background: var(--imq-blue-soft); }
.btn-check:focus-visible + .pick, .preset:focus-visible { outline: 2px solid var(--imq-blue); outline-offset: 2px; }
.pick-icon { display: flex; align-items: center; justify-content: center; min-height: 34px; width: 100%; }
.pick-icon svg { max-width: 100%; height: auto; max-height: 96px; }
.pick-label { font-size: .72rem; color: var(--imq-muted); text-align: center; line-height: 1.2; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .55rem; }
.preset-art { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.preset-art svg { width: 100%; height: 100%; }

.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--imq-border); cursor: pointer; padding: 0; transition: transform .1s; }
.swatch:hover { box-shadow: 0 0 0 2px var(--imq-blue); transform: scale(1.06); }

/* Picture shape choice, shown under the photo upload */
.shape-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: -.4rem; }
.shape-opt { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--imq-border); border-radius: 999px; padding: .28rem .7rem .28rem .4rem; font-size: .8rem; cursor: pointer; background: #fff; }
.btn-check:checked + .shape-opt { border-color: var(--imq-blue); background: var(--imq-blue-soft); color: var(--imq-blue-deep); font-weight: 600; }
.shape-opt span { width: 16px; height: 16px; background: #9fb3c2; display: inline-block; }
.btn-check:checked + .shape-opt span { background: var(--imq-blue); }
.shape-circle { border-radius: 50%; } .shape-rounded { border-radius: 5px; } .shape-square { border-radius: 1px; } .shape-rectangle { width: 22px !important; height: 13px !important; border-radius: 3px; }

/* Uploads and row lists */
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.upload-preview:empty { display: none; }
.upload-preview img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid var(--imq-border); background: #fff; }
.upload-preview { font-size: .85rem; }
.rep-row { position: relative; border: 1px solid var(--imq-border); border-radius: 12px; padding: .9rem .9rem .2rem; margin-bottom: .7rem; background: #fbfdfe; }
.rep-row .mb-3 { margin-bottom: .6rem !important; }
.rep-row .form-label { font-size: .8rem; margin-bottom: .2rem; }
.rep-tools { display: flex; justify-content: flex-end; gap: .6rem; margin: -.3rem 0 .3rem; }
.rep-handle { margin-right: auto; font-weight: 600; }
.rep-rows { counter-reset: row; }
.rep-rows .rep-row { counter-increment: row; }
.rep-rows .rep-handle::after { content: counter(row); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .4rem; }
.icon-cell { height: 48px; border: 1px solid var(--imq-border); border-radius: 10px; background: #fff; font-size: 1.3rem; color: var(--imq-text); }
.icon-cell:hover { border-color: var(--imq-blue); background: var(--imq-blue-soft); color: var(--imq-blue-dark); }
.icon-pick { min-width: 48px; height: 40px; }

/* Template gallery */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1rem .8rem; }
.tpl-item { display: flex; flex-direction: column; align-items: center; }
.tpl { width: 128px; height: 228px; padding: 0; border: 2px solid var(--imq-border); border-radius: 18px; overflow: hidden; background: #fff; position: relative; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tpl:hover { border-color: #9fdcf3; transform: translateY(-2px); box-shadow: var(--imq-shadow); }
.tpl.active { border-color: var(--imq-blue); box-shadow: 0 0 0 4px rgba(0, 163, 224, .18); }
.tpl iframe { width: 390px; height: 700px; border: 0; transform: scale(.3282); transform-origin: 0 0; pointer-events: none; position: absolute; top: 0; left: 0; }
.tpl-check { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--imq-blue); color: #fff; display: none; align-items: center; justify-content: center; font-size: .9rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.tpl.active .tpl-check { display: flex; }
.tpl-name { font-size: .76rem; color: var(--imq-muted); text-align: center; margin-top: .45rem; font-weight: 500; }

/* Phone preview */
.phone { width: 100%; max-width: 330px; margin: 0 auto; border: 10px solid #1f2d3a; border-radius: 40px; overflow: hidden; height: 620px; background: #fff; box-shadow: 0 16px 40px rgba(15, 27, 42, .18); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Analytics ---------- */
.stat-card .stat-num { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; color: var(--imq-ink); }
.chart-box { position: relative; height: 260px; }
.table-sm td, .table-sm th { padding: .45rem .6rem; }
.form-range::-webkit-slider-thumb { background: var(--imq-blue); }
.form-range::-moz-range-thumb { background: var(--imq-blue); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .22rem rgba(0, 163, 224, .2); }

/* ---------- Dropdowns (assets/select.js) ---------- */
.imq-select { position: relative; width: 100%; }
.imq-select.w-auto { width: auto; display: inline-block; min-width: 150px; }
.imq-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
.imq-select-btn {
    width: 100%; display: flex; align-items: center; gap: .5rem; text-align: left;
    background: #fff; border: 1px solid #dbe4ec; border-radius: 10px; padding: .55rem .75rem .55rem .85rem;
    color: var(--imq-ink); font: inherit; font-size: .925rem; line-height: 1.5; cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.imq-select-sm .imq-select-btn { padding: .32rem .6rem .32rem .7rem; font-size: .84rem; border-radius: 8px; }
.imq-select-btn:hover { border-color: #b9d9e8; background: #fbfdfe; }
.imq-select-btn:focus-visible, .imq-select.is-open .imq-select-btn { outline: none; border-color: var(--imq-blue); box-shadow: 0 0 0 .22rem rgba(0, 163, 224, .15); }
.imq-select.is-disabled .imq-select-btn { background: #f3f6f9; color: var(--imq-muted); cursor: not-allowed; }
.imq-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imq-select-chev { color: var(--imq-muted); display: inline-flex; transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .15s; }
.imq-select.is-open .imq-select-chev { transform: rotate(180deg); color: var(--imq-blue); }

.imq-select-panel {
    position: fixed; z-index: 2000; display: none; flex-direction: column; max-width: min(420px, calc(100vw - 16px));
    background: #fff; border: 1px solid var(--imq-border); border-radius: 14px; padding: .35rem;
    box-shadow: 0 14px 40px rgba(15, 27, 42, .14), 0 2px 6px rgba(15, 27, 42, .06);
    opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
    transition: opacity .16s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
}
.imq-select-panel.is-up { transform: translateY(6px) scale(.98); transform-origin: bottom center; }
.imq-select-panel.is-open { opacity: 1; transform: none; }
.imq-select-search { display: flex; align-items: center; gap: .45rem; margin: .1rem .1rem .35rem; padding: .45rem .65rem; background: #f4f8fb; border-radius: 9px; color: var(--imq-muted); }
.imq-select-search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; font-size: .88rem; color: var(--imq-ink); min-width: 0; }
.imq-select-search:focus-within { box-shadow: 0 0 0 2px rgba(0, 163, 224, .25); color: var(--imq-blue); }
.imq-select-list { overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; scrollbar-color: #cfdbe4 transparent; }
.imq-select-list::-webkit-scrollbar { width: 8px; }
.imq-select-list::-webkit-scrollbar-thumb { background: #cfdbe4; border-radius: 8px; border: 2px solid #fff; }
.imq-select-group { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; padding: .6rem .7rem .25rem; position: sticky; top: 0; background: #fff; z-index: 1; }
.imq-option {
    display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 9px; cursor: pointer;
    color: var(--imq-text); font-size: .9rem; transition: background .12s ease, color .12s ease;
}
.imq-option-text { flex: 1; min-width: 0; }
.imq-option-check { color: var(--imq-blue); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .18s cubic-bezier(.2, .8, .2, 1); display: inline-flex; }
.imq-option.is-active { background: #f1f8fc; color: var(--imq-ink); }
.imq-option.is-selected { color: var(--imq-blue-deep); font-weight: 600; background: var(--imq-blue-soft); }
.imq-option.is-selected .imq-option-check { opacity: 1; transform: none; }
.imq-option.is-selected.is-active { background: #dcf1fb; }
.imq-option.is-disabled { opacity: .45; cursor: not-allowed; }
.imq-select-empty { padding: .8rem; text-align: center; color: var(--imq-muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) {
    .imq-select-panel, .imq-select-chev, .imq-option, .imq-option-check { transition: none; }
}
.sheet-preview > svg { width: 100%; height: auto; max-height: 78vh; box-shadow: 0 6px 24px rgba(15, 27, 42, .12); border-radius: 4px; background: #fff; }
.upload-preview audio { height: 36px; max-width: 260px; }

/* Act as banner */
.act-banner { position: sticky; top: 0; z-index: 1040; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; padding: .5rem 1rem; background: #1f2d3a; color: #fff; font-size: .88rem; }
.act-banner .bi { color: #ffd54f; }
.act-banner + .app-topbar { top: 44px; }
.wl-status { border-radius: 12px; padding: .9rem 1rem; border: 1px solid; }
.wl-status.is-on { background: #e8f7ee; border-color: #b8e2c8; color: #1d5e37; }
.wl-status.is-off { background: #fff6e0; border-color: #f3d58a; color: #6b4d00; }

/* Print designs */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.pr-item { border: 1px solid var(--imq-border); border-radius: 12px; padding: .5rem; background: #fff; }
.pr-thumb { aspect-ratio: 4 / 3; border-radius: 8px; background: #f4f8fb; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: .4rem; color: #9fb3c2; font-size: 2rem; }
.pr-thumb img { width: 100%; height: 100%; object-fit: contain; }
#prModal .modal-body { height: calc(100vh - 52px); }

/* ---------- Sign-in pages (login, signup, reset) ---------- */
.auth-body { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem 3rem; color: #fff;
    background: radial-gradient(1200px 500px at 10% -10%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(150deg, #00a3e0 0%, #0077b6 55%, #0b3d63 100%); }
.auth-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.auth-logo img { filter: brightness(0) invert(1); height: 34px; width: auto; }
.auth-pitch { max-width: 460px; position: relative; z-index: 1; }
.auth-pitch h2 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1.6rem; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.auth-pitch li { display: flex; gap: .8rem; align-items: flex-start; color: rgba(255, 255, 255, .88); font-size: .98rem; }
.auth-pitch li i { flex: 0 0 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; }
.auth-pitch li strong { color: #fff; }
.auth-card-demo { display: inline-flex; align-items: center; gap: 1rem; background: #fff; color: #1f2d3a; border-radius: 16px; padding: .9rem 1.2rem .9rem .9rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); transform: rotate(-2deg); }
.acd-qr { display: grid; grid-template-columns: repeat(7, 7px); gap: 2px; padding: 6px; border: 1px solid #e6edf3; border-radius: 8px; }
.acd-qr span { width: 7px; height: 7px; border-radius: 2px; background: #eef3f6; }
.acd-qr span.on { background: #0f1b2a; }
.acd-t { font-weight: 700; }
.acd-s { font-size: .78rem; color: #1d7a46; }
.acd-s i { font-size: .5rem; vertical-align: middle; }
.auth-proof { position: relative; z-index: 1; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.auth-proof strong { color: #fff; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: #fff; }
.auth-panel { width: 100%; max-width: 410px; }
.auth-logo-mobile { display: none; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--imq-ink); margin-bottom: .35rem; }
.auth-sub { color: var(--imq-muted); margin-bottom: 1.6rem; }
.auth-panel .form-control { padding: .7rem .9rem; font-size: 1rem; border-radius: 11px; }
.auth-panel .form-label { font-size: .88rem; }
.auth-panel .btn-lg { border-radius: 12px; padding: .8rem 1rem; font-size: 1rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .75rem 1rem; border: 1px solid #dadce0; border-radius: 12px; background: #fff; color: #3c4043; font-weight: 600; text-decoration: none; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn-google:hover { background: #f8fafb; border-color: #c6ccd2; box-shadow: 0 1px 3px rgba(15, 27, 42, .1); color: #202124; }
.btn-google:focus-visible { outline: 2px solid var(--imq-blue); outline-offset: 2px; }
.auth-or { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0; color: #94a3b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: #e6edf3; }
.auth-switch { text-align: center; margin: 1.6rem 0 0; color: var(--imq-muted); font-size: .92rem; }
.auth-switch a { font-weight: 600; }
.auth-legal { margin: 2.5rem 0 0; font-size: .78rem; color: #94a3b8; }
.auth-legal a { color: #94a3b8; }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-logo-mobile { display: block; }
    .auth-main { justify-content: flex-start; padding-top: 2.5rem; background: linear-gradient(180deg, #eaf6fc 0, #fff 220px); }
}

/* Password strength */
.pw-meter { height: 5px; border-radius: 5px; background: #eef3f6; margin-top: .45rem; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .25s, background .25s; }
.pw-hint { font-size: .78rem; color: var(--imq-muted); margin-top: .3rem; }
/* My account */
.acct-hero { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(120deg, #fff 60%, var(--imq-blue-soft)); }
.acct-avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--imq-blue), #0b5394); color: #fff; font-size: 1.6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 120, 180, .25); }
.signin-row { display: flex; align-items: center; gap: .8rem; }
.si-icon { width: 40px; height: 40px; border-radius: 11px; background: #f3f7fa; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--imq-ink); }
.auth-logo-mobile img, .auth-logo img { height: 35px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- Icon colors: brands in their own colors, other icons by meaning (picker, code list, type picker) ---------- */
.ic-color .bi-instagram{color:#E1306C}.ic-color .bi-twitter-x{color:#000000}.ic-color .bi-facebook{color:#1877F2}.ic-color .bi-linkedin{color:#0A66C2}
.ic-color .bi-youtube{color:#FF0000}.ic-color .bi-tiktok{color:#010101}.ic-color .bi-snapchat{color:#E5C700}.ic-color .bi-pinterest{color:#E60023}
.ic-color .bi-reddit{color:#FF4500}.ic-color .bi-threads{color:#000000}.ic-color .bi-whatsapp{color:#25D366}.ic-color .bi-telegram{color:#26A5E4}
.ic-color .bi-messenger{color:#0084FF}.ic-color .bi-discord{color:#5865F2}.ic-color .bi-twitch{color:#9146FF}.ic-color .bi-github{color:#181717}
.ic-color .bi-skype{color:#00AFF0}.ic-color .bi-slack{color:#4A154B}.ic-color .bi-behance{color:#1769FF}.ic-color .bi-dribbble{color:#EA4C89}
.ic-color .bi-medium{color:#000000}.ic-color .bi-substack{color:#FF6719}.ic-color .bi-wordpress{color:#21759B}.ic-color .bi-paypal{color:#003087}
.ic-color .bi-stripe{color:#635BFF}.ic-color .bi-amazon{color:#FF9900}.ic-color .bi-spotify{color:#1DB954}.ic-color .bi-vimeo{color:#1AB7EA}
.ic-color .bi-apple{color:#000000}.ic-color .bi-google-play{color:#01875F}.ic-color .bi-google{color:#4285F4}.ic-color .bi-microsoft{color:#00A4EF}
.ic-color .bi-currency-bitcoin{color:#F7931A}.ic-color .bi-link-45deg{color:#00A3E0}.ic-color .bi-globe2{color:#0B7BC2}.ic-color .bi-envelope{color:#EA4335}
.ic-color .bi-envelope-fill{color:#EA4335}.ic-color .bi-telephone{color:#16A34A}.ic-color .bi-telephone-fill{color:#16A34A}.ic-color .bi-telephone-forward{color:#16A34A}
.ic-color .bi-phone{color:#16A34A}.ic-color .bi-geo-alt{color:#E53935}.ic-color .bi-geo-alt-fill{color:#E53935}.ic-color .bi-signpost-split{color:#E53935}
.ic-color .bi-calendar-event{color:#7C3AED}.ic-color .bi-calendar-check{color:#7C3AED}.ic-color .bi-download{color:#0EA5E9}.ic-color .bi-bookmark-fill{color:#F59E0B}
.ic-color .bi-star{color:#F5B400}.ic-color .bi-star-fill{color:#F5B400}.ic-color .bi-star-half{color:#F5B400}.ic-color .bi-heart{color:#E11D48}
.ic-color .bi-heart-fill{color:#E11D48}.ic-color .bi-heart-pulse{color:#E11D48}.ic-color .bi-heart-pulse-fill{color:#DC2626}.ic-color .bi-house-fill{color:#0EA5E9}
.ic-color .bi-house-heart{color:#0EA5E9}.ic-color .bi-info-circle-fill{color:#0284C7}.ic-color .bi-chat-dots{color:#6366F1}.ic-color .bi-chat-dots-fill{color:#6366F1}
.ic-color .bi-chat-left-text{color:#6366F1}.ic-color .bi-camera-fill{color:#334155}.ic-color .bi-camera-reels{color:#DB2777}.ic-color .bi-camera-video{color:#2563EB}
.ic-color .bi-play-circle-fill{color:#FF0000}.ic-color .bi-file-earmark-pdf{color:#DC2626}.ic-color .bi-file-earmark-pdf-fill{color:#DC2626}.ic-color .bi-file-earmark-text{color:#2563EB}
.ic-color .bi-file-earmark-spreadsheet{color:#16A34A}.ic-color .bi-file-person{color:#0891B2}.ic-color .bi-cloud-arrow-up{color:#0EA5E9}.ic-color .bi-shop{color:#EA580C}
.ic-color .bi-shop-window{color:#EA580C}.ic-color .bi-bag{color:#DB2777}.ic-color .bi-bag-fill{color:#DB2777}.ic-color .bi-cart-fill{color:#EA580C}
.ic-color .bi-credit-card-fill{color:#4F46E5}.ic-color .bi-wallet2{color:#0F766E}.ic-color .bi-ticket-perforated{color:#F97316}.ic-color .bi-ticket-perforated-fill{color:#F97316}
.ic-color .bi-briefcase-fill{color:#92400E}.ic-color .bi-building{color:#475569}.ic-color .bi-cup-hot-fill{color:#B45309}.ic-color .bi-gift{color:#DB2777}
.ic-color .bi-gift-fill{color:#DB2777}.ic-color .bi-tag{color:#0D9488}.ic-color .bi-tag-fill{color:#0D9488}.ic-color .bi-truck{color:#475569}
.ic-color .bi-music-note-beamed{color:#9333EA}.ic-color .bi-broadcast{color:#E11D48}.ic-color .bi-mic{color:#9333EA}.ic-color .bi-mic-fill{color:#9333EA}
.ic-color .bi-newspaper{color:#334155}.ic-color .bi-book-fill{color:#7C2D12}.ic-color .bi-image-fill{color:#0891B2}.ic-color .bi-person-vcard{color:#00A3E0}
.ic-color .bi-person-badge{color:#0284C7}.ic-color .bi-wifi{color:#0D9488}.ic-color .bi-journal-text{color:#B45309}.ic-color .bi-list-ul{color:#6366F1}
.ic-color .bi-grid-3x3-gap{color:#475569}.ic-color .bi-ui-checks{color:#16A34A}.ic-color .bi-ui-checks-grid{color:#16A34A}.ic-color .bi-upc-scan{color:#334155}
.ic-color .bi-currency-dollar{color:#16A34A}.ic-color .bi-currency-rupee{color:#EA580C}.ic-color .bi-diamond{color:#0EA5E9}.ic-color .bi-window{color:#2563EB}

.ic-color .icon-cell:hover { background: #f6fafd; border-color: #b9d9e8; }
.ic-color .icon-cell.active, .ic-color .icon-cell:focus-visible { box-shadow: 0 0 0 3px rgba(0,163,224,.25); }
.icon-soft.ic-color { background: #f4f8fb; }

/* ==========================================================================
   Modern dashboard look (page headers, accents, steps, tips, upload, empty)
   ========================================================================== */
:root { --acc-blue: #00a3e0; --acc-violet: #7c3aed; --acc-green: #16a34a; --acc-amber: #f59e0b; --acc-pink: #db2777; --acc-teal: #0d9488; --acc-red: #e53935; }
main.col-lg-9, main.col-xl-10 { background: radial-gradient(900px 300px at 100% 0, rgba(0, 163, 224, .05), transparent 70%); }

/* Page header */
.page-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.page-crumb { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--imq-muted); font-weight: 500; margin-bottom: .45rem; }
.crumb-ic { width: 22px; height: 22px; border-radius: 7px; background: var(--imq-blue-soft); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; color: var(--imq-blue); }
.page-h1, main h1.h4 { font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 750; letter-spacing: -.025em; color: var(--imq-ink); margin-bottom: .3rem; }
.page-sub { color: var(--imq-muted); margin: 0; max-width: 680px; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Panels: softer, a touch more depth */
.panel { border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 27, 42, .04), 0 6px 18px rgba(15, 27, 42, .04); }

/* Section titles get a colored icon chip; the color follows the topic */
.section-title > i.bi:first-child { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; font-size: 1rem;
    color: var(--acc-blue) !important; background: color-mix(in srgb, var(--acc-blue) 12%, #fff); }
.section-title > i.bi-people:first-child, .section-title > i.bi-person-plus:first-child, .section-title > i.bi-person-circle:first-child { color: var(--acc-violet) !important; background: color-mix(in srgb, var(--acc-violet) 12%, #fff); }
.section-title > i.bi-plug:first-child, .section-title > i.bi-shield-lock:first-child, .section-title > i.bi-check2-circle:first-child, .section-title > i.bi-list-check:first-child { color: var(--acc-green) !important; background: color-mix(in srgb, var(--acc-green) 12%, #fff); }
.section-title > i.bi-key:first-child, .section-title > i.bi-clock-history:first-child, .section-title > i.bi-clock:first-child, .section-title > i.bi-gift:first-child { color: var(--acc-amber) !important; background: color-mix(in srgb, var(--acc-amber) 14%, #fff); }
.section-title > i.bi-palette:first-child, .section-title > i.bi-envelope-heart:first-child, .section-title > i.bi-bullseye:first-child, .section-title > i.bi-window-stack:first-child { color: var(--acc-pink) !important; background: color-mix(in srgb, var(--acc-pink) 12%, #fff); }
.section-title > i.bi-globe2:first-child, .section-title > i.bi-translate:first-child, .section-title > i.bi-link-45deg:first-child, .section-title > i.bi-broadcast:first-child { color: var(--acc-teal) !important; background: color-mix(in srgb, var(--acc-teal) 12%, #fff); }
.section-title > i.bi-envelope:first-child, .section-title > i.bi-shield-check:first-child, .section-title > i.bi-heart-pulse:first-child { color: var(--acc-red) !important; background: color-mix(in srgb, var(--acc-red) 11%, #fff); }

/* Vertical numbered steps */
.vsteps { list-style: none; margin: 0; padding: 0; counter-reset: vs; }
.vsteps > li { position: relative; padding: 0 0 2.2rem 3.4rem; counter-increment: vs; }
.vsteps > li:last-child { padding-bottom: 0; }
.vsteps > li::before { content: counter(vs); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--imq-blue); box-shadow: 0 0 0 5px var(--imq-blue-soft); }
.vsteps > li:not(:first-child)::before { background: #fff; color: var(--imq-muted); border: 1.5px solid var(--imq-border); box-shadow: none; }
.vsteps > li::after { content: ''; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 2px; background: linear-gradient(var(--imq-border), var(--imq-border)) center/2px 100% no-repeat; }
.vsteps > li:last-child::after { display: none; }
.vsteps > li + li { border-top: 1px solid #eef3f6; padding-top: 2rem; }
.vsteps > li + li::before { top: 1.9rem; }
.vsteps > li + li::after { top: calc(1.9rem + 40px); }
.vs-title { font-size: 1.08rem; font-weight: 700; color: var(--imq-ink); margin: .2rem 0 .25rem; }
.vs-sub { color: var(--imq-muted); font-size: .9rem; margin-bottom: 1rem; }
.vs-art { flex: 0 0 auto; padding-top: .4rem; }

/* Tip box */
.callout { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; background: #eef8fd; border: 1px solid #d3eefa; color: #1f4e66; font-size: .88rem; }
.callout > i { color: var(--imq-blue); font-size: 1rem; margin-top: .05rem; }

/* Upload area */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 2rem 1rem; border: 2px dashed #c8dbe6; border-radius: 14px; background: #fbfdfe; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.dropzone > i { font-size: 2rem; color: var(--imq-blue); }
.dropzone:hover, .dropzone.is-over { border-color: var(--imq-blue); background: var(--imq-blue-soft); }
.dropzone.has-file { border-style: solid; border-color: #9fdcf3; }
.dz-main { font-weight: 600; color: var(--imq-ink); }
.dz-or { font-size: .8rem; color: #94a3b8; }
.dz-hint { font-size: .78rem; color: var(--imq-muted); margin-top: .2rem; }

/* Empty state */
.empty-state { text-align: center; padding: 2rem 1rem; }
.es-art { position: relative; width: 96px; height: 96px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.es-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--imq-blue-soft) 60%, transparent 61%); }
.es-art > i { position: relative; font-size: 2.4rem; color: #8ccfe9; }
.es-dot { position: absolute; width: 8px; height: 3px; border-radius: 3px; background: #9fdcf3; }
.es-dot.d1 { top: 12px; right: 4px; transform: rotate(-35deg); }
.es-dot.d2 { bottom: 22px; left: 0; transform: rotate(25deg); }
.es-title { font-weight: 700; color: var(--imq-ink); margin-bottom: .3rem; }
.es-text { color: var(--imq-muted); font-size: .88rem; max-width: 280px; margin: 0 auto 1rem; }

/* Sidebar: accent bar on the active item */
.app-sidebar .nav-link { position: relative; }
.app-sidebar .nav-link.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--imq-blue); }

/* Stat cards: a soft accent edge */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--imq-blue); opacity: .7; }

/* Code list cards */
.panel .qr-thumb { transition: transform .15s; }
a.panel:hover .qr-thumb, .panel:hover > .qr-thumb { transform: scale(1.02); }

/* Buttons: a little more presence */
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)); }
.btn-lg.px-4 { box-shadow: 0 6px 16px rgba(0, 163, 224, .25); }

/* ---------- Plans and billing ---------- */
.plan-card { position: relative; padding: 1.5rem; display: flex; flex-direction: column; border: 1.5px solid var(--imq-border); transition: transform .15s, box-shadow .15s; }
.plan-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 27, 42, .08); }
.plan-card.is-popular { border-color: var(--imq-blue); box-shadow: 0 14px 34px rgba(0, 163, 224, .15); }
.plan-card.is-current { background: linear-gradient(180deg, var(--imq-blue-soft), #fff 40%); }
.plan-flag { position: absolute; top: -11px; right: 16px; background: var(--imq-blue); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .03em; }
.plan-price { min-height: 64px; }
.pp-num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--imq-ink); }
.pp-per { color: var(--imq-muted); margin-left: .25rem; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .88rem; }
.plan-feats li { display: flex; gap: .45rem; align-items: flex-start; }
.plan-feats i { color: var(--acc-green); margin-top: .1rem; }
.lifetime-card { background: linear-gradient(120deg, #0b3d63, #0077b6); color: #fff; border: 0; }
.lifetime-card .text-muted { color: rgba(255, 255, 255, .75) !important; }
.lifetime-card .pp-num { color: #fff; }
.plan-now { background: linear-gradient(120deg, #fff 55%, var(--imq-blue-soft)); }
.usage-row { margin-bottom: 1rem; }
.dns-box { border: 1px dashed #c8dbe6; border-radius: 12px; padding: .8rem; background: #fbfdfe; }
.dns-box .table { font-size: .8rem; }
.lifetime-card h2, .lifetime-card .h4 { color: #fff; }

/* Classic dashboard message on login, signup, forgot password */
.legacy-box { border: 1.5px solid #9fdcf3; background: #eef8fd; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.lb-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--imq-ink); margin-bottom: .35rem; }
.lb-title i { color: var(--imq-blue); }
.legacy-box p { font-size: .9rem; color: #31556b; margin-bottom: .8rem; }

/* Bridge page (old dashboard users choose) */
.bridge-option { border: 1.5px solid var(--imq-border); border-radius: 16px; padding: 1.1rem; }
.bo-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .7rem; }
.bo-ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; background: var(--imq-blue-soft); color: var(--imq-blue); }
.bo-ic.bo-classic { background: #f3f5f7; color: #64748b; }
.bridge-summary { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: #f6fafc; border: 1px solid #e3eef4; margin-bottom: 1.2rem; }
.bridge-summary > i { font-size: 1.4rem; color: var(--imq-blue); }
.email-chip { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border: 1px solid var(--imq-border); border-radius: 12px; background: #f8fbfd; font-weight: 500; }
.email-chip > i { color: var(--imq-blue); font-size: 1.1rem; }

/* White label: own domain */
.dom-card { border: 1.5px solid var(--imq-border); border-radius: 16px; padding: 1rem; margin-bottom: 1rem; }
.dom-card.is-live { border-color: #b8e2c8; background: linear-gradient(180deg, #f3fbf6, #fff 60%); }
.dom-ic { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #fff6e0; color: #b7791f; font-size: 1.1rem; }
.dom-card.is-live .dom-ic { background: #e8f7ee; color: #1d7a46; }
.dom-steps { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; justify-content: space-between; position: relative; }
.dom-steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 13px; height: 2px; background: var(--imq-border); }
.dom-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .72rem; color: #94a3b8; font-weight: 600; text-align: center; }
.dom-steps li span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--imq-border); font-size: .78rem; z-index: 1; }
.dom-steps li.done { color: #1d7a46; } .dom-steps li.done span { background: #1d7a46; border-color: #1d7a46; color: #fff; }
.dom-steps li.now { color: var(--imq-blue); } .dom-steps li.now span { border-color: var(--imq-blue); color: var(--imq-blue); box-shadow: 0 0 0 4px var(--imq-blue-soft); }
.dom-msg { display: flex; gap: .55rem; align-items: flex-start; padding: .7rem .85rem; border-radius: 12px; background: #f4f8fb; font-size: .86rem; color: #31556b; }
.dom-msg.is-you { background: #fff6e0; color: #6b4d00; }
.dom-msg > i { margin-top: .1rem; }
.dns-rec { border: 1px solid var(--imq-border); border-radius: 12px; overflow: hidden; font-size: .84rem; }
.dr-row { display: flex; align-items: center; padding: .5rem .8rem; border-bottom: 1px solid #eef3f6; gap: .6rem; }
.dr-row:last-child { border-bottom: 0; }
.dr-k { flex: 0 0 120px; color: var(--imq-muted); }
.dr-v { display: flex; align-items: center; gap: .4rem; min-width: 0; word-break: break-all; }
.dr-v code { color: var(--imq-ink); background: #f4f8fb; padding: .1rem .35rem; border-radius: 6px; }
.btn-copy { border: 0; background: none; color: var(--imq-blue); padding: .1rem .3rem; border-radius: 6px; cursor: pointer; }
.btn-copy:hover { background: var(--imq-blue-soft); }
.dom-more { margin-top: .6rem; font-size: .84rem; }
.dom-more summary { cursor: pointer; color: var(--imq-blue); font-weight: 600; }
.dom-empty { display: flex; gap: .8rem; align-items: center; padding: .9rem; border: 1px dashed #c8dbe6; border-radius: 14px; background: #fbfdfe; }
.dom-empty > i { font-size: 1.6rem; color: var(--imq-blue); }
.both-box { border: 1px solid #d3eefa; background: #eef8fd; border-radius: 12px; padding: .75rem .9rem; color: #31556b; }
.choose-card { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1.5px solid var(--imq-border); border-radius: 16px; background: #fff; color: var(--imq-ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choose-card:hover { border-color: var(--imq-blue); box-shadow: 0 8px 22px rgba(0, 163, 224, .12); transform: translateY(-1px); }
.choose-card.is-new { border-color: #9fdcf3; background: linear-gradient(120deg, #fff 55%, var(--imq-blue-soft)); }
.choose-card strong { display: block; }
.choose-card small { display: block; color: var(--imq-muted); font-size: .8rem; }
.choose-card > i { color: #94a3b8; }
/* Real IMQRScan logo on the sign-in brand panel, on a white chip so its colors show */
.auth-logo { display: inline-flex; background: #fff; padding: .45rem .8rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.auth-logo img { filter: none !important; height: 32px; width: auto; }
.auth-brand .auth-logo { align-self: flex-start; }
.plan-dates { display: flex; gap: .8rem; }
.plan-dates > div { flex: 1; border: 1px solid var(--imq-border); border-radius: 12px; padding: .6rem .8rem; background: #fff; }
.plan-dates span { display: block; font-size: .75rem; color: var(--imq-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Plans page: currency */
.cur-picker { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.cur-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1.5px solid var(--imq-border); border-radius: 999px; background: #fff; color: var(--imq-ink); font-weight: 600; font-size: .88rem; text-decoration: none; transition: border-color .15s, background .15s; }
.cur-chip:hover { border-color: var(--imq-blue); color: var(--imq-ink); }
.cur-chip.is-on { border-color: var(--imq-blue); background: var(--imq-blue-soft); color: #035f86; }
.cur-chip.is-locked { cursor: default; }
.cur-sym { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; font-size: .78rem; }
.cur-chip.is-on .cur-sym { background: #fff; }

/* A feature that needs a higher plan */
.is-locked form, .is-locked .list-group, .is-locked .form-text { display: none !important; }
.lock-box { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px dashed #c8dbe6; border-radius: 14px; background: linear-gradient(120deg, #fbfdfe, var(--imq-blue-soft)); }
.lock-ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--imq-blue); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.type-card.is-type-locked { opacity: .78; }
.type-lock { position: absolute; top: .7rem; right: .7rem; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #fff6e0; color: #8a5a00; }
.type-limit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.tl-item { display: flex; align-items: center; gap: .5rem; padding: .4rem .55rem; border: 1px solid var(--imq-border); border-radius: 10px; font-size: .84rem; }
.tl-item.is-off { background: #fafafa; opacity: .7; }
.tl-name { flex: 1; min-width: 0; }
.tl-item input { width: 70px; }

/* Sidebar plan card: bars and limits */
.sb-bar { height: 5px; border-radius: 99px; background: #e4eef4; overflow: hidden; }
.sb-bar span { display: block; height: 100%; background: var(--imq-blue); border-radius: 99px; }
.sb-bar span.is-near { background: #f59e0b; }
.sb-bar span.is-full { background: #dc3545; }
.sb-reached { margin-top: .6rem; font-size: .76rem; color: #b42318; display: flex; gap: .35rem; line-height: 1.35; }
.limit-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: 14px; background: linear-gradient(120deg, #fff 40%, var(--imq-blue-soft)); border: 1px solid #cfe8f5; }
.limit-banner > i { color: var(--imq-blue); font-size: 1.15rem; }
.plan-chip { display: inline-block; margin-top: .15rem; padding: .05rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.plan-chip.is-trial { background: #fff3d6; color: #8a5a00; }
.plan-chip.is-free { background: #eef2f6; color: #475569; }
.plan-chip.is-paid { background: var(--imq-blue-soft); color: #035f86; }
.plan-chip.is-admin { background: #0f1b2a; color: #fff; }
.plan-chip.is-team { background: #eef6f0; color: #1d7a46; }
.stripe-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sm-card { border: 1.5px solid var(--imq-border); border-radius: 12px; padding: .7rem .8rem; }
.sm-card.is-on { border-color: #1d7a46; background: #f3fbf6; }
.sm-card.is-on.is-test { border-color: #d39e00; background: #fffbea; }
.test-flag { font-size: .62rem; font-weight: 800; letter-spacing: .05em; background: #fff3d6; color: #8a5a00; border-radius: 4px; padding: .05rem .3rem; vertical-align: middle; }

/* Confirm a billing change, cancel flow, thank-you */
.confirm-wrap { max-width: 620px; margin: 0 auto; }
.confirm-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--imq-blue-soft); color: var(--imq-blue); }
.confirm-summary { border: 1px solid var(--imq-border); border-radius: 14px; overflow: hidden; }
.cs-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid #eef3f6; font-size: .92rem; }
.cs-row:last-child { border-bottom: 0; }
.cs-row span { color: var(--imq-muted); }
.confirm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; }
.confirm-list i { color: var(--acc-green); margin-right: .45rem; }
.cancel-steps { display: flex; gap: .4rem; font-size: .78rem; font-weight: 700; }
.cancel-steps span { flex: 1; text-align: center; padding: .4rem; border-radius: 999px; background: #f1f5f9; color: #94a3b8; }
.cancel-steps span.now { background: var(--imq-blue-soft); color: #035f86; }
.cancel-steps span.done { background: #e8f7ee; color: #1d7a46; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.reason-item { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border: 1.5px solid var(--imq-border); border-radius: 12px; cursor: pointer; font-size: .9rem; }
.reason-item:has(input:checked) { border-color: var(--imq-blue); background: var(--imq-blue-soft); }
.done-ic { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e8f7ee; color: #1d7a46; font-size: 1.8rem; }
.offer-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(120deg, #fff7e6, #fff); border: 1.5px dashed #f0b429; }
.oc-pct { font-size: 2rem; font-weight: 800; color: #b7791f; letter-spacing: -.03em; }
.oc-code code { font-size: 1rem; font-weight: 700; color: var(--imq-ink); background: #fff; border: 1px solid var(--imq-border); padding: .25rem .6rem; border-radius: 8px; }
@media (max-width: 576px) { .reason-grid { grid-template-columns: 1fr; } }
@keyframes successPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.success-pop { width: 74px; height: 74px; font-size: 2.2rem; animation: successPop .5s ease-out both; }
.plan-card.is-chosen { border-color: #1d7a46; box-shadow: 0 14px 34px rgba(29, 122, 70, .15); }

/* Color fields: a clean square (the browser's own input stays hidden behind it) */
.cp { position: relative; display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; padding: 0 .35rem; }
.cp-swatch { width: 30px; height: 30px; border-radius: 9px; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(15, 27, 42, .14), 0 1px 2px rgba(15, 27, 42, .08); transition: transform .12s, box-shadow .12s; }
.cp-swatch:hover, .cp-swatch:focus-visible { transform: scale(1.06); box-shadow: inset 0 0 0 1px rgba(15, 27, 42, .14), 0 0 0 3px var(--imq-blue-soft); outline: 0; }
.cp-native { position: absolute; left: .35rem; top: 50%; width: 30px; height: 30px; margin-top: -15px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.cp-eye { border: 0; background: none; color: var(--imq-muted); width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cp-eye:hover { background: var(--imq-blue-soft); color: var(--imq-blue); }
.input-group > .cp { border: 1px solid var(--bs-border-color, #dee2e6); border-right: 0; border-radius: var(--bs-border-radius, .375rem) 0 0 var(--bs-border-radius, .375rem); background: #fff; min-height: 38px; }
.input-group > .cp + .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cp:has(.w-100) { display: flex; width: 100%; min-height: 40px; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 10px; background: #fff; }
.cs-row.cs-sub { font-size: .84rem; background: #fafcfd; }
.save-pill { position: absolute; top: 1.1rem; right: 1.1rem; background: #e8f7ee; color: #1d7a46; font-size: .74rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.plan-card.is-popular .save-pill { top: 1.3rem; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-top: 1px dashed #e2ecf2; }
.addon-row:first-child { border-top: 0; }
.ar-label { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; font-size: .84rem; font-weight: 600; }
.ar-label i { color: var(--imq-blue); }
.ar-label small { flex-basis: 100%; font-weight: 400; color: var(--imq-muted); font-size: .74rem; padding-left: 1.3rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--imq-border); border-radius: 16px; padding: 10px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.stepper input { width: 42px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.st-btn { border: 0; background: #f4f8fb; width: 30px; height: 32px; font-weight: 700; color: var(--imq-ink); cursor: pointer; }
.st-btn:hover { background: var(--imq-blue-soft); color: var(--imq-blue); }
.domain-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.dp-item { display: flex; gap: .6rem; align-items: center; padding: .7rem .85rem; border: 1.5px solid var(--imq-border); border-radius: 12px; cursor: pointer; }
.dp-item:has(input:checked) { border-color: var(--imq-blue); background: var(--imq-blue-soft); }
.dp-item small { display: block; color: var(--imq-muted); font-size: .76rem; }
.domain-move { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.domain-move .form-select { width: auto; min-width: 220px; }
.cs-row.cs-pay { background: #f2fbf6; font-size: 1.02rem; }
.cs-row.cs-pay strong { color: #1d7a46; font-size: 1.15rem; }
.move-all { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .85rem; border-radius: 12px; background: var(--imq-blue-soft); }
.show-if { padding-left: 1.1rem; margin-left: .4rem; border-left: 2px solid var(--imq-blue-soft); }
.show-if[hidden] { display: none !important; }

/* Notes (messages at the top of pages) */
.note { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; margin-bottom: 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--imq-border); border-left-width: 4px; box-shadow: 0 6px 20px rgba(15, 27, 42, .06); animation: noteIn .25s ease-out; transition: opacity .4s, transform .4s; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.note.note-out { opacity: 0; transform: translateY(-6px); }
.note-ic { font-size: 1.15rem; line-height: 1.3; }
.note-text { flex: 1; font-size: .93rem; color: var(--imq-ink); }
.note-x { border: 0; background: none; color: #94a3b8; padding: .1rem .25rem; border-radius: 8px; cursor: pointer; }
.note-x:hover { background: #f1f5f9; color: var(--imq-ink); }
.note-success { border-left-color: #22a35a; } .note-success .note-ic { color: #22a35a; }
.note-danger { border-left-color: #dc3545; background: #fffafa; } .note-danger .note-ic { color: #dc3545; }
.note-warning { border-left-color: #f0a500; background: #fffdf6; } .note-warning .note-ic { color: #d39200; }
.note-info { border-left-color: var(--imq-blue); } .note-info .note-ic { color: var(--imq-blue); }
/* the alerts used inside pages get the same soft look */
.alert { border-radius: 14px; border-width: 1px; border-left-width: 4px; }

/* "Are you sure?" dialog */
.cfm-back { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 27, 42, .45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: noteIn .15s ease-out; }
.cfm { background: #fff; border-radius: 20px; padding: 1.6rem 1.5rem 1.3rem; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 24px 60px rgba(15, 27, 42, .25); }
.cfm-ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto .8rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--imq-blue-soft); color: var(--imq-blue); }
.cfm-ic.is-danger { background: #fdecec; color: #c0392b; }
.cfm p { color: var(--imq-ink); font-size: .96rem; margin: 0 0 1.2rem; }
.cfm-btns { display: flex; gap: .5rem; } .cfm-btns .btn { flex: 1; padding: .6rem; border-radius: 12px; font-weight: 600; }

/* Dropdown menus */
.dropdown-menu { border: 1px solid var(--imq-border); border-radius: 14px; padding: .4rem; box-shadow: 0 16px 40px rgba(15, 27, 42, .12); min-width: 230px; animation: noteIn .14s ease-out; }
.dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 10px; padding: .55rem .7rem; font-size: .9rem; }
.dropdown-item > i { width: 1.1rem; text-align: center; opacity: .8; }
.dropdown-item span small { display: block; font-size: .74rem; color: var(--imq-muted); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--imq-blue-soft); color: var(--imq-ink); }
.dropdown-item.text-danger:hover { background: #fdecec; color: #b42318; }
.dropdown-divider { margin: .35rem .2rem; border-color: #eef3f6; }
.row-menu-btn { width: 34px; height: 32px; padding: 0; border-radius: 10px; }

/* Our color panel */
.cpp { position: absolute; z-index: 1600; width: 256px; padding: .8rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 27, 42, .18); animation: noteIn .14s ease-out; }
.cpp-area { position: relative; height: 150px; border-radius: 12px; cursor: crosshair; touch-action: none; }
.cpp-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }
.cpp-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: .75rem 0 .6rem; border-radius: 99px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); outline: none; }
.cpp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .25); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: pointer; }
.cpp-hue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .25); cursor: pointer; }
.cpp-row { display: flex; align-items: center; gap: .45rem; }
.cpp-now { flex: 0 0 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cpp-hex { font-family: ui-monospace, monospace; }
.cpp-eye { border: 0; background: #f1f5f9; width: 32px; height: 30px; border-radius: 9px; cursor: pointer; color: var(--imq-ink); }
.cpp-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--imq-muted); margin: .7rem 0 .35rem; }
.cpp-sws { display: grid; grid-template-columns: repeat(8, 1fr); gap: .35rem; }
.cpp-sw { width: 100%; aspect-ratio: 1; border: 0; border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .1s; }
.cpp-sw:hover { transform: scale(1.12); }
.cfm-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .4rem; }
.cfm .cfm-msg { font-size: .9rem; color: var(--imq-muted); }
.cfm-label { display: block; text-align: left; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.cfm-input { margin-bottom: 1.1rem; border-radius: 12px; }
.cfm-btns .btn:disabled { opacity: .45; }
/* Copy protection: no selecting page text (form fields, codes, and Copy buttons still work) */
body.no-copy { -webkit-user-select: none; user-select: none; }
body.no-copy input, body.no-copy textarea, body.no-copy select, body.no-copy [contenteditable="true"], body.no-copy .allow-copy, body.no-copy code, body.no-copy pre { -webkit-user-select: text; user-select: text; }
.sec-list { display: grid; gap: .5rem; }
.sec-item { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--imq-border); }
.sec-item > i { font-size: 1.1rem; margin-top: .05rem; }
.sec-item.is-ok > i { color: #22a35a; } .sec-item.is-warn > i { color: #d39200; } .sec-item.is-bad { background: #fffafa; } .sec-item.is-bad > i { color: #dc3545; }

/* ---------- Modern data screens (Orders, Responses, API, Users, Plans, Subscriptions, Transactions, Domains, Emails...) ---------- */
.panel { border-radius: 18px; }
.panel > .table-responsive, .panel .table-responsive { border-radius: 18px; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { background: #f7fafc; color: #64748b; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--imq-border); padding-top: .75rem; padding-bottom: .75rem; white-space: nowrap; }
.table > thead th:first-child { border-top-left-radius: 14px; } .table > thead th:last-child { border-top-right-radius: 14px; }
.table > tbody > tr { transition: background .12s; }
.table > tbody > tr:hover { background: #f8fbfd; }
.table > tbody > tr > td { border-color: #eef3f6; padding-top: .8rem; padding-bottom: .8rem; vertical-align: middle; }
.table > tbody > tr:last-child > td { border-bottom: 0; }
.table-sm > tbody > tr > td { padding-top: .55rem; padding-bottom: .55rem; }
/* soft badges */
.badge { font-weight: 600; letter-spacing: .01em; padding: .38em .65em; border-radius: 999px; }
.badge.text-bg-success { background: #e6f6ec !important; color: #17663a !important; }
.badge.text-bg-danger { background: #fdecec !important; color: #b42318 !important; }
.badge.text-bg-warning { background: #fff3d6 !important; color: #8a5a00 !important; }
.badge.text-bg-info { background: #e3f4fc !important; color: #035f86 !important; }
.badge.text-bg-secondary { background: #eef2f6 !important; color: #475569 !important; }
.badge.text-bg-light { background: #f4f7fa !important; color: #334155 !important; }
.badge.text-bg-primary { background: var(--imq-blue-soft) !important; color: #035f86 !important; }
/* filter bars: a panel holding a row of fields and a button */
.panel.d-flex.flex-wrap.gap-2 { align-items: center; }
.panel .form-control, .panel .form-select { border-radius: 11px; border-color: #dbe5ec; }
.panel .form-control:focus, .panel .form-select:focus { border-color: var(--imq-blue); box-shadow: 0 0 0 3px var(--imq-blue-soft); }
.btn { border-radius: 11px; }
.btn-sm { border-radius: 9px; }
/* stat cards */
.stat-card { border-radius: 16px; position: relative; overflow: hidden; }
.stat-card .stat-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
/* lists of items in panels */
.list-group-item { border-color: #eef3f6; }
.list-group { border-radius: 14px; }
/* empty states keep breathing room */
.empty-state { padding: 2.2rem 1rem; }
@media (max-width: 768px) { .table > thead th, .table > tbody > tr > td { white-space: nowrap; } }
.em-step { border: 1px solid var(--imq-border); border-radius: 14px; padding: 1rem; margin-bottom: .85rem; }
.upload-fav img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

/* Create a QR code: step 1 */
.cr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.cr-steps { display: flex; gap: .4rem; list-style: none; margin: 0; padding: .3rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 999px; }
.cr-steps li { display: flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .4rem; border-radius: 999px; font-size: .85rem; color: var(--imq-muted); font-weight: 600; }
.cr-steps li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef3f6; font-size: .75rem; }
.cr-steps li.is-on { background: var(--imq-blue-soft); color: var(--imq-ink); } .cr-steps li.is-on span { background: var(--imq-blue); color: #fff; }
.cr-search { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--imq-border); border-radius: 16px; padding: 0 .9rem; box-shadow: 0 6px 22px rgba(15, 27, 42, .05); margin-bottom: .9rem; transition: border-color .15s, box-shadow .15s; }
.cr-search:focus-within { border-color: var(--imq-blue); box-shadow: 0 0 0 4px var(--imq-blue-soft); }
.cr-search > i { color: var(--imq-muted); font-size: 1.1rem; }
.cr-search input { flex: 1; border: 0; outline: 0; padding: .95rem .8rem; font-size: 1.02rem; background: transparent; min-width: 0; }
.cr-search kbd { background: #f1f5f9; color: var(--imq-muted); border: 1px solid var(--imq-border); border-radius: 7px; font-size: .75rem; padding: .1rem .45rem; }
.cr-cats { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: 1.4rem; scrollbar-width: thin; }
.cr-cat { flex: 0 0 auto; border: 1px solid var(--imq-border); background: #fff; border-radius: 999px; padding: .42rem .9rem; font-size: .86rem; font-weight: 600; color: var(--imq-ink); cursor: pointer; transition: all .12s; }
.cr-cat span { color: var(--imq-muted); font-weight: 500; margin-left: .2rem; }
.cr-cat:hover { border-color: var(--imq-blue); }
.cr-cat.is-on { background: var(--imq-ink); border-color: var(--imq-ink); color: #fff; } .cr-cat.is-on span { color: rgba(255, 255, 255, .65); }
.cr-h2 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--imq-muted); margin: 0 0 .8rem; display: flex; align-items: center; gap: .45rem; }
.cr-pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
.cr-grid .type-item[hidden] { display: none; }
.tc { position: relative; display: flex; align-items: center; gap: .85rem; height: 100%; padding: .9rem 1rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 16px; text-decoration: none; color: var(--imq-ink); transition: transform .14s, box-shadow .14s, border-color .14s; }
.tc:hover { transform: translateY(-2px); border-color: rgba(0, 163, 224, .45); box-shadow: 0 12px 28px rgba(15, 27, 42, .08); color: var(--imq-ink); }
.tc-ic { flex: 0 0 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.tc-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tc-name { font-weight: 700; font-size: .95rem; }
.tc-sum { font-size: .8rem; color: var(--imq-muted); line-height: 1.35; margin: .1rem 0 .35rem; }
.tc-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 600; color: #035f86; background: var(--imq-blue-soft); border-radius: 999px; padding: .12rem .5rem; }
.tc-tag.tc-lock { color: #8a5a00; background: #fff3d6; }
.tc-go { color: #c3cfd8; transition: transform .14s, color .14s; } .tc:hover .tc-go { color: var(--imq-blue); transform: translateX(3px); }
.tc-big { padding: 1.1rem 1.1rem; background: linear-gradient(135deg, #ffffff, #f5fbfe); }
.tc-big .tc-ic { flex-basis: 52px; height: 52px; font-size: 1.45rem; border-radius: 15px; }
.tc.is-type-locked { opacity: .78; }
@media (max-width: 576px) { .cr-steps { display: none; } }
.incl-pill { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem; border-radius: 12px; background: #f2fbf6; border: 1px dashed #b7e3c7; color: #17663a; font-weight: 600; font-size: .9rem; }

/* ---------- Orders (rows like the design: order · items · customer · payment · actions) ---------- */
.ord-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--imq-border); border-radius: 14px; padding: 4px; box-shadow: 0 4px 14px rgba(15, 27, 42, .04); }
.seg a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--imq-ink); text-decoration: none; }
.seg a:hover { background: #f2f8fb; }
.seg a.is-on { background: linear-gradient(120deg, #00a3e0, #0091cf); color: #fff; box-shadow: 0 6px 16px rgba(0, 163, 224, .28); }
.seg-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #dc3545; font-size: .74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.seg a:not(.is-on) .seg-n { background: #fdecec; }
.ord-list { display: grid; gap: 1rem; }
.ord { display: grid; grid-template-columns: minmax(170px, 1.05fr) minmax(220px, 1.45fr) minmax(170px, 1.05fr) minmax(300px, 1.9fr) minmax(220px, 1.3fr); background: #fff; border: 1px solid var(--imq-border); border-left: 5px solid #d6e2ea; border-radius: 18px; box-shadow: 0 8px 26px rgba(15, 27, 42, .05); overflow: hidden; }
.ord.is-new, .ord.is-accepted, .ord.is-ready { border-left-color: var(--imq-blue); }
.ord.is-done { border-left-color: #22a35a; } .ord.is-cancelled { opacity: .72; }
.ord-c { padding: 1.15rem 1.2rem; min-width: 0; }
.ord-c + .ord-c { border-left: 1px solid #eef3f6; }
.ord-no { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.ord-st { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .22rem .65rem; }
.st-new { background: #fdecec; color: #c0392b; } .st-accepted { background: #fff3d6; color: #8a5a00; } .st-ready { background: #e3f4fc; color: #035f86; } .st-done { background: #e6f6ec; color: #17663a; } .st-cancelled { background: #eef2f6; color: #475569; }
.ord-mode { display: flex; align-items: center; gap: .75rem; margin-top: .9rem; }
.ord-mode small { display: block; color: var(--imq-muted); font-size: .82rem; }
.ord-mic { flex: 0 0 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.m-eat { background: #e3f4fc; color: #0077b6; } .m-del { background: #e6f6ec; color: #17663a; } .m-pick { background: #f1ecfd; color: #6d3fd1; }
.oi { display: grid; grid-template-columns: 2.3rem 1fr auto; gap: .4rem; font-size: .92rem; padding: .2rem 0; }
.oi-q { font-weight: 700; } .oi-p { color: var(--imq-muted); white-space: nowrap; }
.oi-t { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #eef3f6; margin-top: .55rem; padding-top: .65rem; font-weight: 700; }
.oi-t span:last-child { color: var(--imq-blue); font-size: 1.15rem; font-weight: 800; }
.ord-note { margin-top: .6rem; padding: .5rem .65rem; border-radius: 10px; background: #f7fafc; font-size: .84rem; display: flex; gap: .45rem; }
.ord-cust > div { display: flex; align-items: center; gap: .55rem; font-size: .92rem; margin-bottom: .55rem; min-width: 0; }
.ord-cust > div > i { color: var(--imq-blue); width: 1.1rem; }
.ord-cust a { color: var(--imq-blue); text-decoration: none; font-weight: 600; }
.ord-wa { color: #25d366 !important; font-size: 1.1rem; }
.ord-pl { display: flex; align-items: center; gap: .4rem; font-size: .9rem; margin-bottom: .45rem; }
.ord-pin { display: flex; border: 1px solid #dbe5ec; border-radius: 11px; overflow: hidden; }
.ord-pin input { flex: 1; min-width: 0; border: 0; padding: .55rem .7rem; font-size: .85rem; outline: 0; }
.ord-pin button { border: 0; background: var(--imq-blue); color: #fff; font-weight: 700; padding: 0 1rem; }
.ord-pin:focus-within { border-color: var(--imq-blue); box-shadow: 0 0 0 3px var(--imq-blue-soft); }
.ord-sug { border: 0; background: none; padding: 0; margin-top: .4rem; color: var(--imq-blue); font-size: .84rem; text-decoration: underline; }
.ord-pst { display: flex; align-items: center; gap: .55rem; margin-top: .85rem; }
.ord-pst > i { color: #64748b; }
.pst { font-size: .8rem; font-weight: 600; border-radius: 999px; padding: .25rem .7rem; background: #eef2f6; color: #475569; }
.pst-paid { background: #e6f6ec; color: #17663a; } .pst-requested { background: #fff3d6; color: #8a5a00; } .pst-claimed { background: #e3f4fc; color: #035f86; }
.ord-paid { display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: 11px; background: linear-gradient(120deg, #1d8a4e, #17713f); color: #fff; font-weight: 700; padding: .6rem 1.1rem; box-shadow: 0 6px 16px rgba(29, 138, 78, .25); }
.ord-paid:hover { filter: brightness(1.06); }
.ord-time { font-size: .84rem; color: var(--imq-muted); }
.ord-more { border: 0; background: none; width: 34px; height: 30px; border-radius: 9px; color: var(--imq-ink); }
.ord-more:hover { background: #f1f5f9; }
.ord-btns { display: flex; gap: .55rem; margin-top: 1.6rem; }
.ord-go { flex: 1; border: 0; border-radius: 12px; background: linear-gradient(120deg, #00a3e0, #0091cf); color: #fff; font-weight: 700; padding: .7rem 1rem; box-shadow: 0 6px 16px rgba(0, 163, 224, .28); }
.ord-x { border: 1px solid #dbe5ec; border-radius: 12px; background: #fff; font-weight: 600; padding: .7rem 1rem; color: var(--imq-ink); }
.ord-go:hover { filter: brightness(1.05); } .ord-x:hover { background: #f7fafc; }
@media (max-width: 1399px) { .ord { grid-template-columns: 1fr 1.3fr 1fr; } .ord-pay { grid-column: 1 / 3; border-left: 0 !important; border-top: 1px solid #eef3f6; } .ord-act { border-top: 1px solid #eef3f6; } }
@media (max-width: 767px) { .ord { grid-template-columns: 1fr; } .ord-c + .ord-c { border-left: 0; border-top: 1px solid #eef3f6; } .ord-pay { grid-column: auto; } }
/* Form responses: rows like Orders */
.resp { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 2.4fr) minmax(200px, 1fr); background: #fff; border: 1px solid var(--imq-border); border-left: 5px solid #d6e2ea; border-radius: 18px; box-shadow: 0 8px 26px rgba(15, 27, 42, .05); overflow: hidden; }
.resp.is-new { border-left-color: var(--imq-blue); }
.resp > div { padding: 1.1rem 1.2rem; min-width: 0; } .resp > div + div { border-left: 1px solid #eef3f6; }
.resp-who { display: flex; gap: .8rem; align-items: flex-start; }
.resp-av { flex: 0 0 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #00a3e0, #0077b6); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.min-w-0 { min-width: 0; }
.resp-ans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem 1.2rem; align-content: start; }
.ra span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--imq-muted); margin-bottom: .15rem; }
.ra strong { font-weight: 600; font-size: .92rem; word-break: break-word; }
.resp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .8rem; text-decoration: none; flex: 0 0 auto; }
@media (max-width: 991px) { .resp { grid-template-columns: 1fr; } .resp > div + div { border-left: 0; border-top: 1px solid #eef3f6; } }

/* Admin sidebar groups */
.sb-grp-btn { display: flex; align-items: center; gap: .65rem; width: 100%; border: 0; background: none; padding: .5rem .75rem; border-radius: 10px; color: var(--imq-ink); font-weight: 600; font-size: .92rem; text-align: left; cursor: pointer; }
.sb-grp-btn > i:first-child { width: 1.1rem; color: var(--imq-muted); }
.sb-grp-btn:hover { background: #f1f6f9; }
.sb-grp.has-active > .sb-grp-btn { color: var(--imq-blue); } .sb-grp.has-active > .sb-grp-btn > i:first-child { color: var(--imq-blue); }
.sb-chev { margin-left: auto; font-size: .78rem; color: var(--imq-muted); transition: transform .2s; }
.sb-grp.is-open .sb-chev { transform: rotate(180deg); }
.sb-grp-badge { margin-left: .2rem; } .sb-grp.is-open .sb-grp-badge { display: none; }
.sb-grp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.sb-grp-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.sb-grp.is-open .sb-grp-body { grid-template-rows: 1fr; }
.sb-grp-body { margin-left: 1.05rem; padding-left: .45rem; border-left: 1.5px solid #e6eef3; }

.sb-all { border: 0; background: none; color: var(--imq-blue); font-size: .7rem; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 0; cursor: pointer; }
/* Pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.4rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 16px; box-shadow: 0 6px 20px rgba(15, 27, 42, .04); }
.pager-info { font-size: .9rem; color: var(--imq-muted); } .pager-info strong { color: var(--imq-ink); }
.pager-nums { display: flex; align-items: center; gap: .3rem; margin: 0 auto; }
.pg { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 38px; height: 38px; padding: 0 .7rem; border-radius: 11px; border: 1px solid var(--imq-border); background: #fff; color: var(--imq-ink); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .12s; }
.pg:hover { border-color: var(--imq-blue); color: var(--imq-blue); }
.pg.is-on { background: linear-gradient(120deg, #00a3e0, #0091cf); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(0, 163, 224, .28); }
.pg.is-off { opacity: .4; pointer-events: none; }
.pg-gap { color: var(--imq-muted); padding: 0 .2rem; }
.pager-per { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--imq-muted); white-space: nowrap; }
.pager-per .form-select { width: auto; }
@media (max-width: 640px) { .pager { justify-content: center; } .pager-nums { order: 3; width: 100%; justify-content: center; } }
/* Orders: summary strip, search, progress */
.ord-stats { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(240px, 1.3fr); gap: .8rem; margin-bottom: 1.2rem; }
.os { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 16px; padding: .85rem 1rem; box-shadow: 0 6px 20px rgba(15, 27, 42, .04); }
.os-ic { flex: 0 0 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; position: relative; }
.os-n { font-size: 1.35rem; font-weight: 800; line-height: 1.1; } .os-l { font-size: .8rem; color: var(--imq-muted); }
.os-new .os-ic { background: #fdecec; color: #c0392b; } .os-prep .os-ic { background: #fff3d6; color: #b7791f; } .os-ready .os-ic { background: #e3f4fc; color: #0077b6; } .os-money .os-ic { background: #e6f6ec; color: #17663a; }
.os.is-live .os-ic::after { content: ''; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: osPulse 1.6s infinite; }
@keyframes osPulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.ord-search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 16px; padding: 0 1rem; }
.ord-search:focus-within { border-color: var(--imq-blue); box-shadow: 0 0 0 3px var(--imq-blue-soft); }
.ord-search > i { color: var(--imq-muted); } .ord-search input { flex: 1; border: 0; outline: 0; background: none; padding: .85rem 0; min-width: 0; } .ord-search a { color: var(--imq-muted); }
.ord-time.is-late { color: #b7791f; font-weight: 700; }
.ord-steps { display: flex; list-style: none; margin: 1rem 0 0; padding: 0; }
.ord-steps li { flex: 1; position: relative; text-align: center; font-size: .7rem; font-weight: 600; color: #a3b2bf; padding-top: 18px; }
.ord-steps li span { position: absolute; top: 2px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #dbe5ec; z-index: 1; }
.ord-steps li::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: #dbe5ec; }
.ord-steps li:first-child::before { display: none; }
.ord-steps li.is-done, .ord-steps li.is-now { color: var(--imq-ink); }
.ord-steps li.is-done span, .ord-steps li.is-done::before, .ord-steps li.is-now::before { background: #22a35a; }
.ord-steps li.is-now span { background: var(--imq-blue); box-shadow: 0 0 0 4px var(--imq-blue-soft); }
.ord-btns { margin-top: 1rem; }
@media (max-width: 1199px) { .ord-stats { grid-template-columns: repeat(2, 1fr); } .ord-search { grid-column: 1 / -1; } }
/* Templates for this type */
.tt-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; margin-bottom: .6rem; }
.tt-head img { border-radius: 50%; } .tt-head .text-muted { font-size: .8rem; }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.tt { border: 1.5px solid var(--imq-border); background: #fff; border-radius: 14px; padding: .6rem .5rem .45rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.tt:hover { border-color: var(--imq-blue); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 27, 42, .07); }
.tt.is-on { border-color: var(--imq-blue); background: var(--imq-blue-soft); }
.tt-prev { width: 100%; max-width: 130px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.tt-prev svg { width: 100%; height: 100%; }
.tt-name { font-size: .8rem; font-weight: 600; color: var(--imq-ink); }
.code-rename { border: 0; background: none; color: var(--imq-muted); padding: 0 .25rem; border-radius: 6px; opacity: 0; transition: opacity .12s; }
.panel:hover .code-rename, .code-rename:focus { opacity: 1; } .code-rename:hover { color: var(--imq-blue); background: var(--imq-blue-soft); }
.code-name-input { max-width: 320px; }
.scan-link { display: block; text-decoration: none; color: var(--imq-ink); border-radius: 10px; padding: .2rem .5rem; }
.scan-link:hover { background: var(--imq-blue-soft); color: var(--imq-blue); }
.scan-link .small { color: var(--imq-muted); }
.an-stats { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.an-bar { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: .7rem; font-size: .9rem; padding: .35rem 0; }
.an-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .an-n { font-weight: 700; min-width: 2.5rem; text-align: right; }
.an-track { height: 8px; border-radius: 99px; background: #eef3f6; overflow: hidden; } .an-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #00a3e0, #0077b6); }
@media (max-width: 991px) { .an-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing (Plans page): trust strip, centred controls, icon cards, Lifetime banner ---------- */
.pz-trust { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--imq-border); border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; box-shadow: 0 6px 20px rgba(15, 27, 42, .04); }
.pz-tr { display: flex; align-items: center; gap: .8rem; padding: .2rem 1rem; } .pz-tr + .pz-tr { border-left: 1px solid #eef3f6; }
.pz-tr strong { display: block; font-size: .9rem; } .pz-tr small { color: var(--imq-muted); font-size: .78rem; }
.pz-tr-ic { flex: 0 0 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.tr-b { background: #e3f4fc; color: #0077b6; } .tr-p { background: #f1ecfd; color: #6d3fd1; } .tr-g { background: #e6f6ec; color: #17663a; } .tr-v { background: #f4ecfd; color: #8b3fd1; }
.pz-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem; margin-bottom: 1.4rem; }
.pz-cur { display: flex; align-items: center; gap: .45rem; } .pz-cur > span { color: var(--imq-muted); font-size: .88rem; margin-right: .2rem; }
.pz-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .4rem; border-radius: 999px; border: 1.5px solid var(--imq-border); background: #fff; color: var(--imq-ink); font-weight: 700; font-size: .85rem; text-decoration: none; }
.pz-chip .pz-sym { width: 24px; height: 24px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.pz-chip.is-on { border-color: var(--imq-blue); background: var(--imq-blue-soft); color: #035f86; } .pz-chip.is-on .pz-sym { background: #fff; }
.pz-toggle { display: inline-flex; align-items: center; gap: .3rem; background: #fff; border: 1px solid var(--imq-border); border-radius: 999px; padding: 4px; }
.pz-toggle a { padding: .42rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--imq-ink); text-decoration: none; }
.pz-toggle a.is-on { background: linear-gradient(120deg, #00a3e0, #0091cf); color: #fff; box-shadow: 0 6px 14px rgba(0, 163, 224, .28); }
.pz-save { background: #e6f6ec; color: #17663a; font-size: .74rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; margin: 0 .3rem; }
.pz-card { padding: 1.4rem !important; border-radius: 18px; }
.pz-card.is-popular { background: linear-gradient(180deg, #f2fafe, #fff 45%); border-color: rgba(0, 163, 224, .55); box-shadow: 0 14px 36px rgba(0, 163, 224, .14); }
.pz-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .9rem; }
.pz-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.pz-t0 { background: #e3f4fc; color: #0077b6; } .pz-t1 { background: #e6f6ec; color: #17663a; } .pz-t2 { background: #e3f4fc; color: #0077b6; } .pz-t3 { background: #f1ecfd; color: #6d3fd1; }
.pz-right { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.pz-cursel { border: 1px solid var(--imq-border); border-radius: 9px; font-size: .74rem; font-weight: 700; padding: .2rem 1.4rem .2rem .55rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") right .35rem center / 10px no-repeat; appearance: none; color: var(--imq-ink); cursor: pointer; }
.pz-pill { background: #e6f6ec; color: #17663a; font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.pz-card .plan-flag { left: 50%; right: auto; transform: translateX(-50%); }
.pz-card .pp-num { font-size: 1.85rem; }
.pz-outline { border: 1.5px solid var(--imq-blue); color: #0077b6; background: #fff; font-weight: 700; border-radius: 11px; }
.pz-outline:hover { background: var(--imq-blue-soft); color: #035f86; border-color: var(--imq-blue); }
.pz-card .btn-primary { border-radius: 11px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 163, 224, .28); }
.pz-feats li { font-size: .88rem; } .pz-feats li i { color: #1d8a4e; }
.pz-life { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.5rem 1.8rem; border-radius: 18px; color: #fff; background: radial-gradient(circle at 85% 0, rgba(0, 163, 224, .55), transparent 55%), linear-gradient(120deg, #0b3b66, #0a5a8e); box-shadow: 0 14px 36px rgba(11, 59, 102, .25); margin-top: .5rem; }
.pz-nomo { display: inline-block; background: #fdecec; color: #c0392b; font-size: .72rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; }
.pz-life-h { font-size: 1.45rem; font-weight: 800; margin: .35rem 0 .3rem; color: #fff; }
.pz-life-f { font-size: .86rem; color: #cfe3f2; } .pz-dot { margin: 0 .5rem; opacity: .6; }
.pz-life-r { text-align: right; } .pz-life-p { font-size: 1.9rem; font-weight: 800; line-height: 1; } .pz-life-s { font-size: .78rem; color: #cfe3f2; }
.pz-life-btn { margin-top: .6rem; border: 0; border-radius: 11px; background: #fff; color: #0b3b66; font-weight: 800; padding: .6rem 1.3rem; }
.pz-life-btn:hover { background: #e3f4fc; }
.pz-foot { text-align: center; color: var(--imq-muted); font-size: .82rem; margin-top: 1rem; }
@media (max-width: 991px) { .pz-trust { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .pz-tr + .pz-tr { border-left: 0; } }

/* each picker tile holds its own hidden button, so choosing a tile never scrolls the page */
.pick-cell { position: relative; display: flex; }
.pick-cell > .pick { flex: 1; }

/* Website generator: type tabs (popular types + More), in the IMQRScan theme */
.gt-bar { background: #fff; border: 1px solid var(--imq-border); border-radius: 20px; padding: 10px 12px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(15, 27, 42, .06); }
.gt-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gt-tab { position: relative; flex: 0 0 auto; min-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; border-radius: 14px; color: var(--imq-muted, #5b6b7d); text-decoration: none; border: 0; background: transparent; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.gt-tab i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 1.2rem; line-height: 1; background: var(--imq-blue-soft, #e6f6fc); color: var(--imq-blue, #00a3e0); transition: background .15s, color .15s, transform .15s; }
.gt-tab span { white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.gt-tab:hover { color: var(--imq-ink); background: #f6f9fc; }
.gt-tab:hover i { transform: translateY(-1px); }
.gt-tab.is-on { color: var(--imq-blue-dark, #0089bd); }
.gt-tab.is-on i, .gt-tab.is-on.ic-color i[class*='bi-'] { background: var(--imq-blue, #00a3e0); color: #fff; box-shadow: 0 6px 14px rgba(0, 163, 224, .3); }
.gt-tab:not(.is-on) i { background: #f3f6fa; }
.gt-tab.is-on::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 3px; border-radius: 3px; background: var(--imq-blue, #00a3e0); }
.gt-more { margin-left: auto; border-left: 1px solid var(--imq-border); border-radius: 0 14px 14px 0; padding-left: 12px; }
.gt-more i { background: #fff; border: 1.5px solid var(--imq-blue, #00a3e0); color: var(--imq-blue, #00a3e0); }
.gt-more.is-on i { background: var(--imq-blue, #00a3e0); color: #fff; }
.gt-panel { border-top: 1px solid var(--imq-border); margin-top: 10px; padding-top: 14px; }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; }
.gt-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--imq-ink); text-decoration: none; font-size: .86rem; font-weight: 600; border: 1px solid var(--imq-border); background: #fff; transition: border-color .15s, background .15s; }
.gt-item:hover { border-color: var(--imq-blue, #00a3e0); background: var(--imq-blue-soft, #e6f6fc); color: var(--imq-ink); }
.gt-item i { font-size: 1.1rem; }

/* Templates: one compact row of small thumbnails, scrolling sideways (dashboard and website widget) */
.tt-row { position: relative; }
.tt-grid { display: flex !important; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 4px; }
.tt-grid::-webkit-scrollbar { display: none; }
.tt { flex: 0 0 auto; width: 84px; padding: 6px 5px 5px; border-radius: 12px; gap: 3px; scroll-snap-align: start; }
.tt-prev { max-width: 70px; }
.tt-name { font-size: .68rem; white-space: nowrap; }
.tt-arrow { position: absolute; top: 50%; transform: translateY(-60%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid #d6e4ef; background: #fff; color: var(--imq-ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15, 27, 42, .12); z-index: 2; cursor: pointer; }
.tt-arrow:hover { border-color: var(--imq-blue); color: var(--imq-blue); }
.tt-arrow.prev { left: -10px; } .tt-arrow.next { right: -10px; } .tt-arrow[hidden] { display: none; }
