:root {
    --primary: #0099ff;
    --secondary: #0066cc;
    --tertiary: #be27f5;
    --accent: #ff9900;
    --bg: #ffffff;
    --text: #07111f;
    --muted: #5c6b7a;
    --glass: rgba(255,255,255,.72);
    --shadow: 0 30px 80px rgba(0, 42, 92, .18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0,153,255,.28), transparent 35%),
        radial-gradient(circle at top right, rgba(190,39,245,.18), transparent 35%),
        linear-gradient(135deg, #ffffff, #edf8ff);
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.hero-card {
    width: min(1120px, 100%);
    padding: clamp(32px, 7vw, 96px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 36px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: perspective(1200px) rotateX(2deg);
}

.eyebrow {
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1 {
    max-width: 850px;
    margin: 18px 0;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(42px, 7vw, 86px);
    line-height: .95;
}

p {
    max-width: 760px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    box-shadow: 0 16px 34px rgba(0,153,255,.3);
}

.btn.secondary {
    color: var(--secondary);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    padding: 32px;
}

.auth-brand,
.auth-card {
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 34px;
    background: rgba(255,255,255,.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: clamp(28px, 5vw, 64px);
}

.auth-card {
    max-width: 520px;
    width: 100%;
}

.auth-card h2 {
    margin-top: 0;
    font-size: 32px;
}

label {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(0,102,204,.18);
    border-radius: 18px;
    padding: 0 16px;
    font: inherit;
    outline: none;
    background: rgba(255,255,255,.9);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,153,255,.12);
}

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    color: #8a1020;
    background: rgba(250,7,40,.12);
    font-weight: 800;
}

.full {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.dash-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    padding: 28px;
    background: linear-gradient(180deg, #07111f, #0b2a52);
    color: #fff;
}

.brand {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 36px;
}

.sidebar nav {
    display: grid;
    gap: 10px;
}

.sidebar a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 800;
}

.sidebar a.active,
.sidebar a:hover {
    color: #fff;
    background: rgba(255,255,255,.13);
}

.dash-main {
    padding: 32px;
}

.dash-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 22px 54px rgba(0,42,92,.12);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 42px;
}

@media (max-width: 900px) {
    .auth-shell,
    .dash-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .dash-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

.panel-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 22px 54px rgba(0,42,92,.12);
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 18px;
}

.grid-form .full {
    align-self: end;
}

.alert.success {
    color: #087a48;
    background: rgba(32,245,154,.14);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0,102,204,.12);
    text-align: left;
}

th {
    color: var(--secondary);
    font-weight: 900;
}

@media (max-width: 900px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
}

.home-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.home-hero-copy {
    min-width: 0;
}

.home-hero-image-wrap {
    display: grid;
    place-items: center;
    width: 100%;
}

.home-hero-image {
    width: min(100%, 370px);
    max-height: 560px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 42, 92, .22);
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-hero-image:hover {
    transform: perspective(1200px) rotateY(0deg) translateY(-5px);
    box-shadow: 0 34px 90px rgba(0, 42, 92, .30);
}

@media (max-width: 980px) {
    .home-hero-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-hero-image {
        width: min(100%, 340px);
        max-height: 520px;
    }
}

@media (max-width: 560px) {
    .home-hero-card {
        padding: 28px;
        border-radius: 28px;
    }

    .home-hero-image {
        width: min(100%, 300px);
        max-height: 460px;
    }
}

/* ---------- Hero Tagline ---------- */

.hero-tagline{
    margin:14px 0 24px;
    font-size:clamp(1.15rem,2vw,1.6rem);
    font-weight:700;
    line-height:1.35;
    color:#0a6fe8;
    letter-spacing:.02em;
    position:relative;
}

