/* ═══════════════════════════════════════════════════════════
   PAGE: Integrations  |  Namespace: in-*
   Theme: Industrial-Precision / Dark Terminal Aesthetic
═══════════════════════════════════════════════════════════ */

.pg-integrations {
    --sans: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-family: var(--sans);
    color: var(--ink2);
    line-height: 1.6;
}

.pg-integrations a {
    text-decoration: none;
    color: inherit;
}

.pg-integrations img {
    max-width: 100%;
    border-radius: 50%;
    display: block;
}

.pg-integrations .in-mx {
    max-width: 1180px;
    margin: 0 auto;
}

.pg-integrations .in-mx--center {
    text-align: center;
}

/* ── HERO ── */
.in-hero {
    position: relative;
    padding: 80px 24px 72px;
    background: var(--white);
    overflow: hidden;
}

.in-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(var(--blue-rgb), .09), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.in-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-conic-gradient(rgba(var(--blue-rgb), 0.04) 0% 25%, transparent 0% 50%),
        radial-gradient(circle at 1px 1px, rgba(var(--blue-rgb), 0.08) 2px, transparent 0px);
    background-size: 80px 80px, 40px 40px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
    animation: gridBreath 12s ease-in-out infinite;
}

@keyframes gridBreath {

    0%,
    100% {
        opacity: 0.4;
        background-size: 100px 100px, 50px 50px;
    }

    50% {
        opacity: 1;
        background-size: 60px 60px, 30px 30px;
    }
}

.in-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.in-hero-text {
    max-width: 560px;
    text-align: start;
}

.in-hero-text .in-eye {
    text-align: start;
}

.in-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.in-hero h1 em {
    color: var(--blue);
    font-style: normal;
}

.in-hero-sub {
    font-size: 17px;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 28px;
}

.in-hero-sub strong {
    color: var(--ink2);
    font-weight: 700;
}

.in-checks {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 32px;
}

.in-chk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
}

.in-chk i {
    color: var(--blue);
    font-size: 12px;
    flex-shrink: 0;
}

.in-hero-actions {
    display: flex;
    gap: 14px;
}

.in-hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.in-orb {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--blue-rgb), 0.28);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: orbSpin 20s linear infinite;
}

.in-orb-core {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 12px 36px rgba(var(--blue-rgb), 0.14);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: orbSpinReverse 20s linear infinite;
    z-index: 10;
}

.in-orb-satellite {
    position: absolute;
    width: 68px;
    height: 68px;
    background: var(--snow);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--ink);
    animation: orbSpinReverse 20s linear infinite;
}

.in-orb-satellite.s1 {
    top: -25px;
    left: 115px;
    color: var(--ink2);
}

.in-orb-satellite.s2 {
    bottom: -25px;
    left: 115px;
    color: #fc6d26;
}

.in-orb-satellite.s3 {
    left: -25px;
    top: 115px;
    color: var(--green);
}

.in-orb-satellite.s4 {
    right: -25px;
    top: 115px;
    color: var(--wa);
}

@keyframes orbSpin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbSpinReverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* ── BYOC ── */

.in-badge {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.in-ecard {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 34px 26px;
    text-align: center;
    width: 280px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.in-ecard.highlight {
    border-color: var(--blue);
    box-shadow: 0 12px 36px rgba(var(--blue-rgb), 0.1);
}

.in-ecard .ec-icon {
    font-size: 48px;
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.in-ecard .ec-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.in-ecard.highlight .ec-icon {
    color: var(--blue);
}

.in-ecard.highlight .ec-icon svg {
    color: var(--blue);
}

.in-ecard h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.in-ecard p {
    font-size: 15px;
    font-weight: 400;
    color: var(--slate);
    margin: 0;
}

.in-feat {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 26px 22px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out, border-color .25s, box-shadow .25s !important;
}

.in-feat .ef-icon {
    width: 36px;
    height: 36px;
    color: var(--blue);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.in-feat .ef-icon svg {
    width: 100%;
    height: 100%;
}

.in-feat h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 9px;
}

.in-feat p {
    font-size: 14px;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.65;
}

/* ── GRID / DIRECTORY ── */
.in-grid-sec {
    padding: var(--sec-y) 24px;
    background: var(--white);
}

.in-directory {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.in-dir-category h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--mist);
    padding-bottom: 10px;
}

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

.in-app-card {
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: opacity .6s ease-out, transform .6s ease-out, border-color .25s, box-shadow .25s !important;
    opacity: 0;
    transform: translateY(20px);
}

.in-app-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
    border-color: var(--mist);
}

.in-app-card .app-icon {
    font-size: 28px;
    margin-bottom: 13px;
    height: 40px;
    display: flex;
    align-items: center;
}

.in-app-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
}

