select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select::-ms-expand {
    display: none; /* Edge/IE */
}

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #131318;
    --panel-bg: rgba(19, 19, 24, 0.78);
    --panel-border: rgba(148, 163, 184, 0.18);
    --accent-cyan: #00d9ff;
    --accent-green: #00ff88;
    --accent-purple: #8b5cf6;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
}

body {
    background: var(--primary-bg);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 14% -10%, rgba(56, 189, 248, 0.14), transparent 62%),
        radial-gradient(680px 380px at 84% -14%, rgba(129, 140, 248, 0.12), transparent 62%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.68) 72%, rgba(7, 11, 20, 0.9) 100%);
    z-index: -1;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 211, 252, 0.35) rgba(5, 6, 12, 0.35);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: rgba(5, 6, 12, 0.4);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.35);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 211, 252, 0.5);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(55, 65, 81, 0.0), rgba(55, 65, 81, 0.75), rgba(148, 163, 184, 0.7), rgba(55, 65, 81, 0.0));
    opacity: 1;
}

.glow-cyan {
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.glow-purple {
    box-shadow: 0 0 18px rgba(124, 132, 255, 0.24);
}

.glow-green {
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.24);
}

.glass-card {
    background: var(--panel-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.35);
}

.brand-logo {
    position: absolute;
    left: -53px;
    top: 50%;
    transform: translateY(-50%);
    width: 96px;
    height: 96px;
    z-index: 1;
    pointer-events: none;
    filter: brightness(1.6) saturate(0.2);
}

.brand-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    position: relative;
    z-index: 2;
}

.gradient-cyber {
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.07) 0%,
        rgba(129, 140, 248, 0.05) 100%
    );
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.68rem 1.05rem;
    font-weight: 600;
    color: #0a0a0f;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.78), rgba(109, 40, 217, 0.62));
    border: 1px solid rgba(56, 189, 248, 0.38);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
    filter: brightness(1.12);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.68rem 1.05rem;
    font-weight: 600;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.52);
    background: rgba(56, 189, 248, 0.16);
    box-shadow: 0 14px 28px rgba(56, 189, 248, 0.16);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.62rem 0.95rem;
    font-weight: 600;
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.32);
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn-ghost:hover {
    border-color: rgba(56, 189, 248, 0.48);
    background: rgba(56, 189, 248, 0.1);
    color: #f8fafc;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.68rem 1.05rem;
    font-weight: 600;
    color: #fecdd3;
    background: rgba(36, 12, 16, 0.7);
    border: 1px solid rgba(248, 113, 113, 0.35);
    box-shadow: 0 10px 24px rgba(8, 2, 6, 0.28);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(244, 63, 94, 0.18);
    box-shadow: 0 14px 28px rgba(248, 113, 113, 0.18);
}

.heading-gradient {
    background-image: linear-gradient(92deg, #a78bfa 0%, #f5f3ff 52%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.integrations-title-outline {
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 0.9),
        0 -2px 0 rgba(0, 0, 0, 0.9),
        2px -2px 0 rgba(0, 0, 0, 0.9),
        -2px 0 0 rgba(0, 0, 0, 0.9),
        2px 0 0 rgba(0, 0, 0, 0.9),
        -2px 2px 0 rgba(0, 0, 0, 0.9),
        0 2px 0 rgba(0, 0, 0, 0.9),
        2px 2px 0 rgba(0, 0, 0, 0.9);
}

/* Tab styles for Getting Started page */
.tab-button {
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0ab;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.tab-button.active {
    background: rgba(34, 211, 238, 0.14);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.28);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.integrations-page {
    isolation: isolate;
    min-height: calc(100dvh - 8rem);
    min-height: calc(100vh - 8rem);
}

.integrations-page > div:not(.integrations-bg) {
    position: relative;
    z-index: 1;
}

.integrations-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 90% at 50% 22%, rgba(7, 96, 145, 0.24), rgba(7, 96, 145, 0) 62%),
        radial-gradient(100% 70% at 30% 68%, rgba(2, 70, 122, 0.2), rgba(2, 70, 122, 0) 66%),
        linear-gradient(180deg, rgba(2, 14, 30, 0.78) 0%, rgba(1, 11, 26, 0.86) 56%, rgba(1, 10, 24, 0.84) 100%);
}