.hero-tagline::before{
    content:"";
    display:block;
    width:72px;
    height:4px;
    margin-bottom:14px;
    border-radius:999px;
    background:linear-gradient(90deg,#00c2ff,#0a6fe8,#7b3cff);
}

html[data-theme="dark"] .hero-tagline{
    color:#7fd3ff;
}

html[data-theme="dark"] .hero-tagline::before{
    background:linear-gradient(90deg,#3fdcff,#45a4ff,#a27bff);
}

@media (max-width:768px){

    .hero-tagline{
        text-align:center;
        margin:18px auto 24px;
    }

    .hero-tagline::before{
        margin:0 auto 14px;
    }

}

/* ---------- Home hero final layout polish ---------- */

.home-hero-card {
    width: min(1280px, 100%);
    min-height: 720px;
    padding: clamp(42px, 5.8vw, 84px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: clamp(56px, 7vw, 96px);
}

.home-hero-copy h1 {
    max-width: 680px;
    font-size: clamp(52px, 5vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
    margin-bottom: 12px;
}

.hero-kicker {
    margin-top: -8px;
    margin-bottom: 22px;
    color: #455d78;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 900;
}

.hero-kicker::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0099ff, #BE27F5);
}

.home-hero-copy p {
    max-width: 660px;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.58;
}

.home-hero-copy p strong {
    color: #455d78;
    font-weight: 950;
}

.home-hero-image-wrap {
    align-self: center;
    justify-self: end;
    padding-left: clamp(20px, 3vw, 48px);
}

.home-hero-image {
    width: min(100%, 450px);
    max-height: 660px;
    border-radius: 22px;
    object-fit: contain;
}

.hero-tagline {
    margin: 18px 0 24px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.25;
}

.actions {
    margin-top: 34px;
}

@media (max-width: 1100px) {
    .home-hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 36px;
    }

    .home-hero-image-wrap {
        justify-self: center;
        padding-left: 0;
    }

    .home-hero-copy h1,
    .home-hero-copy p {
        max-width: none;
    }

    .home-hero-image {
        width: min(100%, 420px);
        max-height: 620px;
    }
}

@media (max-width: 560px) {
    .home-hero-card {
        padding: 28px;
    }

    .home-hero-copy h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .hero-kicker,
    .hero-tagline,
    .home-hero-copy p {
        text-align: left;
    }

    .hero-tagline::before,
    .hero-kicker::after {
        margin-left: 0;
    }

    .home-hero-image {
        width: min(100%, 310px);
        max-height: 480px;
    }
}

/* ---------- Homepage light/dark mode ---------- */

.home-theme-toggle {
    position: fixed;
    top: 18px;
    right: 28px;
    z-index: 30;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 20% 12%, rgba(0,153,255,.20), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(190,39,245,.24), transparent 32%),
        linear-gradient(135deg, #030711, #071426 58%, #02040a);
    color: #eef8ff;
}

html[data-theme="dark"] .home-hero-card {
    background: linear-gradient(145deg, rgba(4,10,22,.86), rgba(7,20,38,.78));
    border-color: rgba(84,214,255,.24);
    box-shadow: 0 34px 90px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08);
}

html[data-theme="dark"] .home-hero-copy h1 {
    color: #eef8ff;
    text-shadow: 0 0 34px rgba(0,153,255,.20);
}

html[data-theme="dark"] .home-hero-copy p,
html[data-theme="dark"] .home-hero-copy p strong,
html[data-theme="dark"] .hero-kicker {
    color: #9fb8cc;
}

html[data-theme="dark"] .hero-tagline {
    color: #7fd3ff;
}

html[data-theme="dark"] .btn.secondary {
    background: rgba(255,255,255,.08);
    color: #eef8ff;
    border: 1px solid rgba(84,214,255,.20);
}

html[data-theme="dark"] .home-hero-image {
    box-shadow: 0 34px 90px rgba(0,0,0,.52), 0 0 36px rgba(0,153,255,.18);
}

@media (max-width: 768px) {
    .home-theme-toggle {
        position: static;
        margin: 14px auto 0;
        width: max-content;
    }
}

/* ---------- Consistent modern theme toggle + 3D SaaS polish ---------- */

.modern-theme-toggle,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(0,153,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    box-shadow:
        0 18px 44px rgba(0,42,92,.16),
        inset 0 1px 0 rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modern-theme-toggle span,
.theme-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 950;
    letter-spacing: -.02em;
    transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

html[data-theme="light"] .modern-theme-toggle span:first-child,
html[data-theme="light"] .theme-toggle span:first-child,
html[data-theme="dark"] .modern-theme-toggle span:last-child,
html[data-theme="dark"] .theme-toggle span:last-child {
    color: #fff;
    background: linear-gradient(135deg, #0099ff, #BE27F5);
    box-shadow: 0 10px 24px rgba(0,153,255,.28);
}

html[data-theme="dark"] .modern-theme-toggle,
html[data-theme="dark"] .theme-toggle {
    color: #eef8ff;
    background: rgba(3,7,17,.78);
    border-color: rgba(84,214,255,.22);
    box-shadow:
        0 22px 54px rgba(0,0,0,.40),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.modern-theme-toggle:hover span,
.theme-toggle:hover span {
    transform: translateY(-1px);
}

.home-hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform-style: preserve-3d;
    box-shadow:
        0 34px 90px rgba(0,42,92,.18),
        inset 0 1px 0 rgba(255,255,255,.72);
}

.home-hero-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 15%, rgba(0,153,255,.18), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(190,39,245,.14), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.58));
}

.home-hero-card::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0,153,255,.18), transparent 68%);
    filter: blur(4px);
    z-index: -1;
    animation: heroGlowDrift 8s ease-in-out infinite;
}

@keyframes heroGlowDrift {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-28px,24px,0) scale(1.08); }
}

.home-hero-copy {
    transform: translateZ(36px);
}

.home-hero-image-wrap {
    transform: translateZ(52px);
}

.home-hero-image {
    border: 1px solid rgba(255,255,255,.30);
    transform: perspective(1300px) rotateY(-5deg) rotateX(2deg) translateZ(12px);
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
    filter: saturate(1.05) contrast(1.02);
}

.home-hero-image:hover {
    transform: perspective(1300px) rotateY(0deg) rotateX(0deg) translateY(-7px) translateZ(18px);
    filter: saturate(1.14) contrast(1.06);
}

.home-hero-copy .btn {
    transform: translateZ(44px);
    box-shadow: 0 18px 42px rgba(0,153,255,.22);
}

.home-hero-copy .btn:hover {
    transform: translateY(-4px) translateZ(44px);
}

