/* ── Shared form field classes ───────────────────────────────────────────── */

/* Text / textarea inputs */
.field {
    width: 100%;
    border-radius: .65rem;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: #f8fafc;
    padding: .68rem .85rem;
    font-size: .9rem;
    transition: border-color 150ms;
}
.field:focus        { outline: none; border-color: rgba(34, 211, 238, .55); }
.field[readonly]    { color: rgba(255, 255, 255, .3); cursor: default; }
.field::placeholder { color: rgba(212, 212, 216, .55); }

/* Keep autofill visually consistent with themed fields */
.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus,
.field:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, .04) inset !important;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, .04) inset !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    caret-color: #f8fafc;
    transition: background-color 99999s ease-in-out 0s;
}

.field:-webkit-autofill:focus {
    border-color: rgba(34, 211, 238, .55) !important;
}

/* Select overrides — form fields match user-menu style */
select.field {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;
    padding: .5rem 2.5rem .5rem .85rem !important;
    box-shadow: none !important;
}
select.field:focus  { border-bottom-color: #22d3ee !important; box-shadow: none !important; }
select.field option { background: #0d1424; color: #e2e8f0; }

/* Form field label */
.lbl {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .38);
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Select dropdowns — bottom-line only, transparent bg, keep chevron ────── */
select {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    background: transparent !important;
    color: #e2e8f0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;
    padding: 0.5rem 2.5rem 0.5rem 0.85rem !important;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
    transition: border-color 150ms ease, color 150ms ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(226,232,240,0.45)' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 1rem 1rem !important;
}

select:hover {
    border-bottom-color: rgba(255, 255, 255, 0.35) !important;
    color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(248,250,252,0.6)' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

select:focus {
    border-bottom-color: rgba(34, 211, 238, 0.65) !important;
    color: #f8fafc !important;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322d3ee' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

/* native option list — match user-menu items */
select option {
    background-color: rgb(15, 23, 42) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
}

select option:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

select option:checked {
    background-color: rgb(15, 23, 42) !important;
    color: #22d3ee !important;
}

: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);
}


.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: #06101e;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border: 1px solid rgba(191, 219, 254, 0.22);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(56, 189, 248, 0.28);
    background: linear-gradient(135deg, #7dd3fc, #a5b4fc);
}

.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 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]"] {
    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);
}


#vendor-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;
}

/* ══════════════════════════════════════════════════════════════════════
   Page-specific styles (migrated from templates)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Shared page background (used on profile, admin, developer hub) ─── */
.page-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(32,197,255,0.11), transparent 44%),
        radial-gradient(ellipse at 90% 10%, rgba(108,75,255,0.14), transparent 42%),
        radial-gradient(ellipse at 55% 88%, rgba(34,211,238,0.06), transparent 50%);
}

/* ── Profile page ────────────────────────────────────────────────────── */
.sec-divider { border-top: 1px solid rgba(255,255,255,.07); }
.sec-heading {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(34,211,238,.65);
    margin-bottom: 1rem;
}

/* ── Marketplace index — background ─────────────────────────────────── */
.mkt-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(32,197,255,0.13), transparent 46%),
        radial-gradient(ellipse at 88% 14%, rgba(108,75,255,0.16), transparent 44%),
        radial-gradient(ellipse at 50% 85%, rgba(34,211,238,0.07), transparent 52%);
}

/* ── Marketplace index — hero ────────────────────────────────────────── */
.mkt-hero {
    position: relative; border-radius: 1.5rem;
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(135deg, rgba(10,16,32,0.97), rgba(14,10,28,0.97));
    border: 1px solid rgba(255,255,255,0.07); overflow: hidden;
}
.mkt-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 22% 55%, rgba(34,211,238,0.13), transparent 55%),
        radial-gradient(ellipse at 82% 18%, rgba(139,92,246,0.17), transparent 50%);
}