.integrations-bg__halo,
.integrations-bg__mesh,
.integrations-bg__hub,
.integrations-bg__pulse,
.integrations-bg__node,
.integrations-bg__stream {
    position: absolute;
}

.integrations-bg__halo {
    inset: -16% -12% -14% -12%;
    background:
        radial-gradient(44% 58% at 32% 42%, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0)),
        radial-gradient(36% 52% at 70% 38%, rgba(129, 140, 248, 0.13), rgba(129, 140, 248, 0)),
        radial-gradient(42% 46% at 52% 84%, rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0));
    animation: integrations-drift 22s ease-in-out infinite alternate;
}

.integrations-bg__mesh {
    inset: -4% -2% -2% -2%;
    border-radius: 9999px;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.2) 0 1px, transparent 1px 100%),
        radial-gradient(circle at center, rgba(129, 140, 248, 0.16) 0 1px, transparent 1px 100%);
    background-size: 22px 22px, 34px 34px;
    opacity: 0.28;
    filter: blur(0.2px);
    mask-image: radial-gradient(ellipse at center, black 58%, transparent 98%);
    animation: integrations-spin 56s linear infinite;
}

.integrations-bg__hub {
    top: 31%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    background: var(--accent-cyan);
    box-shadow:
        0 0 0 8px rgba(34, 211, 238, 0.1),
        0 0 20px rgba(34, 211, 238, 0.56);
}

.integrations-bg__pulse {
    top: 31%;
    left: 50%;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.06);
    animation: integrations-ring 6.2s ease-out infinite;
}

.integrations-bg__node {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(34, 211, 238, 0.78);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.38);
    animation: integrations-node-float 8.5s ease-in-out infinite;
}

.integrations-bg__node--n1 { top: 18%; left: 28%; animation-delay: 0s; }
.integrations-bg__node--n2 { top: 24%; left: 66%; animation-delay: 1.2s; }
.integrations-bg__node--n3 { top: 40%; left: 18%; animation-delay: 2.2s; }
.integrations-bg__node--n4 { top: 44%; left: 78%; animation-delay: 3.1s; }
.integrations-bg__node--n5 { top: 58%; left: 36%; animation-delay: 1.8s; }
.integrations-bg__node--n6 { top: 61%; left: 62%; animation-delay: 0.9s; }

.integrations-bg__stream {
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.36), rgba(129, 140, 248, 0));
    transform-origin: left center;
    animation: integrations-stream 5.4s ease-in-out infinite;
}

.integrations-bg__stream--a {
    top: 31%;
    left: 50%;
    width: 24%;
    transform: rotate(22deg);
    animation-delay: 0s;
}

.integrations-bg__stream--b {
    top: 31%;
    left: 50%;
    width: 30%;
    transform: rotate(162deg);
    animation-delay: 1.4s;
}

.integrations-bg__stream--c {
    top: 31%;
    left: 50%;
    width: 26%;
    transform: rotate(294deg);
    animation-delay: 2.3s;
}

.manage-page {
    position: relative;
    isolation: isolate;
}

.manage-page > *:not(.manage-bg) {
    position: relative;
    z-index: 1;
}

.manage-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(122% 94% at 52% 24%, rgba(185, 28, 28, 0.26), rgba(185, 28, 28, 0) 62%),
        radial-gradient(98% 72% at 30% 70%, rgba(153, 27, 27, 0.2), rgba(153, 27, 27, 0) 66%),
        linear-gradient(180deg, rgba(28, 7, 11, 0.82) 0%, rgba(24, 5, 10, 0.88) 56%, rgba(22, 4, 9, 0.9) 100%);
}

.manage-bg__halo,
.manage-bg__mesh,
.manage-bg__hub,
.manage-bg__pulse,
.manage-bg__node,
.manage-bg__stream {
    position: absolute;
}

.manage-bg__halo {
    inset: -16% -12% -14% -12%;
    background:
        radial-gradient(44% 58% at 30% 44%, rgba(248, 113, 113, 0.14), rgba(248, 113, 113, 0)),
        radial-gradient(38% 52% at 72% 36%, rgba(251, 146, 60, 0.13), rgba(251, 146, 60, 0)),
        radial-gradient(42% 46% at 52% 84%, rgba(239, 68, 68, 0.09), rgba(239, 68, 68, 0));
    animation: integrations-drift 22s ease-in-out infinite alternate;
}