.hero-kicker,
.hero-tagline,
.home-hero-copy p {
    text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

html[data-theme="dark"] .home-hero-card::before {
    background:
        radial-gradient(circle at 20% 15%, rgba(0,153,255,.18), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(190,39,245,.20), transparent 34%),
        linear-gradient(145deg, rgba(4,10,22,.92), rgba(7,20,38,.76));
}

html[data-theme="dark"] .home-hero-card::after {
    background: radial-gradient(circle, rgba(0,153,255,.22), transparent 68%);
}

html[data-theme="dark"] .hero-kicker,
html[data-theme="dark"] .hero-tagline,
html[data-theme="dark"] .home-hero-copy p {
    text-shadow: none;
}

@media (hover: hover) {
    .home-hero-card:hover {
        transform: perspective(1400px) rotateX(0deg) translateY(-4px);
    }
}

@media (max-width: 768px) {
    .modern-theme-toggle,
    .theme-toggle {
        margin-inline: auto;
    }

    .modern-theme-toggle span,
    .theme-toggle span {
        min-height: 34px;
        padding: 0 14px;
    }

    .home-hero-card,
    .home-hero-card:hover,
    .home-hero-image,
    .home-hero-image:hover,
    .home-hero-copy,
    .home-hero-image-wrap {
        transform: none;
    }
}

.branding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: start;
}

.branding-form h2 {
    margin: 28px 0 12px;
}

.branding-form h2:first-child {
    margin-top: 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

input[type="color"] {
    height: 54px;
    padding: 6px;
    cursor: pointer;
}

.live-preview {
    position: sticky;
    top: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--tenant-primary, #0099ff) 24%, transparent), transparent 38%),
        radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--tenant-accent, #be27f5) 18%, transparent), transparent 34%),
        rgba(255,255,255,.82);
}

.preview-chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--tenant-primary, #0099ff), var(--tenant-accent, #be27f5));
    font-weight: 900;
}

.live-preview h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: .95;
}

.preview-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.preview-stat {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 16px 34px rgba(0,42,92,.10);
}

.preview-stat span {
    color: var(--muted);
    font-weight: 800;
}

.preview-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    color: var(--tenant-secondary, #0066cc);
}

.live-preview .btn.primary {
    background: linear-gradient(135deg, var(--tenant-primary, #0099ff), var(--tenant-accent, #be27f5));
}

@media (max-width: 1000px) {
    .branding-grid {
        grid-template-columns: 1fr;
    }

    .live-preview {
        position: static;
    }
}

@media (max-width: 680px) {
    .color-grid,
    .preview-card-row {
        grid-template-columns: 1fr;
    }
}

.asset-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    min-height: 96px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(0,153,255,.14);
    box-shadow: 0 16px 34px rgba(0,42,92,.10);
}

.asset-preview img {
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
}

.favicon-preview {
    width: 96px;
    min-height: 96px;
}

.favicon-preview img {
    max-width: 48px;
    max-height: 48px;
}

.tenant-brand img {
    display: block;
    max-width: 170px;
    max-height: 72px;
    object-fit: contain;
}

.tenant-home-logo,
.tenant-login-logo {
    display: block;
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 22px;
}

.dash-layout .sidebar a.active,
.dash-layout .sidebar a:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--tenant-primary, #0099ff) 30%, transparent), color-mix(in srgb, var(--tenant-accent, #be27f5) 22%, transparent));
}

.dash-main .eyebrow,
.hero-card .eyebrow {
    color: var(--tenant-secondary, var(--secondary));
}

@supports not (color: color-mix(in srgb, red 30%, transparent)) {
    .dash-layout .sidebar a.active,
    .dash-layout .sidebar a:hover {
        background: rgba(255,255,255,.13);
    }
}