/* ── Marketplace index — search bar ─────────────────────────────────── */
.mkt-search {
    max-width: 560px; display: flex; align-items: center; gap: 0.7rem;
    background: rgba(0,0,0,0.32); border: 1px solid rgba(255,255,255,0.11);
    border-radius: 9999px; padding: 0.65rem 1.25rem;
    transition: border-color 150ms, box-shadow 150ms;
}
.mkt-search:focus-within {
    border-color: rgba(34,211,238,0.52); box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}
.mkt-search input {
    flex: 1; background: none !important; border: none !important;
    outline: none !important; box-shadow: none !important;
    color: #f8fafc; font-size: 0.9rem;
    -webkit-appearance: none; appearance: none;
}
.mkt-search input:focus {
    outline: none !important; box-shadow: none !important;
    border: none !important; ring: none;
}
.mkt-search input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Marketplace index — category chips ─────────────────────────────── */
.cat-scroll-wrap {
    position: relative; flex: 1; min-width: 0; overflow: hidden;
}
.cat-scroll-wrap::before,
.cat-scroll-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 48px;
    pointer-events: none; z-index: 2; transition: opacity 200ms;
}
.cat-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-bg, #0a0a0f), transparent);
    opacity: 0;
}
.cat-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-bg, #0a0a0f), transparent);
    opacity: 0;
}
.cat-scroll-wrap.fade-left::before  { opacity: 1; }
.cat-scroll-wrap.fade-right::after  { opacity: 1; }
/* Invisible hover zones for scroll-on-hover */
.cat-scroll-zone {
    position: absolute; top: 0; bottom: 0; width: 48px; z-index: 3; cursor: default;
}
.cat-scroll-zone--left  { left: 0; }
.cat-scroll-zone--right { right: 0; }
.cat-scroll { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-behavior: auto; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
    flex-shrink: 0; padding: 0.42rem 0.9rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 600;
    border: 1px solid rgba(148,163,184,0.2); background: rgba(148,163,184,0.05);
    color: #94a3b8; cursor: pointer; user-select: none; transition: all 140ms; text-decoration: none; display: inline-block;
}
.cat-chip:hover { border-color: rgba(34,211,238,0.36); color: #e2e8f0; }
.cat-chip.active { background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.48); color: #a5f3fc; }
.mkt-sort { flex-shrink: 0; }

/* ── Marketplace index — featured strip ─────────────────────────────── */
.feat-scroll-wrap { position: relative; }
.feat-scroll { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-behavior: smooth; }
.feat-scroll::-webkit-scrollbar { display: none; }

/* fade edges */
.feat-scroll-wrap::before,
.feat-scroll-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 2px; width: 64px;
    pointer-events: none; z-index: 2; transition: opacity 200ms;
}
.feat-scroll-wrap::before { left: 0; background: linear-gradient(to right, var(--bg, #080c14), transparent); opacity: 0; }
.feat-scroll-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg, #080c14), transparent); }

/* arrow buttons */
.feat-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(15,23,42,0.85); border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 180ms ease, background 150ms ease, transform 150ms ease;
}
.feat-arrow:hover { background: rgba(34,211,238,0.15); border-color: rgba(34,211,238,0.35); transform: translateY(-50%) scale(1.08); }
.feat-arrow--left  { left: -14px; }
.feat-arrow--right { right: -14px; }
.feat-scroll-wrap:hover .feat-arrow { opacity: 1; pointer-events: auto; }
.feat-arrow.hidden { opacity: 0 !important; pointer-events: none !important; }
.feat-card {
    flex: 0 0 clamp(250px, 30vw, 320px); min-height: 200px;
    border-radius: 1.25rem; overflow: hidden; position: relative;
    border: 1px solid rgba(255,255,255,0.08); cursor: pointer;
    transition: transform 200ms, box-shadow 200ms; text-decoration: none; display: block;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.52); }
.feat-card__overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.feat-card__body {
    position: relative; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 1.25rem; min-height: 200px; gap: 0.45rem;
}

/* ── Marketplace index — server grid ────────────────────────────────── */
.srv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 600px)  { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .srv-grid { grid-template-columns: repeat(3, 1fr); } }