.manage-bg__mesh {
    inset: -4% -2% -2% -2%;
    border-radius: 9999px;
    background:
        radial-gradient(circle at center, rgba(248, 113, 113, 0.2) 0 1px, transparent 1px 100%),
        radial-gradient(circle at center, rgba(251, 146, 60, 0.16) 0 1px, transparent 1px 100%);
    background-size: 22px 22px, 34px 34px;
    opacity: 0.26;
    filter: blur(0.2px);
    mask-image: radial-gradient(ellipse at center, black 58%, transparent 98%);
    animation: integrations-spin 56s linear infinite;
}

.manage-bg__hub {
    top: 31%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    background: #fb7185;
    box-shadow:
        0 0 0 8px rgba(248, 113, 113, 0.12),
        0 0 20px rgba(251, 113, 133, 0.54);
}

.manage-bg__pulse {
    top: 31%;
    left: 50%;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(248, 113, 113, 0.18);
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 20px rgba(248, 113, 113, 0.08);
    animation: integrations-ring 6.2s ease-out infinite;
}

.manage-bg__node {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(248, 113, 113, 0.78);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.38);
    animation: integrations-node-float 8.5s ease-in-out infinite;
}

.manage-bg__node--n1 { top: 18%; left: 28%; animation-delay: 0s; }
.manage-bg__node--n2 { top: 24%; left: 66%; animation-delay: 1.2s; }
.manage-bg__node--n3 { top: 40%; left: 18%; animation-delay: 2.2s; }
.manage-bg__node--n4 { top: 44%; left: 78%; animation-delay: 3.1s; }
.manage-bg__node--n5 { top: 58%; left: 36%; animation-delay: 1.8s; }
.manage-bg__node--n6 { top: 61%; left: 62%; animation-delay: 0.9s; }

.manage-bg__stream {
    height: 1px;
    background: linear-gradient(90deg, rgba(248, 113, 113, 0), rgba(248, 113, 113, 0.38), rgba(251, 146, 60, 0));
    transform-origin: left center;
    animation: integrations-stream 5.4s ease-in-out infinite;
}

.manage-bg__stream--a {
    top: 31%;
    left: 50%;
    width: 24%;
    transform: rotate(22deg);
    animation-delay: 0s;
}

.manage-bg__stream--b {
    top: 31%;
    left: 50%;
    width: 30%;
    transform: rotate(162deg);
    animation-delay: 1.4s;
}

.manage-bg__stream--c {
    top: 31%;
    left: 50%;
    width: 26%;
    transform: rotate(294deg);
    animation-delay: 2.3s;
}

.groups-page {
    position: relative;
    isolation: isolate;
    min-height: calc(100dvh - 8rem);
    min-height: calc(100vh - 8rem);
}

.groups-page > *:not(.groups-bg) {
    position: relative;
    z-index: 1;
}

.groups-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 92% at 16% 26%, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0) 64%),
        radial-gradient(98% 70% at 82% 68%, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0) 66%),
        linear-gradient(180deg, rgba(7, 12, 22, 0.82) 0%, rgba(9, 14, 24, 0.88) 56%, rgba(7, 10, 20, 0.92) 100%);
}

.groups-bg__glow,
.groups-bg__grid,
.groups-bg__ring {
    position: absolute;
}

.groups-bg__glow {
    inset: -18% -10% -16% -10%;
    background:
        radial-gradient(44% 58% at 30% 44%, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0)),
        radial-gradient(40% 54% at 72% 36%, rgba(45, 212, 191, 0.18), rgba(45, 212, 191, 0)),
        radial-gradient(42% 48% at 54% 84%, rgba(94, 234, 212, 0.12), rgba(94, 234, 212, 0));
    animation: integrations-drift 22s ease-in-out infinite alternate;
}