.in-app-card p {
    font-size: 14px;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.55;
    margin: 0;
}

.in-feat.hm-vis,
.in-app-card.hm-vis,
.in-ecard.hm-vis {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ─────────────────────────────────────────────────────────
   SIM TERMINAL — PREMIUM REBUILD
   Theme: Deep-space console with surgical precision
───────────────────────────────────────────────────────── */
.in-sim {
    padding: var(--sec-y) 24px;
    background: var(--white);
    border-top: 1px solid var(--mist);
}

/* Customization pointer at the bottom of the simulator */
.in-sim-cz {
    max-width: 640px;
    margin: 36px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--mist);
    text-align: center;
}
.in-sim-cz p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--slate);
    margin: 0 0 16px;
}
.in-sim-cz .mni-btn { display: inline-flex; }

.sim-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.sim-terminal {
    background: var(--ink);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .055),
        0 40px 100px rgba(6, 13, 24, .5),
        0 10px 30px rgba(6, 13, 24, .35),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    position: relative;
}

.sim-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .5), transparent);
    pointer-events: none;
}

/* ── TOPBAR ── */
.sim-topbar {
    background: var(--ink);
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    position: relative;
}

.sim-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.sim-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    cursor: default;
    transition: opacity .15s;
}

.sim-dot:hover {
    opacity: .7;
}

.sim-dot.r {
    background: var(--red);
    box-shadow: 0 0 7px rgba(255, 95, 87, .5);
}

.sim-dot.y {
    background: var(--amber);
    box-shadow: 0 0 7px rgba(254, 188, 46, .5);
}

.sim-dot.g {
    background: var(--green);
    box-shadow: 0 0 7px rgba(40, 200, 64, .5);
}

.sim-tab-row {
    display: flex;
    gap: 2px;
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, .038);
    border-radius: 11px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.sim-tab {
    position: relative;
    z-index: 2;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: color .18s;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: var(--sans);
    letter-spacing: .1px;
}

.sim-tab .tab-icon {
    font-size: 11px;
}

.sim-tab.active {
    color: rgba(255, 255, 255, .92);
}

.sim-tab:hover:not(.active) {
    color: rgba(255, 255, 255, .58);
}

.sim-tab-slider {
    position: absolute;
    top: 3px;
    height: calc(100% - 6px);
    background: rgba(255, 255, 255, .09);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    transition: left .26s cubic-bezier(.4, 0, .2, 1), width .26s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.sim-status {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, .28);
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.sim-status .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, .7);
    animation: livePulse 1.6s ease infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(34, 197, 94, .7);
    }

    50% {
        opacity: .7;
        box-shadow: 0 0 18px rgba(34, 197, 94, .4);
    }
}

/* ── BODY & PANELS ── */
.sim-body {
    padding: 24px;
}

.sim-panel {
    display: none;
}

.sim-panel.active {
    display: block;
    animation: panelReveal .2s ease both;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.sim-panel-header {
    margin-bottom: 20px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.panel-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .82);
    letter-spacing: .2px;
}

.panel-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .3);
    border: 1px solid rgba(255, 255, 255, .07);
    font-family: var(--mono);
    transition: all .3s;
}