.tenant-footer {
    position: relative;
    z-index: 5;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.tenant-logo {
    display: block;
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
}

.preview-support {
    display: grid;
    gap: 6px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(0,153,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 16px 34px rgba(0,42,92,.10);
}

.preview-support strong {
    color: var(--tenant-secondary, #0066cc);
}

.preview-support span {
    color: var(--muted);
    font-weight: 800;
}

.sidebar .tenant-brand img {
    margin-bottom: 8px;
}

html[data-theme="dark"] .tenant-footer,
html[data-theme="dark"] .preview-support span {
    color: #9fb8cc;
}

html[data-theme="dark"] .preview-support {
    background: rgba(4,10,22,.70);
    border-color: rgba(84,214,255,.18);
}

textarea {
    width: 100%;
    border: 1px solid rgba(0,102,204,.18);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
    background: rgba(255,255,255,.9);
}

textarea:focus {
    border-color: var(--tenant-primary, var(--primary));
    box-shadow: 0 0 0 4px rgba(0,153,255,.12);
    outline: none;
}

.tenant-register-shell .auth-brand {
    min-height: 680px;
}

.form-note {
    margin-top: 18px;
    font-size: 15px;
}

.form-note a {
    color: var(--tenant-secondary, var(--secondary));
    font-weight: 900;
}

.hero {
    width: 100%;
    padding: 32px;
}

.hero-grid {
    width: min(1760px, 100%);
}

body .hero {
    display: grid;
    place-items: center;
}

body .hero > .home-hero-card {
    width: min(1760px, 100%);
}

.home-ticker-card {
    width: min(1760px, 100%);
    margin-top: 28px;
    min-height: 680px;
}

.ticker-title,
.ticker-footer {
    padding: 20px 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(0,153,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 44px rgba(0,42,92,.10);
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.5;
    font-weight: 850;
}

.ticker-title strong {
    color: var(--secondary);
}

.vertical-ticker-frame {
    position: relative;
    height: 390px;
    margin: 22px 0;
    overflow: hidden;
    border: 3px ridge rgba(0,153,255,.45);
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,153,255,.14), transparent 32%),
        linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.62));
    box-shadow:
        0 28px 72px rgba(0,42,92,.18),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.vertical-ticker-track {
    position: absolute;
    width: 100%;
    animation: verticalTicker 34s linear infinite;
}

.vertical-ticker-frame:hover .vertical-ticker-track {
    animation-play-state: paused;
}

@keyframes verticalTicker {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

.ticker-item {
    padding: 28px;
    margin: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,153,255,.14);
    box-shadow:
        0 20px 44px rgba(0,42,92,.12),
        inset 0 1px 0 rgba(255,255,255,.8);
    transform: perspective(1000px) rotateX(1deg);
}

.ticker-item h3 {
    margin: 0 0 10px;
    color: var(--secondary);
    text-shadow: 0 2px 0 rgba(255,255,255,.5);
}

.ticker-item div {
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.55;
}

.ticker-item img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin-bottom: 14px;
    border-radius: 18px;
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.wysiwyg-toolbar button,
.wysiwyg-toolbar select,
.wysiwyg-toolbar input {
    min-height: 40px;
    border: 1px solid rgba(0,102,204,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.9);
    padding: 0 10px;
}

.wysiwyg-editor {
    min-height: 180px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(0,102,204,.18);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
    min-height: auto;
}

@media (min-width: 1280px) {
    body .hero {
        align-items: stretch;
    }

    body .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(420px, .75fr);
        gap: 28px;
        max-width: 1760px;
        margin: 0 auto;
    }

    body .hero > .home-hero-card,
    body .hero > .home-ticker-card {
        margin-top: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 1279px) {
    .home-ticker-card {
        width: min(1280px, 100%);
    }
}

@media (max-width: 680px) {
    .hero {
        padding: 14px;
    }

    .home-ticker-card {
        min-height: auto;
        padding: 24px;
    }

    .vertical-ticker-frame {
        height: 360px;
    }

    .ticker-title,
    .ticker-footer {
        font-size: 15px;
        padding: 16px;
    }

    .ticker-item {
        margin: 12px;
        padding: 18px;
    }
}

/* ---------- Final Homepage Ticker Dark Glass 3D Polish ---------- */

html[data-theme="dark"] .home-ticker-card,
.home-ticker-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 860px;
    color: #eef8ff;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(84,214,255,.22);
    background:
        radial-gradient(circle at 20% 0%, rgba(0,180,255,.12), transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(190,39,245,.18), transparent 48%),
        linear-gradient(145deg, rgba(4,10,22,.94), rgba(7,20,38,.86) 48%, rgba(16,13,44,.92));
    box-shadow:
        0 35px 90px rgba(0,0,0,.45),
        0 0 70px rgba(0,110,255,.10),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.home-ticker-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(84,214,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84,214,255,.04) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .7;
}

.home-ticker-card::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -130px;
    top: -130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0,153,255,.22), transparent 70%);
    filter: blur(6px);
    animation: heroGlowDrift 8s ease-in-out infinite;
}

.home-ticker-card > * {
    position: relative;
    z-index: 2;
}

.ticker-title,
.ticker-footer {
    color: #dfefff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(84,214,255,.18);
    box-shadow:
        0 22px 54px rgba(0,0,0,.26),
        inset 0 1px 0 rgba(255,255,255,.08);
    text-shadow: 0 0 10px rgba(0,170,255,.22);
}

.ticker-title {
    font-size: clamp(17px, 1.15vw, 21px);
    line-height: 1.65;
    font-weight: 850;
}

.ticker-title strong {
    color: #62c7ff;
    text-shadow: 0 0 18px rgba(0,153,255,.32);
}

.ticker-footer {
    padding: 26px;
    text-align: center;
    color: #9ecfff;
    font-weight: 850;
    line-height: 1.8;
}

.vertical-ticker-frame {
    height: 720px;
    margin: 30px 0;
    overflow: hidden;
    border: 3px ridge rgba(0,180,255,.36);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 12%, rgba(0,153,255,.13), transparent 34%),
        linear-gradient(160deg, rgba(8,22,40,.98), rgba(10,20,42,.96));
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.07),
        inset 0 -2px 0 rgba(0,0,0,.38),
        0 25px 60px rgba(0,0,0,.45),
        0 0 35px rgba(0,160,255,.12);
}

.vertical-ticker-track {
    animation: verticalTicker 55s linear infinite;
}

@keyframes verticalTicker {
    0% { transform: translateY(110%); }
    100% { transform: translateY(-120%); }
}

.ticker-item {
    margin: 22px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(18,34,60,.98), rgba(10,20,38,.98));
    border: 1px solid rgba(84,214,255,.20);
    box-shadow:
        0 20px 45px rgba(0,0,0,.40),
        0 0 20px rgba(0,180,255,.10),
        inset 0 1px 0 rgba(255,255,255,.07);
    transform: perspective(1400px) rotateX(4deg) translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease;
}

.ticker-item:hover {
    transform: perspective(1400px) rotateX(0deg) translateY(-8px) scale(1.02);
    box-shadow:
        0 35px 70px rgba(0,0,0,.50),
        0 0 30px rgba(0,180,255,.22),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.ticker-item h3 {
    color: #62c7ff;
    text-shadow: 0 0 18px rgba(0,153,255,.22);
}

.ticker-item div {
    color: #c7d8e8;
}

.ticker-company-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.ticker-company-logo img {
    width: min(220px, 70%);
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 25px rgba(0,180,255,.25))
        drop-shadow(0 20px 34px rgba(0,0,0,.35));
}