.groups-bg__grid {
    inset: -10% -6% -8% -6%;
    opacity: 0.22;
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.2) 1px, transparent 1px),
        linear-gradient(180deg, rgba(45, 212, 191, 0.16) 1px, transparent 1px);
    background-size: 46px 46px, 46px 46px;
    mask-image: radial-gradient(ellipse at center, black 54%, transparent 96%);
    animation: integrations-spin 52s linear infinite;
}

.groups-bg__ring {
    width: 260px;
    height: 260px;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: inset 0 0 22px rgba(56, 189, 248, 0.12);
}

.groups-bg__ring--one {
    top: 18%;
    left: 16%;
    animation: submission-orb-float 10s ease-in-out infinite;
}

.groups-bg__ring--two {
    top: 58%;
    left: 72%;
    width: 200px;
    height: 200px;
    border-color: rgba(45, 212, 191, 0.26);
    box-shadow: inset 0 0 20px rgba(45, 212, 191, 0.14);
    animation: submission-orb-float 12s ease-in-out infinite reverse;
}

.groups-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .groups-toolbar {
        flex-direction: row;
        align-items: center;
    }
}

.groups-form {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.52);
}

.groups-form--inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .groups-form--inline {
        grid-template-columns: 1fr 160px auto;
    }
}

.groups-field {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.groups-field:focus {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

.groups-card {
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 32px rgba(2, 8, 23, 0.35);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.groups-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 22px 36px rgba(2, 8, 23, 0.4);
}

.groups-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(94, 234, 212, 0.9);
}

.groups-link:hover {
    color: rgba(94, 234, 212, 1);
}

.groups-panel {
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 32px rgba(2, 8, 23, 0.35);
}

.groups-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.groups-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.groups-list__item:last-child {
    border-bottom: none;
}

.groups-role {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.groups-remove {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(248, 113, 113, 0.9);
}

.groups-remove:hover {
    color: rgba(248, 113, 113, 1);
}

.submission-wizard-page {
    isolation: isolate;
    min-height: calc(100dvh - 8rem);
    min-height: calc(100vh - 8rem);
}

.submission-wizard-page > div:not(.submission-bg) {
    position: relative;
    z-index: 1;
}

.submission-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 92% at 18% 26%, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0) 64%),
        radial-gradient(94% 70% at 82% 68%, rgba(20, 184, 166, 0.12), rgba(20, 184, 166, 0) 66%),
        linear-gradient(180deg, rgba(14, 8, 24, 0.82) 0%, rgba(11, 10, 22, 0.88) 56%, rgba(9, 9, 18, 0.9) 100%);
}

.submission-bg__aura,
.submission-bg__grid,
.submission-bg__orb,
.submission-bg__beam {
    position: absolute;
}

.submission-bg__aura {
    inset: -16% -12% -14% -12%;
    background:
        radial-gradient(46% 62% at 28% 42%, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0)),
        radial-gradient(40% 54% at 72% 36%, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0)),
        radial-gradient(42% 48% at 54% 84%, rgba(20, 184, 166, 0.12), rgba(20, 184, 166, 0));
    animation: submission-aura-drift 18s ease-in-out infinite alternate;
}

.submission-bg__grid {
    inset: -10% -6% -8% -6%;
    opacity: 0.22;
    background:
        linear-gradient(90deg, rgba(168, 85, 247, 0.2) 1px, transparent 1px),
        linear-gradient(180deg, rgba(20, 184, 166, 0.18) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 54%, transparent 96%);
    animation: submission-grid-pan 36s linear infinite;
}

.submission-bg__orb {
    width: 240px;
    height: 240px;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: inset 0 0 22px rgba(168, 85, 247, 0.12);
}

.submission-bg__orb--one {
    top: 22%;
    left: 18%;
    animation: submission-orb-float 10s ease-in-out infinite;
}

.submission-bg__orb--two {
    top: 56%;
    left: 68%;
    width: 190px;
    height: 190px;
    border-color: rgba(20, 184, 166, 0.24);
    box-shadow: inset 0 0 20px rgba(20, 184, 166, 0.12);
    animation: submission-orb-float 12s ease-in-out infinite reverse;
}

.submission-bg__beam {
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0), rgba(168, 85, 247, 0.42), rgba(20, 184, 166, 0));
    animation: submission-beam-pulse 6.2s ease-in-out infinite;
}