.panel-badge.badge-active {
    background: rgba(34, 197, 94, .1);
    color: var(--green);
    border-color: rgba(34, 197, 94, .22);
    box-shadow: 0 0 12px rgba(34, 197, 94, .1);
}

.panel-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, .24);
    letter-spacing: .1px;
}

/* ── CREDENTIALS ── */
.creds-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cred-row {
    background: rgba(255, 255, 255, .034);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .25s, background .25s;
}

.cred-row--linked {
    background: rgba(34, 197, 94, .035);
    border-color: rgba(34, 197, 94, .15);
}

.cred-logo-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.cred-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .065);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.cred-linked-ring {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 2px solid var(--green);
    box-shadow: 0 0 12px rgba(34, 197, 94, .35);
    animation: ringPulse 2.5s ease infinite;
    pointer-events: none;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(34, 197, 94, .35);
    }

    50% {
        opacity: .7;
        box-shadow: 0 0 22px rgba(34, 197, 94, .55);
    }
}

.cred-info {
    flex: 1;
    min-width: 0;
        text-align: start;
}

.cred-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .86);
}

.cred-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .28);
    font-family: var(--mono);
    margin-top: 2px;
}

.cred-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.cred-badge.linked {
    background: rgba(34, 197, 94, .12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, .22);
}

.cred-badge.unlinked {
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .3);
    border: 1px solid rgba(255, 255, 255, .07);
}

.cred-btn {
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .09);
    background: transparent;
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: var(--sans);
}

.cred-btn:hover {
    background: rgba(255, 255, 255, .09);
    color: var(--white);
    border-color: rgba(255, 255, 255, .18);
}

.cred-btn.linked-btn {
    border-color: rgba(239, 68, 68, .28);
    color: var(--red);
}

.cred-btn.linked-btn:hover {
    background: rgba(239, 68, 68, .09);
    border-color: rgba(239, 68, 68, .45);
}

/* ── REPO FORM ── */
.repo-form {
    margin-bottom: 14px;
}

.repo-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, .3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    font-family: var(--mono);
}

.repo-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.sim-inp {
    flex: 1;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    padding: 10px 14px;
    text-align: start;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, .9);
    font-family: var(--mono);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.sim-inp::placeholder {
    color: rgba(255, 255, 255, .16);
}

.sim-inp:focus {
    border-color: rgba(59, 130, 246, .6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.sim-inp-select {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    direction: ltr;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    outline: none;
    cursor: pointer;
    font-family: var(--mono);
    transition: border-color .2s;
}

.sim-inp-select:focus {
    border-color: rgba(59, 130, 246, .6);
}

.sim-inp-select option {
    background: var(--ink2);
    color: var(--white);
}

.branch-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.branch-icon {
    position: absolute;
    inset-inline-end: 14px;
    color: rgba(255, 255, 255, .22);
    font-size: 12px;
    pointer-events: none;
}

.branch-inp {
    padding-inline-end: 36px !important;
    max-width: 200px;
}

.chk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sim-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sim-chk {
    display: none;
}

.sim-toggle-track {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, .09);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .1);
    position: relative;
    transition: background .25s, border-color .25s;
    flex-shrink: 0;
}

.sim-toggle-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, .38);
    border-radius: 50%;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), background .25s;
}

.sim-chk:checked+.sim-toggle-track {
    background: rgba(var(--blue-rgb), .65);
    border-color: rgba(var(--blue-rgb), .45);
}

.sim-chk:checked+.sim-toggle-track .sim-toggle-thumb {
    transform: translateX(-16px);
    background: var(--white);
}

.chk-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
}

/* ── ACTION BUTTONS ── */
.sim-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sim-btn {
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
    font-family: var(--sans);
    letter-spacing: .2px;
}

.sim-btn.ghost {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
}

.sim-btn.ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    border-color: rgba(255, 255, 255, .18);
}