@media (max-width: 900px) {
    .home-ticker-card {
        min-height: auto;
    }

    .vertical-ticker-frame {
        height: 520px;
    }

    .ticker-company-logo {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .ticker-company-logo img {
        width: min(160px, 70%);
    }
}

@media (max-width: 680px) {
    .vertical-ticker-frame {
        height: 460px;
    }

    .ticker-title,
    .ticker-footer {
        font-size: 14px;
        line-height: 1.55;
    }

    .ticker-item {
        margin: 12px;
        padding: 18px;
    }
}

/* Ticker speed/start adjustment */
.vertical-ticker-track {
    animation: verticalTicker 95s linear infinite !important;
}

@keyframes verticalTicker {
    0% { transform: translateY(18%); }
    100% { transform: translateY(-120%); }
}

/* Admin-controlled ticker timing */
.vertical-ticker-track {
    animation-duration: var(--ticker-duration, 120s) !important;
}

@keyframes verticalTicker {
    0% { transform: translateY(var(--ticker-start, 12%)); }
    100% { transform: translateY(var(--ticker-end, -120%)); }
}

.cms-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.cms-toolbar button,
.cms-toolbar select,
.cms-toolbar input[type="color"] {
    min-height: 38px;
    border: 1px solid rgba(0,102,204,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    padding: 0 10px;
    font-weight: 800;
    cursor: pointer;
}

.cms-toolbar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,42,92,.12);
}

.cms-preview-card {
    margin-top: 18px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(8,22,40,.98), rgba(10,20,42,.96));
    border: 1px solid rgba(84,214,255,.22);
    box-shadow: 0 24px 54px rgba(0,0,0,.25);
}

.ticker-message-preview {
    margin-top: 16px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    color: #dfefff;
    min-height: 120px;
}

.ticker-message-preview p,
.ticker-item p {
    margin: 0 0 22px;
    line-height: 1.75;
}

.ticker-message-preview h2,
.ticker-item h2 {
    margin: 0 0 18px;
    color: #62c7ff;
    font-size: 28px;
}

.ticker-message-preview h3,
.ticker-item h3 {
    margin: 0 0 14px;
    color: #62c7ff;
}

.ticker-message-preview hr,
.ticker-item hr {
    border: 0;
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent, rgba(84,214,255,.55), transparent);
}

.ticker-inline-img,
.ticker-item img.ticker-inline-img {
    display: block;
    width: min(100%, 520px);
    max-height: 280px;
    object-fit: contain;
    margin: 24px auto;
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0,0,0,.35), 0 0 24px rgba(0,153,255,.16);
}

.ticker-item {
    margin-bottom: var(--ticker-message-spacing, 90px) !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    text-transform: capitalize;
}

.status-pending {
    color: #8a5b00;
    background: rgba(255,204,51,.18);
}

.status-approved {
    color: #087a48;
    background: rgba(32,245,154,.16);
}

.status-rejected {
    color: #b4233a;
    background: rgba(255,56,96,.14);
}

.table-wrap .btn {
    padding: 9px 13px;
    min-height: auto;
    font-size: 14px;
    margin: 2px;
}

.referral-badge {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(32,245,154,.13);
    border: 1px solid rgba(32,245,154,.28);
    color: #087a48;
    font-weight: 900;
}

.trust-pill {
    display: inline-flex;
    min-width: 46px;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 950;
}

.trust-good {
    color: #087a48;
    background: rgba(32,245,154,.16);
}

.trust-warn {
    color: #8a5b00;
    background: rgba(255,204,51,.18);
}

.trust-bad {
    color: #b4233a;
    background: rgba(255,56,96,.14);
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 26px;
}

.intel-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(0,153,255,.16), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(190,39,245,.14), transparent 42%),
        linear-gradient(145deg, rgba(4,10,22,.94), rgba(7,20,38,.88));
    border: 1px solid rgba(84,214,255,.22);
    box-shadow: 0 30px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
    color: #eef8ff;
}

.intel-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.intel-card h2 {
    font-size: 18px;
    word-break: break-all;
    color: #eef8ff;
}

.risk-badge {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.risk-low {
    color: #20f59a;
    background: rgba(32,245,154,.13);
}

.risk-medium {
    color: #ffcc33;
    background: rgba(255,204,51,.15);
}

.risk-high {
    color: #ff3860;
    background: rgba(255,56,96,.14);
}

.intel-score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.intel-score {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(84,214,255,.14);
}

.intel-score span {
    color: #9fb8cc;
    font-weight: 850;
}

.intel-score strong {
    display: block;
    font-size: 34px;
    margin: 6px 0 10px;
}

.score-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
}

.score-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #20f59a, #54d6ff);
}

.score-bar.danger i {
    background: linear-gradient(90deg, #ffcc33, #ff3860);
}

.intel-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.intel-facts div {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,.055);
}

.intel-facts span {
    display: block;
    color: #9fb8cc;
    font-size: 13px;
    font-weight: 850;
}

.intel-facts strong {
    display: block;
    margin-top: 4px;
}

.intel-reason {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(84,214,255,.12);
}

.intel-reason p {
    margin-bottom: 0;
    color: #c7d8e8;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .intel-grid,
    .intel-score-grid,
    .intel-facts {
        grid-template-columns: 1fr;
    }
}

.intel-profiles {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(84,214,255,.12);
}