.srv-card {
    background: rgba(19,19,24,0.8); backdrop-filter: blur(14px);
    border: 1px solid rgba(148,163,184,0.13); border-radius: 1.25rem;
    padding: 1.25rem; display: flex !important; flex-direction: column; gap: 0.7rem;
    cursor: pointer; position: relative;
    transition: transform 160ms, border-color 160ms, box-shadow 160ms;
    text-decoration: none; color: inherit; height: 100%;
}
.srv-card:hover { transform: translateY(-2px); border-color: rgba(34,211,238,0.27); box-shadow: 0 14px 34px rgba(0,0,0,0.38); }
.srv-card > :last-child { margin-top: auto; }

.srv-icon {
    width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; border: 1px solid rgba(255,255,255,0.1);
    font-family: 'IBM Plex Sans', monospace;
}

/* ── Shared badges ───────────────────────────────────────────────────── */
.bdg {
    display: inline-flex; align-items: center; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase; padding: 0.15rem 0.42rem; border-radius: 999px;
}
.bdg-official    { background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.35); color: #a5f3fc; }
.bdg-choice      { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.35); color: #fde68a; }
.bdg-new         { background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.35); color: #ddd6fe; }
.bdg-coming-soon { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.22); color: #94a3b8; }

.get-btn {
    padding: 0.38rem 1.05rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
    background: linear-gradient(135deg, #38bdf8, #818cf8); color: #030712;
    border: none; cursor: pointer; white-space: nowrap; transition: filter 120ms, transform 120ms;
}
.get-btn:hover { filter: brightness(1.1); transform: scale(1.04); }

.tool-pill {
    font-size: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 0.4rem;
    background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2);
    color: #7dd3fc; font-family: monospace;
}

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

/* ── Marketplace detail — background ────────────────────────────────── */
.mkd-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 10% 16%, rgba(32,197,255,0.12), transparent 46%),
        radial-gradient(ellipse at 90% 10%, rgba(108,75,255,0.14), transparent 44%),
        radial-gradient(ellipse at 50% 90%, rgba(34,211,238,0.06), transparent 50%);
}

/* ── Marketplace detail — hero banner ───────────────────────────────── */
.hero-banner {
    border-radius: 1.5rem; overflow: hidden; position: relative;
    padding: 2rem; border: 1px solid rgba(255,255,255,0.07);
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 60%, var(--feat-accent, rgba(34,211,238,0.15)), transparent 50%),
        radial-gradient(ellipse at 88% 20%, rgba(129,140,248,0.12), transparent 48%);
}

.hero-banner--docker {
    background-color: #0b3fb3;
    background-image:
        linear-gradient(135deg, rgba(5, 24, 91, 0.72), rgba(13, 79, 198, 0.72)),
        url("https://marketplace.orcorus.com/static/docker-hub.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-banner--docker::before {
    background:
        linear-gradient(to top, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.08)),
        radial-gradient(ellipse at 12% 72%, rgba(147,197,253,0.18), transparent 46%);
}