.sim-btn.primary-btn {
    background: linear-gradient(135deg, var(--blue-h), var(--blue));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(var(--blue-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.sim-btn.primary-btn:hover {
    background: linear-gradient(135deg, var(--blue-d), var(--blue));
    box-shadow: 0 6px 24px rgba(var(--blue-rgb), .48);
    transform: translateY(-1px);
}

.sim-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── FEEDBACK ── */
.feedback-area {
    min-height: 34px;
    margin: 10px 0;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--mono);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-ok {
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 7px;
}

.fb-err {
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 7px;
}

.fb-warn {
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── PIPELINE ── */
.sim-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 22px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.sim-pipeline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--blue-rgb), .03) 0%, transparent 60%);
    pointer-events: none;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.ps-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .055);
    border: 2px solid rgba(255, 255, 255, .09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(255, 255, 255, .2);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.ps-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, .18);
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: color .4s;
    white-space: nowrap;
    font-family: var(--mono);
}

.pipeline-step.active .ps-dot {
    background: rgba(var(--blue-rgb), .2);
    border-color: var(--blue);
    color: var(--blue-xl);
    box-shadow: 0 0 18px rgba(var(--blue-rgb), .45), inset 0 0 10px rgba(var(--blue-rgb), .12);
    animation: pipeActivePulse 1.4s ease infinite;
}

.pipeline-step.active .ps-label {
    color: var(--blue-xl);
}

.pipeline-step.done .ps-dot {
    background: rgba(34, 197, 94, .15);
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, .22);
    animation: none;
}

.pipeline-step.done .ps-label {
    color: var(--green);
}

@keyframes pipeActivePulse {

    0%,
    100% {
        box-shadow: 0 0 18px rgba(var(--blue-rgb), .45), inset 0 0 10px rgba(var(--blue-rgb), .12);
    }

    50% {
        box-shadow: 0 0 28px rgba(var(--blue-rgb), .7), inset 0 0 14px rgba(var(--blue-rgb), .2);
    }
}

.pipeline-line {
    height: 1.5px;
    flex: 1;
    max-width: 44px;
    background: rgba(255, 255, 255, .07);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.pipeline-line.done {
    background: rgba(34, 197, 94, .3);
}

.pipeline-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .8), transparent);
    transform: translateX(-100%);
}

.pipeline-line.done::after {
    animation: lineFlow .5s ease forwards;
}

@keyframes lineFlow {
    to {
        transform: translateX(100%);
    }
}

/* ── PROGRESS ── */
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    font-family: var(--mono);
}

.progress-pct {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    font-family: var(--mono);
    line-height: 1;
}

.progress-bar-wrap {
    height: 5px;
    background: rgba(255, 255, 255, .06);
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 18px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue-h), var(--blue));
    width: 0%;
    transition: width .75s cubic-bezier(.22, 1, .36, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(96, 165, 250, .4);
}

.progress-bar-glow {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    filter: blur(7px);
    opacity: .65;
    transition: left .75s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

/* ── LOG STREAM — Premium Terminal ── */
.log-stream {
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;
    padding: 16px 18px;
    height: 210px;
    overflow-y: auto;
    font-family: var(--mono);
    font-size: 11.5px;
    position: relative;
}

.log-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .2), transparent);
    pointer-events: none;
}

.log-stream::-webkit-scrollbar {
    width: 3px;
}

.log-stream::-webkit-scrollbar-track {
    background: transparent;
}

.log-stream::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .07);
    border-radius: 4px;
}

.log-line {
    padding: 3px 0;
    color: rgba(255, 255, 255, .38);
    animation: logFadeIn .15s ease both;
    line-height: 1.55;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

@keyframes logFadeIn {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.log-ts {
    color: rgba(255, 255, 255, .16);
    font-size: 10px;
    flex-shrink: 0;
    min-width: 70px;
}

.log-prefix {
    flex-shrink: 0;
    opacity: .45;
    font-size: 12px;
}

.log-line.ok {
    color: var(--green);
}

.log-line.err {
    color: var(--red);
}

.log-line.info {
    color: var(--blue);
}

.log-line.warn {
    color: var(--amber);
}

/* Scanline effect overlay */
.log-stream::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, .04) 2px,
            rgba(0, 0, 0, .04) 4px);
    pointer-events: none;
    border-radius: 14px;
}