.profile-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,153,255,.18), rgba(190,39,245,.16));
    color: #eef8ff;
    font-weight: 900;
    border: 1px solid rgba(84,214,255,.18);
}

.profile-pill em {
    font-style: normal;
    color: #54d6ff;
}

.workbench-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,153,255,.18), transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(190,39,245,.18), transparent 42%),
        linear-gradient(145deg, rgba(4,10,22,.96), rgba(7,20,38,.90));
    color: #eef8ff;
    border: 1px solid rgba(84,214,255,.22);
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.workbench-hero h2 {
    color: #eef8ff;
    font-size: 42px;
    margin: 16px 0 10px;
}

.workbench-hero p {
    color: #c7d8e8;
    line-height: 1.7;
}

.workbench-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.workbench-kpis div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(84,214,255,.15);
}

.workbench-kpis span {
    display: block;
    color: #9fb8cc;
    font-weight: 900;
}

.workbench-kpis strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.workbench-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.workbench-tabs a {
    padding: 12px 16px;
    border-radius: 999px;
    color: #0070d9;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,153,255,.18);
    font-weight: 950;
    text-decoration: none;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 14px;
}

.timeline-item {
    padding: 16px 18px;
    border-left: 5px solid #0099ff;
    border-radius: 18px;
    background: rgba(0,153,255,.07);
}

.timeline-item time,
.timeline-item span,
.timeline-item em {
    display: block;
}

.timeline-item time {
    color: #5f7082;
    font-weight: 800;
}

.timeline-item strong {
    display: block;
    margin: 4px 0;
    color: #005fc5;
    font-weight: 950;
}

.heatmap-stage {
    position: relative;
    height: 420px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(rgba(84,214,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84,214,255,.07) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0,153,255,.12), transparent 45%),
        rgba(4,10,22,.92);
    background-size: 34px 34px, 34px 34px, auto, auto;
    border: 1px solid rgba(84,214,255,.22);
}

.heatmap-stage i {
    position: absolute;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,204,51,.95), rgba(255,56,96,.68), transparent 70%);
    box-shadow: 0 0 24px rgba(255,56,96,.65);
}

@media (max-width: 900px) {
    .workbench-hero,
    .workbench-kpis {
        grid-template-columns: 1fr;
    }
}

.pagination {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.pagination span {
    font-weight: 900;
    color: #5f7082;
}

.muted {
    color: #5f7082;
    line-height: 1.6;
    max-width: 900px;
}

.geo-map {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #071426;
    border: 1px solid rgba(84,214,255,.24);
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
}

.geo-map img {
    display: block;
    width: 100%;
    height: auto;
}

.geo-marker-layer {
    position: absolute;
    inset: 0;
}

.geo-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    font-weight: 950;
    box-shadow: 0 0 24px rgba(0,153,255,.7);
    animation: geoPulse 1.8s infinite ease-in-out;
}

.geo-marker span {
    position: relative;
    z-index: 2;
}

.geo-low {
    background: radial-gradient(circle, #20f59a, rgba(32,245,154,.25));
}

.geo-med {
    background: radial-gradient(circle, #ffcc33, rgba(255,204,51,.25));
}

.geo-high {
    background: radial-gradient(circle, #ff3860, rgba(255,56,96,.28));
}

@keyframes geoPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(84,214,255,.55); }
    50% { box-shadow: 0 0 34px rgba(84,214,255,.95); }
}

.radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 18px;
}

.radar-card {
    padding: 20px;
    border-radius: 24px;
    color: #eef8ff;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,153,255,.18), transparent 38%),
        linear-gradient(145deg, rgba(4,10,22,.96), rgba(7,20,38,.90));
    border: 1px solid rgba(84,214,255,.18);
    box-shadow: 0 24px 54px rgba(0,0,0,.22);
}

.radar-card.risk-low {
    border-color: rgba(32,245,154,.22);
}

.radar-card.risk-medium {
    border-color: rgba(255,204,51,.32);
}

.radar-card.risk-high {
    border-color: rgba(255,56,96,.38);
}

.radar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #9fb8cc;
    font-weight: 950;
}

.radar-card h3 {
    color: #eef8ff;
    font-size: 30px;
    margin: 12px 0 4px;
}

.radar-card p {
    color: #c7d8e8;
}

.radar-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.radar-kpis div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.075);
}

.radar-kpis span {
    display: block;
    font-size: 12px;
    color: #9fb8cc;
    font-weight: 900;
}

.radar-kpis b {
    display: block;
    font-size: 22px;
}

.radar-meta {
    font-weight: 850;
}

.event-stream {
    display: grid;
    gap: 10px;
}

.event-row {
    display: grid;
    grid-template-columns: 180px 1.3fr 1fr 1fr 1.4fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(4,10,22,.92);
    border: 1px solid rgba(84,214,255,.16);
    color: #eef8ff;
}

.event-row time {
    color: #9fb8cc;
    font-weight: 850;
}

.event-row strong {
    color: #54d6ff;
}

.event-row a {
    color: #20f59a;
    font-weight: 900;
}

.event-warning {
    border-color: rgba(255,204,51,.35);
}

.event-critical {
    border-color: rgba(255,56,96,.45);
}

@media (max-width: 900px) {
    .event-row {
        grid-template-columns: 1fr;
    }
}

.sidebar-section {
    margin: 18px 14px 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.48);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sidebar nav a + .sidebar-section {
    margin-top: 22px;
}