.feat-card--docker {
    background-color: #0b3fb3;
    background-image:
        linear-gradient(135deg, rgba(7, 28, 96, 0.75), rgba(17, 94, 214, 0.75)),
        url("https://marketplace.orcorus.com/static/docker-hub.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Marketplace detail — tabs ───────────────────────────────────────── */
.stars { display: inline-flex; gap: 1px; align-items: center; }
.tab-row { display: flex; gap: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 0; }
.tab-btn {
    padding: 0.6rem 1.1rem; font-size: 0.82rem; font-weight: 600;
    border-radius: 0.6rem 0.6rem 0 0;
    color: rgba(255,255,255,0.45); border: 1px solid transparent; border-bottom: none;
    cursor: pointer; transition: color 140ms, background 140ms; background: none;
}
.tab-btn:hover { color: rgba(255,255,255,0.75); }
.tab-btn.active { color: #a5f3fc; background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.2); }
.tab-pane { display: none; padding-top: 1.5rem; }
.tab-pane.active { display: block; }

/* ── Marketplace detail — feature highlight cards ───────────────────── */
.feat-hi {
    border-radius: 1rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,19,24,0.7); display: flex; gap: 1rem; align-items: flex-start;
    transition: border-color 150ms, transform 150ms;
}
.feat-hi:hover { border-color: rgba(34,211,238,0.22); transform: translateY(-1px); }
.feat-hi__icon {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}

/* ── Marketplace detail — tools accordion ───────────────────────────── */
.tool-row {
    border: 1px solid rgba(255,255,255,0.07); border-radius: 0.75rem; overflow: hidden;
    transition: border-color 140ms;
}
.tool-row:hover { border-color: rgba(34,211,238,0.2); }
.tool-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem; cursor: pointer; user-select: none; gap: 0.75rem;
}
.tool-body { padding: 0 1rem 1rem; display: none; }
.tool-body.open { display: block; }
.tool-chevron { transition: transform 200ms; flex-shrink: 0; }
.tool-chevron.open { transform: rotate(180deg); }
.tool-chip {
    font-size: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 0.4rem;
    background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2);
    color: #7dd3fc; font-family: monospace;
}