/* ── APPS LIST ── */
.apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-item {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 15px;
    padding: 15px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: appSlideIn .3s ease both;
    transition: border-color .2s, background .2s;
}

.app-item:hover {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .11);
}

@keyframes appSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.app-provider-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .055);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 2px;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.app-name {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .88);
}

.app-folder-tag {
    font-size: 10px;
    font-family: var(--mono);
    padding: 2px 7px;
    background: rgba(255, 255, 255, .065);
    border-radius: 5px;
    color: rgba(255, 255, 255, .38);
}

.app-private-badge,
.app-public-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.app-private-badge {
    background: rgba(245, 158, 11, .09);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, .18);
}

.app-public-badge {
    background: rgba(34, 197, 94, .07);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, .14);
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.app-branch-tag {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--blue-xl);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--blue-rgb), .11);
    padding: 2px 9px;
    border-radius: 5px;
    border: 1px solid rgba(var(--blue-rgb), .18);
}

.app-repo-url {
    font-size: 10px;
    font-family: var(--mono);
    color: rgba(255, 255, 255, .22);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.app-deploy-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-deploy-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 5px;
    background: rgba(var(--blue-rgb), .1);
    color: var(--blue-xl);
    border: 1px solid rgba(var(--blue-rgb), .18);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mono);
}

.app-deploy-badge.no-deploy {
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .06);
}

.app-status-col {
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
    flex-shrink: 0;
}

.app-status-dot {
    width: 8px;
    height: 8px;
    display: none;
    border-radius: 50%;
    flex-shrink: 0;
}

.app-status-dot.active {
    background: var(--green);
    box-shadow: 0 0 9px rgba(34, 197, 94, .55);
    animation: livePulse 2s infinite;
}

.app-status-dot.fetching {
    background: var(--amber);
    animation: livePulse 1s infinite;
}

.app-status-dot.failed {
    background: var(--red);
}

.app-actions-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.act-btn {
    padding: 6px 13px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .07);
    background: transparent;
    color: rgba(255, 255, 255, .38);
    cursor: pointer;
    transition: all .18s;
    font-family: var(--sans);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: .2px;
}

.act-btn:hover {
    background: rgba(255, 255, 255, .065);
    color: var(--white);
    border-color: rgba(255, 255, 255, .13);
}

.act-btn.install-btn:hover {
    border-color: rgba(var(--blue-rgb), .5);
    color: var(--blue-xl);
    background: rgba(var(--blue-rgb), .09);
}

.act-btn.update-btn:hover {
    border-color: rgba(34, 197, 94, .38);
    color: var(--green);
    background: rgba(34, 197, 94, .07);
}

.act-btn.del-btn:hover {
    border-color: rgba(239, 68, 68, .38);
    color: var(--red);
    background: rgba(239, 68, 68, .07);
}

.app-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, .16);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--mono);
}

.app-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 11px;
    opacity: .15;
}

/* ── AI THINKING ── */
.ai-thinking {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .38);
    font-family: var(--mono);
    padding: 8px 0;
}

.ai-spin {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .08);
    border-top-color: var(--blue);
    animation: spinAi .6s linear infinite;
    flex-shrink: 0;
}

@keyframes spinAi {
    100% {
        transform: rotate(360deg);
    }
}

/* ── MODAL ── */
.sim-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 24px;
    animation: overlayFadeIn .2s ease;
    backdrop-filter: blur(5px);
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sim-modal {
    background: var(--white);
    border-radius: 22px;
    padding: 32px 30px;
    max-width: 420px;
    width: 100%;
    animation: modalSlideUp .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .055);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px) scale(.97);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.sim-modal-icon {
    width: 46px;
    height: 46px;
    background: var(--blue-l);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--blue);
    margin-bottom: 16px;
}