.inline-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.inline-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.inline-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.inline-mini-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.inline-mini-form .btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* Public landing ticker click pause */
.vertical-ticker-frame{
    position:relative;
    cursor:pointer;
}

.vertical-ticker-track.ticker-paused{
    animation-play-state:paused !important;
}

.ticker-pause-badge{
    position:absolute;
    top:14px;
    right:14px;
    z-index:5;
    display:none;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(0,153,255,.92);
    color:#fff;
    font-size:.75rem;
    font-weight:900;
    box-shadow:0 12px 26px rgba(0,153,255,.25);
}

.vertical-ticker-frame.ticker-paused .ticker-pause-badge{
    display:block;
}

/* Tenant/admin sidebar logout consistency */
.sidebar-logout-form{
    margin-top:24px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.12);
}
.sidebar-logout-form button{
    width:100%;
    display:block;
    border:0;
    border-radius:14px;
    padding:14px 16px;
    background:rgba(255,255,255,.06);
    color:#ffffff;
    font:inherit;
    font-weight:900;
    text-align:left;
    cursor:pointer;
}
.sidebar-logout-form button:hover{
    background:rgba(255,255,255,.12);
}


/* ===========================================================
   Tenant Admin Sidebar Logout
   Match Platform Admin styling
   =========================================================== */

.sidebar-logout-form{
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid rgba(255,255,255,.10);
}

.sidebar-logout-form button{

    width:100%;

    border:none;

    border-radius:16px;

    padding:16px 18px;

    cursor:pointer;

    font-size:18px;

    font-weight:800;

    color:#fff;

    text-align:left;

    transition:.25s;

    background:linear-gradient(
        90deg,
        #ff005a 0%,
        #d414b8 100%
    );

    box-shadow:
        0 8px 22px rgba(212,20,184,.25);

}

.sidebar-logout-form button:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 28px rgba(212,20,184,.40);

}

.sidebar-logout-form button:active{

    transform:translateY(0);

}


/* Standard sidebar logout styling */
.sidebar-logout-form{
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid rgba(255,255,255,.10);
}
.sidebar-logout-form button{
    width:100%;
    border:0;
    border-radius:16px;
    padding:16px 18px;
    cursor:pointer;
    font:inherit;
    font-size:18px;
    font-weight:900;
    color:#fff;
    text-align:left;
    background:linear-gradient(90deg,#ff005a 0%,#d414b8 100%);
    box-shadow:0 8px 22px rgba(212,20,184,.25);
    transition:transform .2s ease, box-shadow .2s ease;
}
.sidebar-logout-form button:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(212,20,184,.40);
}
.sidebar-logout-form button:active{
    transform:translateY(0);
}

/* ===========================================================
   Enterprise sidebar framework
   =========================================================== */

.enterprise-sidebar{
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.20) transparent;
}

.enterprise-sidebar nav{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.sidebar-group{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.sidebar-group-title{
    margin:4px 0 5px;
    padding:0 8px;
    color:#8fa9c4;
    font-size:.68rem;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
    opacity:.9;
}

.sidebar-link{
    display:flex !important;
    align-items:center;
    gap:10px;
    padding:11px 14px !important;
    border-radius:14px;
    color:#eaf5ff !important;
    text-decoration:none;
    font-weight:850;
    transition:background .18s ease, transform .18s ease, color .18s ease;
}

.sidebar-link span{
    width:22px;
    display:inline-flex;
    justify-content:center;
    opacity:.95;
}

.sidebar-link:hover{
    background:rgba(255,255,255,.08);
    transform:translateX(2px);
}

.sidebar-link.active{
    background:linear-gradient(135deg,rgba(0,153,255,.35),rgba(190,39,245,.35)) !important;
    color:#fff !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.sidebar-group.account{
    margin-top:10px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
}

.sidebar-logout-form{
    margin-top:4px !important;
    padding-top:0 !important;
    border-top:0 !important;
}

.sidebar-logout-form button{
    width:100%;
    border:0;
    border-radius:16px;
    padding:15px 18px;
    cursor:pointer;
    font:inherit;
    font-size:1rem;
    font-weight:900;
    color:#fff;
    text-align:left;
    background:linear-gradient(90deg,#ff005a 0%,#d414b8 100%) !important;
    box-shadow:0 8px 22px rgba(212,20,184,.25);
    transition:transform .2s ease, box-shadow .2s ease;
}

.sidebar-logout-form button:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(212,20,184,.40);
}

.tenant-brand img{
    max-width:72px;
    max-height:72px;
    object-fit:contain;
}

/* ===========================================================
   Platform Command Centre
   =========================================================== */

.command-search{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
    padding:20px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(0,153,255,.12),rgba(190,39,245,.10));
    border:1px solid rgba(0,153,255,.18);
    box-shadow:0 18px 42px rgba(15,23,42,.08);
}

.command-search strong{
    display:block;
    color:#071827;
    font-size:1.1rem;
}

.command-search span{
    display:block;
    color:#526a84;
    margin-top:4px;
}

.command-search input{
    width:min(440px,100%);
    border:1px solid #cfe0f2;
    border-radius:16px;
    padding:15px 18px;
    font:inherit;
    font-weight:800;
}

.command-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.command-kpi small{
    display:block;
    margin-top:8px;
    color:#6b7f95;
    font-weight:800;
}

.command-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
    margin-top:22px;
}

.command-grid.lower{
    grid-template-columns:1fr 1fr;
}

.command-panel{
    min-height:260px;
}