.submission-bg__beam--a {
    top: 28%;
    left: 26%;
    width: 34%;
    transform: rotate(12deg);
}

.submission-bg__beam--b {
    top: 62%;
    left: 16%;
    width: 46%;
    transform: rotate(-6deg);
    animation-delay: 1.7s;
}

.submission-bg__beam--c {
    top: 42%;
    left: 50%;
    width: 32%;
    transform: rotate(152deg);
    animation-delay: 3.1s;
}

@keyframes integrations-drift {
    0% { transform: translate3d(-2%, -1%, 0); }
    100% { transform: translate3d(2%, 1.5%, 0); }
}

@keyframes integrations-spin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.08); }
}

@keyframes integrations-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0.8;
    }
    78% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0;
    }
}

@keyframes integrations-node-float {
    0%,
    100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@keyframes integrations-stream {
    0%,
    100% { opacity: 0.1; filter: blur(0.2px); }
    50% { opacity: 0.65; filter: blur(0); }
}

@keyframes submission-aura-drift {
    0% { transform: translate3d(-1.5%, -1.2%, 0); }
    100% { transform: translate3d(1.8%, 1.2%, 0); }
}

@keyframes submission-grid-pan {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-32px, -22px, 0) scale(1.02); }
}

@keyframes submission-orb-float {
    0%,
    100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

@keyframes submission-beam-pulse {
    0%,
    100% { opacity: 0.12; filter: blur(0.2px); }
    50% { opacity: 0.66; filter: blur(0); }
}

@media (max-width: 768px) {
    .integrations-bg__mesh {
        inset: -10% -28% -6% -28%;
        opacity: 0.2;
    }

    .manage-bg__mesh {
        inset: -10% -28% -6% -28%;
        opacity: 0.18;
    }

    .submission-bg__grid {
        inset: -12% -18% -10% -18%;
        opacity: 0.16;
    }

    .submission-bg__orb--one {
        top: 18%;
        left: 8%;
        width: 180px;
        height: 180px;
    }

    .submission-bg__orb--two {
        top: 64%;
        left: 62%;
        width: 140px;
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .integrations-bg__halo,
    .integrations-bg__mesh,
    .integrations-bg__pulse,
    .integrations-bg__node,
    .integrations-bg__stream {
        animation: none;
    }

    .manage-bg__halo,
    .manage-bg__mesh,
    .manage-bg__pulse,
    .manage-bg__node,
    .manage-bg__stream {
        animation: none;
    }

    .submission-bg__aura,
    .submission-bg__grid,
    .submission-bg__orb,
    .submission-bg__beam {
        animation: none;
    }
}

.integration-card {
    min-height: 260px;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.integration-card--official {
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16);
}

.integration-card--official::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    border: 1px solid rgba(45, 212, 191, 0.42);
    box-shadow:
        0 0 0 0 rgba(45, 212, 191, 0.28),
        0 0 0 0 rgba(34, 211, 238, 0.2);
    pointer-events: none;
    animation: official-border-pulse 2.8s ease-out infinite;
    opacity: 0.9;
}

.integration-card--official::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    border: 1px solid rgba(45, 212, 191, 0.18);
    pointer-events: none;
}

@keyframes official-border-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(45, 212, 191, 0.28),
            0 0 0 0 rgba(34, 211, 238, 0.2);
        opacity: 0.95;
    }
    60% {
        box-shadow:
            0 0 0 10px rgba(45, 212, 191, 0),
            0 0 0 22px rgba(34, 211, 238, 0);
        opacity: 0.6;
    }
    100% {
        box-shadow:
            0 0 0 18px rgba(45, 212, 191, 0),
            0 0 0 32px rgba(34, 211, 238, 0);
        opacity: 0;
    }
}

.integration-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 10px 34px rgba(34, 211, 238, 0.08);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(129, 140, 248, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #dbeafe;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}


.filter-chip {
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: all 150ms ease;
}

.filter-chip:hover {
    border-color: rgba(34, 211, 238, 0.35);
    color: #ecfeff;
}

.filter-chip.active {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.45);
    color: #a5f3fc;
}

.connect-disabled-button {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.75rem 1.2rem;
    border-radius: 0.75rem;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    text-decoration: none;
}

.connect-disabled-button:hover {
    transform: translateY(-1px);
}