.sim-modal h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-top: 1.33em;
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.sim-modal p {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 16px;
    font-weight: 400;
}

.sim-modal-select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--mist);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 20px;
    background: var(--snow);
    font-family: var(--sans);
    outline: none;
    transition: border-color .2s;
}

.sim-modal-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .08);
}

.sim-modal-actions {
    display: flex;
    gap: 10px;
}

.sim-modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    letter-spacing: .2px;
}

.sim-modal-btn.cancel {
    background: var(--snow);
    color: var(--slate);
    border: 1px solid var(--mist);
}

.sim-modal-btn.cancel:hover {
    background: var(--mist);
}

.sim-modal-btn.confirm {
    background: linear-gradient(135deg, var(--blue), var(--blue));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(var(--blue-rgb), .3);
}

.sim-modal-btn.confirm:hover {
    background: linear-gradient(135deg, var(--blue-h), var(--blue));
    box-shadow: 0 6px 24px rgba(var(--blue-rgb), .42);
}

/* ── TOAST ── */
.sim-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    z-index: 9999;
    animation: toastIn .28s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    font-family: var(--sans);
}

.sim-toast--out {
    animation: toastOut .35s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px) scale(.94);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(.96);
    }
}

/* Refined Dark Terminal */
.log-stream {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
    background: var(--ink); /* Deeper black */
    color: var(--mist);
}
.log-ts { color: var(--slate); font-weight: bold; }
.log-line.info { color: var(--blue); }
.log-line.ok { color: var(--green); }
.log-line.warn { color: var(--amber); }
.log-line.err { color: var(--red); }

/* Dark Modal for Credentials */
.dark-modal {
    background: var(--code-bg);
    border: 1px solid var(--code-surface);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}
.dark-modal h2 { color: var(--snow); }
.dark-modal p { color: var(--silver); }
.dark-modal .repo-label { color: var(--silver); }
.dark-modal .sim-inp {
    background: var(--code-surface);
    border-color: var(--code-line);
    color: var(--snow);
}
.dark-modal .sim-inp:focus { border-color: var(--blue); }
.dark-modal .sim-modal-btn.cancel {
    background: var(--code-surface);
    color: var(--mist);
    border-color: var(--code-line);
}
.dark-modal .sim-modal-btn.cancel:hover { background: var(--code-line); }

/* Pulse Animation for Terminal Status */
.sim-status .live-dot {
    background: var(--blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, .7);
    animation: enginePulse 2s ease-in-out infinite;
}
@keyframes enginePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(56,189,248,.6); }
    50% { opacity: 0.5; box-shadow: 0 0 15px rgba(56,189,248,.3); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .in-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .in-hero-text {
        margin: 0 auto;
    }

    .in-app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .in-ecard {
        width: 100%;
        max-width: 340px;
        min-height: auto;
        padding: 28px 22px;
    }
}

@media (max-width: 600px) {
    .in-hero h1 {
        font-size: 36px;
    }

    .in-sh {
        font-size: 28px;
    }

    .in-app-grid {
        grid-template-columns: 1fr;
    }

    .in-orb {
        width: 220px;
        height: 220px;
    }

    .in-orb-satellite.s1 {
        left: 85px;
    }

    .in-orb-satellite.s2 {
        left: 85px;
    }

    .in-orb-satellite.s3 {
        top: 85px;
    }

    .in-orb-satellite.s4 {
        top: 85px;
    }

    .sim-tab .tab-label {
        display: none;
    }

    .sim-tab {
        padding: 6px 10px;
    }

    .pipeline-line {
        max-width: 18px;
    }

    .ps-label {
        font-size: 9px;
    }

    .app-repo-url {
        max-width: 140px;
    }
}