.quick-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.quick-action,
.quick-action-form button{
    width:100%;
    min-height:72px;
    border:1px solid rgba(0,153,255,.18);
    border-radius:18px;
    background:linear-gradient(135deg,#ffffff,#f2f9ff);
    color:#071827;
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    font:inherit;
    font-weight:900;
    text-align:left;
    text-decoration:none;
    cursor:pointer;
    box-shadow:0 14px 28px rgba(15,23,42,.06);
}

.quick-action b{
    width:38px;
    height:38px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0099ff,#be27f5);
    color:#fff;
}

.quick-action-form{
    margin:0;
}

.finance-bars{
    display:grid;
    gap:12px;
}

.finance-bars div{
    padding:16px;
    border-radius:18px;
    background:#f7fbff;
    border:1px solid #d7e6f5;
}

.finance-bars span{
    color:#5d748d;
    font-weight:900;
}

.finance-bars strong{
    display:block;
    color:#071827;
    font-size:1.6rem;
    margin-top:4px;
}

.health-list,
.ai-command-list,
.activity-list{
    display:grid;
    gap:10px;
}

.health-row,
.ai-command-list div,
.activity-row{
    padding:14px 16px;
    border-radius:16px;
    background:#f7fbff;
    border:1px solid #d7e6f5;
}

.health-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.health-row.good strong{color:#15803d}
.health-row.warn strong{color:#b45309}
.health-row.neutral strong{color:#0057b8}

.activity-row strong{
    display:block;
    color:#071827;
}

.activity-row span{
    display:block;
    color:#526a84;
    margin-top:4px;
}

.activity-row small{
    display:block;
    color:#7a8da3;
    margin-top:6px;
    font-weight:900;
}

body.admin-dark .command-search,
body.admin-dark .quick-action,
body.admin-dark .quick-action-form button,
body.admin-dark .finance-bars div,
body.admin-dark .health-row,
body.admin-dark .ai-command-list div,
body.admin-dark .activity-row{
    background:#0f172a !important;
    border-color:rgba(0,153,255,.20) !important;
    color:#dbeafe !important;
}

body.admin-dark .command-search strong,
body.admin-dark .finance-bars strong,
body.admin-dark .activity-row strong{
    color:#ffffff !important;
}

body.admin-dark .command-search span,
body.admin-dark .finance-bars span,
body.admin-dark .activity-row span,
body.admin-dark .activity-row small,
body.admin-dark .command-kpi small{
    color:#a9bdd6 !important;
}

@media(max-width:1200px){
    .command-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .command-grid,.command-grid.lower{grid-template-columns:1fr}
}

@media(max-width:720px){
    .command-search{flex-direction:column;align-items:stretch}
    .quick-actions{grid-template-columns:1fr}
}

/* Phase 8A.3.1 — Platform Operations Ribbon + premium KPI cards */
.ops-ribbon{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:16px;
    align-items:stretch;
    margin:0 0 24px;
    padding:18px;
    border-radius:26px;
    background:linear-gradient(135deg,rgba(0,153,255,.16),rgba(34,197,94,.10),rgba(190,39,245,.10));
    border:1px solid rgba(0,153,255,.22);
    box-shadow:0 22px 50px rgba(15,23,42,.10);
}

.ops-status{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(255,255,255,.45);
}

.ops-status strong{
    color:#071827;
    font-size:1.18rem;
    font-weight:950;
}

.ops-status small{
    color:#5d748d;
    font-weight:800;
}

.ops-pulse{
    width:14px;
    height:14px;
    border-radius:999px;
    background:#22c55e;
    box-shadow:0 0 0 0 rgba(34,197,94,.65);
    animation:opsPulse 1.8s infinite;
}

.ops-items{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
}

.ops-items div{
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.68);
    border:1px solid rgba(255,255,255,.45);
}

.ops-items span{
    display:block;
    color:#60758d;
    font-size:.78rem;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.ops-items strong{
    display:block;
    color:#071827;
    font-size:1.04rem;
    margin-top:6px;
}

.command-kpi.premium{
    position:relative;
    overflow:hidden;
    min-height:150px;
}

.command-kpi.premium:before{
    content:"";
    position:absolute;
    inset:-60% -40% auto auto;
    width:160px;
    height:160px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(0,153,255,.22),transparent 70%);
}

.kpi-icon{
    width:44px;
    height:44px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,rgba(0,153,255,.16),rgba(190,39,245,.14));
    border:1px solid rgba(0,153,255,.18);
    margin-bottom:12px;
}

@keyframes opsPulse{
    0%{box-shadow:0 0 0 0 rgba(34,197,94,.65)}
    70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}
    100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

body.admin-dark .ops-ribbon{
    background:linear-gradient(135deg,rgba(0,153,255,.12),rgba(34,197,94,.08),rgba(190,39,245,.10));
    border-color:rgba(0,153,255,.22);
}

body.admin-dark .ops-status,
body.admin-dark .ops-items div{
    background:#0f172a !important;
    border-color:rgba(0,153,255,.20) !important;
}

body.admin-dark .ops-status strong,
body.admin-dark .ops-items strong{
    color:#ffffff !important;
}

body.admin-dark .ops-status small,
body.admin-dark .ops-items span{
    color:#a9bdd6 !important;
}

@media(max-width:1300px){
    .ops-ribbon{grid-template-columns:1fr}
    .ops-items{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
    .ops-items{grid-template-columns:1fr}
}