.connect-button {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.75rem 1.2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #030712;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
    border: none;
    text-decoration: none;
}

.connect-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(56, 189, 248, 0.28);
}

.markdown-body {
    color: #e5e7eb;
    line-height: 1.7;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: #ffffff;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.markdown-body h1 {
    font-size: 1.6rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
    background: linear-gradient(90deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}
.markdown-body h2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(199, 210, 254, 0.95);
    letter-spacing: 0.01em;
}
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body h4 { font-size: 1.05rem; }

.markdown-body p {
    margin-bottom: 0.75rem;
}

.markdown-body a {
    color: #7dd3fc;
    text-decoration: underline;
}

.markdown-body code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.9em;
}

.markdown-body pre code {
    display: block;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: none;
}

.code-block-wrapper {
    position: relative;
    margin: 0.8rem 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.code-block-wrapper pre {
    margin: 0;
}

.code-copy-btn {
    position: sticky;
    top: 8px;
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 150ms ease;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.code-copy-btn:hover {
    background: rgba(34, 211, 238, 0.16);
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.4);
}

.code-block-wrapper:hover .code-copy-btn,
.code-block-wrapper:focus-within .code-copy-btn {
    opacity: 1;
    pointer-events: auto;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
}

.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }

.markdown-body li {
    margin-bottom: 0.35rem;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.markdown-body th, .markdown-body td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.markdown-body th {
    background: rgba(34, 211, 238, 0.08);
    color: #e0f2fe;
    font-weight: 600;
}

.markdown-body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.markdown-body blockquote {
    margin: 0 0 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 3px solid #22d3ee;
    background: rgba(34, 211, 238, 0.06);
    color: #cfeafc;
    border-radius: 8px;
}


.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Form controls on dark surfaces */
#vendor-select,
form select,
form input,
form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    caret-color: #f8fafc;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

form input[class*="bg-[#0f1220]"],
form textarea[class*="bg-[#0f1220]"],
form select[class*="bg-[#0f1220]"] {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

form input[type="checkbox"],
.ui-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0.32rem;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background-color: #0b1426;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

form input[type="checkbox"]::before,
.ui-checkbox::before {
    content: "";
    width: 0.58rem;
    height: 0.58rem;
    transform: scale(0);
    transition: transform 120ms ease;
    background: #03111f;
    clip-path: polygon(14% 54%, 0 69%, 42% 100%, 100% 24%, 84% 10%, 41% 67%);
}

form input[type="checkbox"]:hover,
.ui-checkbox:hover {
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

form input[type="checkbox"]:checked,
.ui-checkbox:checked {
    border-color: rgba(45, 212, 191, 0.8);
    background: linear-gradient(135deg, #22d3ee, #2dd4bf);
}

form input[type="checkbox"]:checked::before,
.ui-checkbox:checked::before {
    transform: scale(1);
}

form input[type="checkbox"]:focus-visible,
.ui-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.checkbox-field {
    padding: 0.25rem 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(212, 212, 216, 0.68);
}

form select option {
    background-color: #1f1f23;
    color: #f8fafc;
}

form select option:checked,
form select option:hover {
    background-color: #3f3f46;
    color: #ffffff;
}

#vendor-select:focus,
form select:focus,
form input:focus,
form textarea:focus {
    border-color: rgba(6, 182, 212, 0.95);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.35);
    background-color: rgba(255, 255, 255, 0.07);
    outline: none;
}

.btn-pulse {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(34, 211, 238, 0.3);
    animation: pulse-ring 1.5s infinite;
}

/* Tagify sizing tweaks */
.tagify {
    --tagify-dd-color-primary: #22d3ee;
    --tagify-dd-bg-color: #0b0f19;
    --tagify-dd-text-color: #f8fafc;
    --tagify-dd-border-color: rgba(148, 163, 184, 0.35);
    background-color: #111827;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.75rem;
    min-height: 36px;
}

.tagify__input {
    min-height: 28px;
    padding: 0.15rem 0.4rem;
    color: #f8fafc;
}

.tagify__tag {
    margin: 0.1rem 0.2rem 0.1rem 0;
}

a {
    color: #38bdf8;
}

a:hover {
    color: #7dd3fc;
}