/* ── Marketplace detail — reviews ───────────────────────────────────── */
.rev-card { display: flex; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.rev-av {
    width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #030712;
}
.rb-row { display: flex; align-items: center; gap: 0.5rem; }
.rb-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.4); width: 10px; text-align: right; flex-shrink: 0; }
.rb-track { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.rb-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fbbf24, #f97316); }
.rb-pct { font-size: 0.68rem; color: rgba(255,255,255,0.3); width: 26px; flex-shrink: 0; }

/* ── Marketplace detail — star picker ───────────────────────────────── */
.star-picker { display: inline-flex; gap: 0.2rem; }
.star-pick-btn {
    background: none; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1;
    color: rgba(255,255,255,0.15); transition: color 100ms, transform 100ms; padding: 0 0.1rem;
}
.star-pick-btn:hover,
.star-pick-btn.hovered,
.star-pick-btn.selected { color: #fbbf24; }
.star-pick-btn:hover { transform: scale(1.15); }

/* ── Marketplace detail — comment thread ────────────────────────────── */
.comment-thread { border-left: 2px solid rgba(255,255,255,0.07); padding-left: 1rem; margin-top: 0.75rem; }
.comment-item { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.comment-item:last-child { border-bottom: none; }

/* ── Marketplace detail — similar cards ─────────────────────────────── */
.sim-card {
    border-radius: 1rem; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(19,19,24,0.7); padding: 1rem; display: flex; gap: 0.85rem;
    align-items: center; cursor: pointer; transition: border-color 150ms, transform 150ms;
    text-decoration: none; color: inherit;
}
.sim-card:hover { border-color: rgba(34,211,238,0.25); transform: translateY(-1px); }

/* ── Marketplace detail — wizard panel (right column) ───────────────── */
.wizard-panel {
    background: rgba(12,12,18,0.95); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1.25rem; padding: 1.5rem; position: sticky; top: 6rem;
}

/* ── Marketplace detail — vote buttons ──────────────────────────────── */
.vote-btn {
    display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 600;
    padding: 0.25rem 0.65rem; border-radius: 0.5rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5); cursor: pointer; transition: all 140ms;
}
.vote-btn:hover { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.8); }
.vote-btn.active { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }

/* ── Marketplace detail — works vote (thumbs up / down) ─────────────── */
.works-vote-btn {
    display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600;
    padding: 0.35rem 0.7rem; border-radius: 0.6rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #eab308; cursor: pointer; transition: all 160ms;
}
.works-vote-btn:hover { background: rgba(255,255,255,0.09); }
.works-vote-btn.voted-up   { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.35); color: #4ade80; }
.works-vote-btn.voted-down { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #f87171; }

/* ── Marketplace detail — config / reply input ──────────────────────── */
.cfg-input {
    width: 100%; border-radius: 0.65rem; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04); color: #f8fafc; padding: 0.6rem 0.85rem;
    font-size: 0.82rem; outline: none; transition: border-color 140ms, box-shadow 140ms;
}
.cfg-input:focus { border-color: rgba(34,211,238,0.55); box-shadow: 0 0 0 2px rgba(34,211,238,0.1); }
.cfg-input::placeholder { color: rgba(255,255,255,0.28); }

/* ── Marketplace detail — markdown overrides (overview + audit tabs) ── */
#tab-overview .markdown-body,
#tab-quality .markdown-body {
    background: transparent; border: 0; border-radius: 0; padding: 0;
}
#tab-overview .markdown-body h1,
#tab-overview .markdown-body h2,
#tab-overview .markdown-body h3,
#tab-quality .markdown-body h1,
#tab-quality .markdown-body h2,
#tab-quality .markdown-body h3 {
    font-family: 'Space Grotesk', sans-serif; color: #e2e8f0; margin: 1.25rem 0 0.5rem;
}
#tab-overview .markdown-body h2,
#tab-quality .markdown-body h2 { font-size: 1.1rem; font-weight: 700; }
#tab-overview .markdown-body h3,
#tab-quality .markdown-body h3 { font-size: 0.95rem; font-weight: 600; }
#tab-overview .markdown-body p,
#tab-quality .markdown-body p {
    color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7; margin: 0.6rem 0;
}
#tab-overview .markdown-body ul,
#tab-overview .markdown-body ol,
#tab-quality .markdown-body ul,
#tab-quality .markdown-body ol {
    padding-left: 1.5rem; color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7;
}
#tab-overview .markdown-body code,
#tab-quality .markdown-body code {
    background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.18);
    border-radius: 0.35rem; padding: 0.1rem 0.35rem; font-size: 0.78rem; color: #a5f3fc;
}
#tab-overview .markdown-body pre,
#tab-quality .markdown-body pre {
    background: rgba(5,8,15,0.95); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.85rem; padding: 1rem; overflow-x: auto; margin: 0.75rem 0;
}
#tab-overview .markdown-body pre code,
#tab-quality .markdown-body pre code { background: none; border: none; padding: 0; color: #e2e8f0; }
#tab-overview .markdown-body blockquote,
#tab-quality .markdown-body blockquote {
    border-left: 3px solid rgba(34,211,238,0.4); padding-left: 1rem;
    margin: 0.75rem 0; color: rgba(255,255,255,0.45); font-style: italic;
}
#tab-overview .markdown-body hr,
#tab-quality .markdown-body hr {
    border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 1.25rem 0;
}

/* ── Submission wizard ───────────────────────────────────────────────── */
.wiz-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(32,197,255,0.11), transparent 44%),
        radial-gradient(ellipse at 90% 10%, rgba(108,75,255,0.14), transparent 42%),
        radial-gradient(ellipse at 55% 88%, rgba(34,211,238,0.06), transparent 50%);
}
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-pill { opacity: .55; cursor: default; }
.wiz-pill.active { opacity: 1; box-shadow: inset 0 0 0 1px rgba(34,211,238,.5); background: rgba(34,211,238,.18); color: #a5f3fc; }
.wiz-pill.done   { opacity: .8; color: #6ee7b7; }
.wiz-card { background: rgba(8,10,22,.82); border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; }

.transport-btn {
    flex: 1; padding: .75rem 1rem; border-radius: .8rem; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04); color: #94a3b8; font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all 150ms; text-align: center;
}
.transport-btn.active { background: rgba(34,211,238,.15); border-color: rgba(34,211,238,.5); color: #a5f3fc; }
.source-btn {
    padding: .5rem .9rem; border-radius: .6rem; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05); color: #d1d5db; font-weight: 600; font-size: .85rem;
    cursor: pointer; transition: all 150ms;
}
.source-btn.active { background: rgba(34,211,238,.18); border-color: rgba(34,211,238,.45); color: #a5f3fc; }
.auth-btn {
    flex: 1; padding: .55rem .8rem; border-radius: .65rem; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04); color: #94a3b8; font-weight: 600; font-size: .82rem;
    cursor: pointer; transition: all 150ms; text-align: center;
}
.auth-btn.active { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.5); color: #c4b5fd; }

/* ── Admin server form ───────────────────────────────────────────────── */
.ld-editor-shell {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.7);
}
.ld-editor-shell .toastui-editor-defaultUI { border: none; }

.env-var-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: border-color 150ms, opacity 150ms, box-shadow 150ms;
}
.env-var-card:focus-within      { border-color: rgba(34,211,238,0.25); }
.env-var-card.env-dragging       { opacity: 0.35; }
.env-var-card.env-drag-over      { box-shadow: 0 -2px 0 0 rgba(34,211,238,0.6); }

.env-drag-handle {
    cursor: grab; user-select: none;
    font-size: 1.1rem; line-height: 1; letter-spacing: -1px;
    color: rgba(255,255,255,0.25);
    padding: 0.15rem 0.25rem; border-radius: 0.35rem;
    transition: color 120ms, background 120ms;
    flex-shrink: 0;
}
.env-drag-handle:hover  { color: rgba(34,211,238,0.8); background: rgba(34,211,238,0.08); }
.env-drag-handle:active { cursor: grabbing; }
.env-var-card.env-type-password { border-left: 3px solid rgba(251,191,36,0.5); }
.env-var-card.env-type-enum     { border-left: 3px solid rgba(139,92,246,0.5); }
.env-var-card.env-type-string   { border-left: 3px solid rgba(34,211,238,0.35); }

.env-field-label {
    display: block; font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35); margin-bottom: 0.3rem;
}
.env-input {
    width: 100%; padding: 0.45rem 0.65rem;
    border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25); color: #f8fafc; font-size: 0.8rem;
    outline: none; transition: border-color 140ms;
}
.env-input:focus { border-color: rgba(34,211,238,0.45); }
.env-input.mono  { font-family: monospace; }
.env-select { width: 100%; font-size: 0.8rem; }

.env-type-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; padding: 0.15rem 0.45rem; border-radius: 999px;
}
.env-type-badge.string   { background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.3); color: #a5f3fc; }
.env-type-badge.password { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3); color: #fde68a; }
.env-type-badge.enum     { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3); color: #ddd6fe; }

.enum-option-row {
    display: grid; grid-template-columns: 1fr 1fr auto auto;
    gap: 0.4rem; align-items: center;
}
.enum-option-radio { width: 14px; height: 14px; accent-color: #8b5cf6; cursor: pointer; flex-shrink: 0; }
.required-toggle   { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

.toggle-track {
    width: 32px; height: 18px; border-radius: 999px; position: relative;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    transition: background 200ms;
}
.toggle-track.on { background: rgba(16,185,129,0.4); border-color: rgba(16,185,129,0.5); }
.toggle-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 12px; height: 12px; border-radius: 999px;
    background: rgba(255,255,255,0.5); transition: left 200ms, background 200ms;
}
.toggle-track.on .toggle-thumb { left: 16px; background: #10b981; }

/* ── Admin submission detail ─────────────────────────────────────────── */
.detail-label { color: rgba(255,255,255,.4); font-size: .8rem; }
.detail-value { color: rgba(255,255,255,.85); font-size: .88rem; word-break: break-all; }
