/* ============================================================
   HUNDITO DESIGN SYSTEM
   ============================================================ */

:root {

    --h-bg: #f6f7f9;

    --h-card: #ffffff;
    --h-card-hover: #fbfbfc;

    --h-border: #e8eaed;
    --h-border-dark: #dfe2e6;

    --h-text: #17191c;
    --h-text-secondary: #686f78;
    --h-text-muted: #959ca5;

    --h-primary: #17191c;

    --h-radius: 12px;
    --h-radius-lg: 16px;

    --h-shadow:
        0 1px 2px rgba(0, 0, 0, 0.025),
        0 3px 10px rgba(0, 0, 0, 0.035);

    --h-shadow-hover:
        0 2px 4px rgba(0, 0, 0, 0.035),
        0 6px 18px rgba(0, 0, 0, 0.05);
}


/* ============================================================
   BASE
   ============================================================ */

html,
body {
    min-height: 100%;
}
.logo {
    width:110px;
    height:auto;
}
body {
    margin: 0;

    background: var(--h-bg);
    color: var(--h-text);

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;

    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--h-text);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-secondary {
    color: var(--h-text-secondary) !important;
}

.text-muted {
    color: var(--h-text-muted) !important;
}


/* ============================================================
   HEADER
   ============================================================ */

.hundito-navbar {


    background: rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid var(--h-border);

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.025);
}


.hundito-brand {

    color: var(--h-text) !important;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.04em;
}


/* ============================================================
   USER
   ============================================================ */

.user-badge {

    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--h-text-secondary);

    font-weight: 500;
}


.user-avatar {

    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef0f2;

    border: 1px solid var(--h-border);

    border-radius: 50%;

    color: #454a50;

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   PAGE
   ============================================================ */

.h-page {

    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding: 36px 32px 60px;
}


.h-page-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}


.h-page-title {

    margin: 0;

    font-size: 25px;
    font-weight: 700;

    letter-spacing: -0.035em;
}


.h-page-description {

    margin-top: 5px;

    color: var(--h-text-secondary);

    font-size: 14px;
}


/* ============================================================
   CARDS
   ============================================================ */

.h-card {

    background: var(--h-card);

    border:
        1px solid var(--h-border);

    border-radius:
        var(--h-radius-lg);

    box-shadow:
        var(--h-shadow);
}


.h-card-hover {

    transition:
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.h-card-hover:hover {

    transform:
        translateY(-1px);

    box-shadow:
        var(--h-shadow-hover);
}


/* ============================================================
   FORMS
   ============================================================ */

.form-label {

    margin-bottom: 7px;

    color: #454a51;

    font-size: 13px;
    font-weight: 600;
}


.form-control,
.form-select {

    min-height: 43px;

    background: #ffffff;

    border:
        1px solid var(--h-border-dark);

    border-radius: 9px;

    color: var(--h-text);

    font-size: 14px;

    box-shadow: none;
}


.form-control:focus,
.form-select:focus {

    background: #ffffff;

    border-color: #aeb4bc;

    color: var(--h-text);

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.04);
}


.form-control::placeholder {

    color: #a8adb4;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {

    border-radius: 15px;

    font-size: 15px;
    font-weight: 600;

    padding: 9px 15px;
}


.btn-dark {

    background: #181a1d;

    border-color: #181a1d;
}


.btn-dark:hover {

    background: #292c30;

    border-color: #292c30;
}


/* ============================================================
   ALERTS
   ============================================================ */

.flash-container {

    max-width: 1500px;

    margin-left: auto;
    margin-right: auto;
}


.alert {

    border-radius: 10px;

    font-size: 13px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.03);
}



/* DASHBOARD */
/* ============================================================
   DASHBOARD
   ======================
   ====================================== */

   .dashboard-activity-list {
    display: flex;
    flex-direction: column;
}

.dashboard-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 20px;

    border-top: 1px solid #edf0f2;
}

.dashboard-activity-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f4f5f7;

    font-size: 17px;
}

.dashboard-activity-content {
    flex: 1;
    min-width: 0;
}

.dashboard-activity-title {
    font-size: 14px;
    color: #20252b;
}

.dashboard-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;

    margin-top: 4px;

    color: #8a9199;
    font-size: 12px;
}
.username {
    font-size: 25px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;

}
.dashboard-activity-time {
    flex: 0 0 auto;

    color: #8a9199;
    font-size: 12px;

    white-space: nowrap;
}

@media (max-width: 767px) {

    .dashboard-activity-time {
        display: none;
    }

}

.flow-node-message-preview {
    width: 100%;
    height: 180px;

    padding: 14px 15px;

    overflow: hidden;

    border-radius: 10px;

    background: #f6f7f8;

    color: #555d66;

    font-size: 13px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-weight:bold;
    color:#000;
    font-size:15px;
}

.dashboard-stat {
    padding: 22px 24px;
    min-height: 150px;
}

.dashboard-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-stat-label {
    color: var(--h-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.dashboard-stat-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f7;
    border: 1px solid var(--h-border);
    border-radius: 9px;

    color: #555b63;
    font-size: 15px;
}

.dashboard-stat-value {
    color: var(--h-text);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.dashboard-stat-meta {
    margin-top: 8px;
    color: var(--h-text-muted);
    font-size: 12px;
}


/* CARD HEADER */

.dashboard-card-header {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid var(--h-border);
}

.dashboard-card-header h5 {
    font-size: 15px;
    font-weight: 700;
}

.dashboard-text-link {
    color: var(--h-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-text-link:hover {
    color: var(--h-text);
}


/* EMPTY STATE */

.dashboard-empty {
    min-height: 330px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 45px 25px;

    text-align: center;
}

.dashboard-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    background: #f4f5f6;
    border: 1px solid var(--h-border);
    border-radius: 13px;

    color: #676d75;
    font-size: 21px;
}

.dashboard-empty h5 {
    margin-bottom: 7px;

    font-size: 15px;
    font-weight: 700;
}

.dashboard-empty p {
    max-width: 390px;

    margin-bottom: 20px;

    color: var(--h-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}


/* GETTING STARTED */

.setup-list {
    padding: 7px 22px 13px;
}

.setup-item {
    display: flex;
    gap: 13px;

    padding: 17px 0;

    border-bottom: 1px solid var(--h-border);
}

.setup-item:last-child {
    border-bottom: 0;
}

.setup-number {
    flex: 0 0 auto;

    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f5f6;
    border: 1px solid var(--h-border);
    border-radius: 50%;

    color: #60666e;

    font-size: 11px;
    font-weight: 700;
}

.setup-title {
    margin-top: 2px;

    color: var(--h-text);

    font-size: 13px;
    font-weight: 600;
}

.setup-description {
    margin-top: 3px;

    color: var(--h-text-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* ACTIVITY */

.dashboard-activity-empty {
    height: 115px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--h-text-muted);

    font-size: 13px;
}

.dashboard-activity-empty i {
    font-size: 15px;
}


/* MOBILE */

@media (max-width: 767px) {

    .h-page {
        padding: 25px 16px 40px;
    }

    .h-page-header {
        align-items: flex-start;
        gap: 15px;
    }

    .h-page-title {
        font-size: 22px;
    }

    .dashboard-stat {
        min-height: auto;
    }
}


/* FLOWS CSS */

/* ============================================================
   CREATE FLOW
   ============================================================ */

.flow-back {
    margin-bottom: 26px;
}

.flow-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--h-text-secondary);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.flow-back a:hover {
    color: var(--h-text);
}


.new-flow-heading {
    max-width: 720px;

    margin: 0 auto 30px;

    text-align: center;
}

.new-flow-heading h1 {
    margin-bottom: 9px;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.04em;
}

.new-flow-heading p {
    margin: 0;

    color: var(--h-text-secondary);

    font-size: 14px;
    line-height: 1.6;
}


/* CARD */

.flow-create-card {
    overflow: hidden;
}

.flow-create-header {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 22px 24px;

    border-bottom: 1px solid var(--h-border);
}

.flow-create-header h5 {
    margin: 0 0 3px;

    font-size: 15px;
}

.flow-create-header p {
    margin: 0;

    color: var(--h-text-secondary);

    font-size: 12px;
}

.flow-create-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f7;

    border: 1px solid var(--h-border);

    border-radius: 10px;

    color: #5d636b;

    font-size: 17px;
}

.flow-create-body {
    padding: 27px 26px 29px;
}

.form-hint {
    margin-top: 7px;

    color: var(--h-text-muted);

    font-size: 11px;
}


/* NEXT */

.flow-next-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 19px 21px;
}

.flow-next-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f7;

    border: 1px solid var(--h-border);

    border-radius: 10px;

    color: #60666d;
}

.flow-next-title {
    margin-bottom: 3px;

    font-size: 13px;
    font-weight: 650;
}

.flow-next-description {
    color: var(--h-text-secondary);

    font-size: 12px;
    line-height: 1.5;
}


/* ACTIONS */

.flow-create-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}


/* NO SITE */

.no-site-warning {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px;

    background: #fafafa;

    border: 1px solid var(--h-border);

    border-radius: 10px;

    color: var(--h-text-secondary);

    font-size: 12px;
}

.no-site-warning strong {
    display: block;

    margin-bottom: 2px;

    color: var(--h-text);

    font-size: 13px;
}

.no-site-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    border: 1px solid var(--h-border);

    border-radius: 9px;
}


/* MOBILE */

@media (max-width: 767px) {

    .new-flow-heading {
        text-align: left;
    }

    .new-flow-heading h1 {
        font-size: 23px;
    }

    .flow-create-body {
        padding: 22px 19px;
    }

    .flow-next-card {
        align-items: flex-start;
    }
}

/* ============================================================
   FLOWS
   ============================================================ */

.flows-list {
    display: grid;
    gap: 12px;
}


/* FLOW ROW */

.flow-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 20px 22px;

    transition:
        box-shadow .18s ease,
        transform .18s ease,
        border-color .18s ease;
}

.flow-list-card:hover {
    transform: translateY(-1px);

    border-color: var(--h-border-dark);

    box-shadow: var(--h-shadow-hover);
}


.flow-list-main {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    min-width: 0;
}


/* ICON */

.flow-list-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f7;

    border: 1px solid var(--h-border);
    border-radius: 11px;

    color: #60666e;

    font-size: 18px;
}


/* DETAILS */

.flow-list-details {
    min-width: 0;
}

.flow-list-title-row {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 6px;
}

.flow-list-title {
    color: var(--h-text);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.flow-list-title:hover {
    text-decoration: underline;
}


.flow-list-site {
    display: flex;
    align-items: center;

    gap: 6px;

    color: var(--h-text-secondary);

    font-size: 12px;
}

.flow-list-site i {
    color: var(--h-text-muted);
}

.flow-list-site span {
    color: var(--h-text-muted);
}


.flow-list-description {
    max-width: 700px;

    margin-top: 8px;

    color: var(--h-text-secondary);

    font-size: 12px;
    line-height: 1.5;
}


/* STATUS */

.flow-status {
    display: inline-flex;
    align-items: center;

    padding: 3px 8px;

    border: 1px solid var(--h-border);
    border-radius: 20px;

    background: #f7f8f9;

    color: var(--h-text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.flow-status-published {
    background: #f3f8f4;

    border-color: #dbe9de;

    color: #507158;
}

.flow-status-draft {
    background: #f7f8f9;

    color: #727881;
}

.flow-status-paused {
    background: #faf8f2;

    border-color: #ebe4d3;

    color: #7c704f;
}

.flow-status-archived {
    opacity: .65;
}


/* RIGHT */

.flow-list-right {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 22px;
}

.flow-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 3px;

    color: var(--h-text-muted);

    font-size: 10px;
}


/* EMPTY */

.flows-empty {
    min-height: 420px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 50px 25px;

    text-align: center;
}

.flows-empty-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    background: #f4f5f6;

    border: 1px solid var(--h-border);
    border-radius: 14px;

    color: #656b73;

    font-size: 22px;
}

.flows-empty h4 {
    margin-bottom: 7px;

    font-size: 16px;
}

.flows-empty p {
    max-width: 430px;

    margin-bottom: 20px;

    color: var(--h-text-secondary);

    font-size: 13px;
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 767px) {

    .flow-list-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .flow-list-right {
        width: 100%;

        justify-content: space-between;

        padding-left: 60px;
    }

    .flow-list-meta {
        align-items: flex-start;
    }

}

/* ============================================================
   NEW SITE
   ============================================================ */

.site-new-wrap {
    width: 100%;
    max-width: 620px;
    margin: 20px auto 0;
}

.site-new-header {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
}

.site-new-back {
    position: absolute;
    left: 0;
    top: 4px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--h-text-secondary);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.site-new-back:hover {
    color: var(--h-text);
}

.site-new-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    background: #ffffff;

    border: 1px solid var(--h-border);
    border-radius: 13px;

    box-shadow: var(--h-shadow);

    color: #5e646c;

    font-size: 20px;
}

.site-new-header h1 {
    margin-bottom: 7px;

    font-size: 26px;
    font-weight: 700;

    letter-spacing: -0.04em;
}

.site-new-header p {
    margin: 0;

    color: var(--h-text-secondary);

    font-size: 13px;
}


/* FORM */

.site-new-card {
    overflow: hidden;
}

.site-new-form {
    padding: 30px;
}

.site-new-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 17px 20px;

    background: #fafbfb;

    border-top: 1px solid var(--h-border);
}


/* BOTTOM NOTE */

.site-new-next {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    max-width: 520px;

    margin: 17px auto 0;

    color: var(--h-text-muted);

    font-size: 11px;
    line-height: 1.55;
}

.site-new-next i {
    margin-top: 2px;
}


/* MOBILE */

@media (max-width: 767px) {

    .site-new-wrap {
        margin-top: 5px;
    }

    .site-new-header {
        padding-top: 40px;
        text-align: left;
    }

    .site-new-back {
        top: 0;
    }

    .site-new-icon {
        margin-left: 0;
    }

    .site-new-form {
        padding: 22px 19px;
    }
}

/* FLOW EDITOR */
/* ============================================================
   FLOW EDITOR
   ============================================================ */
.flow-node {
    width: 350px;
    height: 230px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.flow-node-header {
    flex: 0 0 auto;
}

.flow-node-body {
    flex: 1 1 auto;

    min-height: 0;

    padding: 18px 20px;

    overflow: hidden;
}

.flow-node-name {
    display: block;
    padding-bottom:10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flow-node-title {
    display: block;

    margin-top: 6px;

    color: #8d949d;

    font-size: 13px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* VIDEO POSTER */

.flow-node-poster {
    position: relative;

    width: 100%;
    height: 180px;

    overflow: hidden;

    border-radius: 10px;

    background: #111;
}

.flow-node-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* PLAY ICON OVER POSTER */

.flow-node-poster-play {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);

    color: #fff;

    font-size: 19px;

    pointer-events: none;
}

.flow-node-poster-play i {
    margin-left: 2px;
}


/* KEEP OUTPUT PINNED TO BOTTOM */

.flow-node-output {
    flex: 0 0 auto;
}

.flow-editor {
    height: calc(100vh - 66px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #f5f6f7;
}


/* ============================================================
   HEADER
   ============================================================ */

.flow-editor-header {
    height: 68px;

    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    background: #ffffff;

    border-bottom: 1px solid var(--h-border);

    z-index: 20;
}


.flow-editor-header-left,
.flow-editor-header-right {
    display: flex;
    align-items: center;
}


.flow-editor-header-left {
    gap: 13px;
}


.flow-editor-header-right {
    gap: 9px;
}


.flow-editor-back {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--h-border);
    border-radius: 8px;

    color: var(--h-text-secondary);

    text-decoration: none;
}


.flow-editor-back:hover {
    background: #f7f8f9;

    color: var(--h-text);
}


.flow-editor-name {
    color: var(--h-text);

    font-size: 14px;
    font-weight: 700;
}


.flow-editor-site {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 2px;

    color: var(--h-text-muted);

    font-size: 10px;
}


.flow-editor-status {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-right: 7px;

    color: var(--h-text-secondary);

    font-size: 11px;
    font-weight: 600;
}


.flow-editor-status-dot {
    width: 6px;
    height: 6px;

    background: #9ca2aa;

    border-radius: 50%;
}


/* ============================================================
   BODY
   ============================================================ */

.flow-editor-body {
    min-height: 0;

    flex: 1;

    display: grid;

    grid-template-columns:
        220px
        minmax(400px, 1fr)
        280px;
}


/* ============================================================
   LEFT SIDEBAR
   ============================================================ */

.flow-editor-sidebar {
    background: #ffffff;

    border-right: 1px solid var(--h-border);

    overflow-y: auto;

    z-index: 10;
}


.editor-panel-heading {
    padding: 18px 17px 10px;

    color: var(--h-text-muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.editor-node-tools {
    display: grid;

    gap: 5px;

    padding: 0 10px;
}


.editor-node-tool {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 9px;

    text-align: left;
}


.editor-node-tool:hover {
    background: #f7f8f9;

    border-color: var(--h-border);
}


.editor-node-tool-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f4f5;

    border: 1px solid var(--h-border);
    border-radius: 8px;

    color: #5d636a;

    font-size: 13px;
}


.editor-node-tool strong {
    display: block;

    color: var(--h-text);

    font-size: 11px;
    font-weight: 650;
}


.editor-node-tool span {
    display: block;

    margin-top: 1px;

    color: var(--h-text-muted);

    font-size: 9px;
}


.editor-sidebar-divider {
    height: 1px;

    margin: 15px 14px 3px;

    background: var(--h-border);
}


.editor-flow-info {
    padding: 0 17px;
}


.editor-flow-info > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 0;

    color: var(--h-text-secondary);

    font-size: 10px;
}


.editor-flow-info strong {
    color: var(--h-text);

    font-weight: 600;
}


/* ============================================================
   CANVAS
   ============================================================ */

.flow-canvas {
    position: relative;

    overflow: hidden;

    background: #f7f8f9;
}


.flow-canvas-grid {
    position: absolute;

    inset: 0;

    background-image:
        radial-gradient(
            circle,
            #d7dadd 1px,
            transparent 1px
        );

    background-size: 20px 20px;

    opacity: .65;

    pointer-events: none;
}


/* CONTROLS */

.flow-canvas-controls {
    position: absolute;

    left: 18px;
    bottom: 18px;

    display: flex;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--h-border);
    border-radius: 9px;

    box-shadow: var(--h-shadow);

    z-index: 10;
}


.flow-canvas-controls button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 0;
    border-right: 1px solid var(--h-border);

    color: var(--h-text-secondary);

    font-size: 11px;
}


.flow-canvas-controls button:last-child {
    border-right: 0;
}


.flow-canvas-controls button:hover {
    background: #f6f7f8;

    color: var(--h-text);
}


/* ============================================================
   EMPTY CANVAS
   ============================================================ */

.flow-canvas-empty {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 380px;

    transform: translate(-50%, -55%);

    text-align: center;
}


.flow-canvas-empty-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    background: #ffffff;

    border: 1px solid var(--h-border);
    border-radius: 14px;

    box-shadow: var(--h-shadow);

    color: #636970;

    font-size: 21px;
}


.flow-canvas-empty h3 {
    margin-bottom: 7px;

    font-size: 16px;
    font-weight: 700;
}


.flow-canvas-empty p {
    margin: 0 auto 18px;

    max-width: 350px;

    color: var(--h-text-secondary);

    font-size: 12px;
    line-height: 1.6;
}


/* ============================================================
   NODE
   ============================================================ */

.flow-node {
    position: absolute;

    width: 230px;
    height: 300px;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfe2e5;
    border-radius: 11px;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, .03),
        0 5px 14px rgba(0, 0, 0, .04);

    z-index: 5;
}


.flow-node:hover {
    border-color: #c5c9ce;
}


.flow-node-header {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 9px;

    background: #fafafa;

    border-bottom: 1px solid var(--h-border);

    color: var(--h-text-secondary);

    font-size: 9px;
    font-weight: 600;
}


.flow-node-type {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid var(--h-border);
    border-radius: 6px;
}


.flow-node-header button {
    margin-left: auto;

    background: transparent;

    border: 0;

    color: var(--h-text-muted);
}


.flow-node-body {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 15px 13px;
}


.flow-node-body strong {
    font-size: 12px;
    font-weight: 650;
}


.flow-node-body span {
    color: var(--h-text-secondary);

    font-size: 10px;
}


.flow-node-output {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    padding: 8px 12px;

    border-top: 1px solid var(--h-border);

    color: var(--h-text-muted);

    font-size: 9px;
}


.flow-node-connector {
    width: 9px;
    height: 9px;

    margin-right: -17px;

    background: #ffffff;

    border: 2px solid #8e949c;
    border-radius: 50%;
}

.flow-node {
    position: absolute;

    width: 100%;
    background: #ffffff;

    border: 1px solid #dfe2e5;
    border-radius: 11px;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, .03),
        0 5px 14px rgba(0, 0, 0, .04);

    z-index: 5;

    /* IMPORTANT */
    overflow: visible;

    cursor: pointer;
}

.flow-node:hover {
    border-color: #b9bec4;

    box-shadow:
        0 3px 6px rgba(0, 0, 0, .04),
        0 7px 18px rgba(0, 0, 0, .05);
}

.flow-node.selected {
    border-color: #777d84;

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .06),
        0 6px 18px rgba(0, 0, 0, .06);
}


/*
 * Because overflow is now visible,
 * individually round the header/footer.
 */

.flow-node-header {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 9px;

    background: #fafafa;

    border-bottom: 1px solid var(--h-border);

    border-radius: 10px 10px 0 0;

    color: var(--h-text-secondary);

    font-size: 9px;
    font-weight: 600;
}


.flow-node-body {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-height: 63px;

    padding: 15px 13px;
}


.flow-node-output {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    padding: 8px 12px;

    border-top: 1px solid var(--h-border);

    border-radius: 0 0 10px 10px;

    color: var(--h-text-muted);

    font-size: 9px;
}


.flow-node-connector {
    position: absolute;

    right: -6px;
    top: 50%;

    width: 11px;
    height: 11px;

    transform: translateY(-50%);

    background: #ffffff;

    border: 2px solid #8e949c;
    border-radius: 50%;

    margin: 0;
}

/* ============================================================
   SETTINGS
   ============================================================ */

.flow-editor-settings {
    background: #ffffff;

    border-left: 1px solid var(--h-border);

    overflow-y: auto;

    z-index: 10;
}


.editor-settings-empty {
    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 80px 28px;

    text-align: center;
}


.editor-settings-empty-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    background: #f5f6f7;

    border: 1px solid var(--h-border);
    border-radius: 11px;

    color: var(--h-text-muted);
}


.editor-settings-empty strong {
    margin-bottom: 5px;

    color: var(--h-text);

    font-size: 11px;
}


.editor-settings-empty span {
    color: var(--h-text-muted);

    font-size: 10px;
    line-height: 1.5;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .flow-editor-body {
        grid-template-columns:
            190px
            minmax(400px, 1fr);
    }

}


/* VIDEO EDITOR PREVIEW */
/* ============================================================
   VIDEO NODE SETTINGS
   ============================================================ */

.editor-video-settings {
    min-height: 100%;

    display: flex;
    flex-direction: column;
}


.editor-settings-section {
    padding: 17px;

    border-bottom: 1px solid var(--h-border);
}


.video-upload-box {
    overflow: hidden;

    background: #f7f8f9;

    border: 1px dashed #d4d8dc;
    border-radius: 10px;
}


.video-upload-empty {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 175px;

    padding: 20px;

    text-align: center;
}


.video-upload-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    background: #ffffff;

    border: 1px solid var(--h-border);
    border-radius: 9px;

    color: var(--h-text-secondary);

    font-size: 16px;
}


.video-upload-empty strong {
    font-size: 11px;
}


.video-upload-empty span {
    margin-top: 3px;

    color: var(--h-text-muted);

    font-size: 9px;
}


/* PREVIEW */

.video-preview-wrap {
    position: relative;

    background: #111;
}


.video-preview-wrap video {
    width: 100%;
    max-height: 310px;

    display: block;

    object-fit: contain;
}


.video-preview-remove {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.92);

    border: 0;
    border-radius: 7px;

    color: #333;

    font-size: 10px;
}


/* FILE INFO */

.video-file-info {
    padding: 10px 2px 0;
}


.video-file-info > div {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    padding: 3px 0;

    font-size: 9px;
}


.video-file-info span {
    color: var(--h-text-muted);
}


.video-file-info strong {
    overflow: hidden;

    color: var(--h-text-secondary);

    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* SAVE */

.editor-settings-footer {
    margin-top: auto;

    padding: 17px;
}

/* EXISTING NODES - EDITOR */
/* ============================================================
   EXISTING NODE SETTINGS
   ============================================================ */

.editor-node-settings {
    min-height: calc(100% - 40px);

    display: flex;
    flex-direction: column;
}


.editor-settings-type {
    display: flex;
    align-items: center;

    gap: 9px;
}


.editor-settings-type-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f5f6;

    border: 1px solid var(--h-border);
    border-radius: 8px;

    color: var(--h-text-secondary);
}


.editor-settings-type strong {
    display: block;

    font-size: 11px;
}


.editor-settings-type span {
    display: block;

    margin-top: 2px;

    color: var(--h-text-muted);

    font-size: 9px;
}


/* VIDEO PREVIEW */

.editor-video-preview {
    overflow: hidden;

    background: #111;

    border-radius: 9px;
}


.editor-video-preview video {
    width: 100%;
    max-height: 280px;

    display: block;

    object-fit: contain;
}


/* CHECKBOX SETTINGS */

.editor-setting-check {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    padding: 9px 0;

    cursor: pointer;
}


.editor-setting-check input {
    margin-top: 3px;
}


.editor-setting-check strong {
    display: block;

    color: var(--h-text);

    font-size: 10px;
    font-weight: 600;
}


.editor-setting-check span {
    display: block;

    margin-top: 2px;

    color: var(--h-text-muted);

    font-size: 9px;
    line-height: 1.4;
}

.editor-create-settings {
    min-height: calc(100% - 40px);

    display: flex;
    flex-direction: column;
}

.form-hint {
    color: var(--h-text-muted);

    font-size: 9px;
    line-height: 1.5;
}

.editor-settings-section textarea.form-control {
    min-height: 110px;

    resize: vertical;

    line-height: 1.5;
}

/* =========================================================
   NODE ACTIONS
   ========================================================= */

.node-actions-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ---------------------------------------------------------
   ACTION LIST
   --------------------------------------------------------- */

#nodeActionsList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ---------------------------------------------------------
   SAVED ACTION
   --------------------------------------------------------- */

.node-action-item {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 12px 12px 12px 14px;

    background: #f7f8fa;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
}


/* ---------------------------------------------------------
   ACTION CONTENT
   --------------------------------------------------------- */

.node-action-item-main {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}


.node-action-item-main strong {
    display: block;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;

    color: #202124;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.node-action-item-main span {
    display: flex;
    align-items: center;
    gap: 5px;

    min-width: 0;

    font-size: 11px;
    color: #8a929d;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.node-action-item-main span i {
    flex: 0 0 auto;
    font-size: 11px;
}


/* ---------------------------------------------------------
   DELETE ICON BUTTON

   Explicit reset removes browser / Bootstrap button ugliness.
   --------------------------------------------------------- */

.node-action-delete {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 0 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 8px;

    color: #9aa1aa;

    font: inherit;
    line-height: 1;

    cursor: pointer;

    box-shadow: none;
    outline: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.node-action-delete i {
    display: block;
    font-size: 15px;
    line-height: 1;
}


.node-action-delete:hover {
    background: #eeeeef;
    color: #202124;
}


.node-action-delete:focus,
.node-action-delete:focus-visible,
.node-action-delete:active {
    border: 0;
    outline: none;
    box-shadow: none;
}


.node-action-delete:disabled {
    opacity: 0.4;
    cursor: default;
}


/* ---------------------------------------------------------
   ADD ACTION BUTTON
   --------------------------------------------------------- */

#addNodeAction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 100%;

    padding: 10px 14px;

    background: #f5f6f7;
    border: 1px solid #e5e7ea;
    border-radius: 9px;

    color: #292d32;

    font-size: 12px;
    font-weight: 600;

    box-shadow: none;
}


#addNodeAction i {
    font-size: 14px;
}


#addNodeAction:hover {
    background: #eceef0;
    border-color: #dfe1e4;
    color: #16181b;
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.node-actions-empty {
    padding: 18px 12px;

    text-align: center;

    background: #fafafa;
    border: 1px dashed #dfe2e6;
    border-radius: 10px;
}


.node-actions-empty .editor-settings-empty-icon {
    margin: 0 auto 8px;
}


.node-actions-empty strong {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
    font-weight: 600;
}


.node-actions-empty span {
    display: block;

    font-size: 11px;
    line-height: 1.5;

    color: #8a929d;
}


/* ---------------------------------------------------------
   ACTION EDITOR
   --------------------------------------------------------- */

.node-action-editor {
    padding: 14px;

    background: #f8f9fa;
    border: 1px solid #e5e7ea;
    border-radius: 10px;
}
/* =========================================================
   FLOW NODE GRID
   ========================================================= */

.flow-nodes {
    width: 100%;
    height: auto;

    padding: 20px;

    /*
     * Bootstrap row handles the layout.
     * Do NOT make this an independent scroll container.
     */
    overflow: visible;

    margin-left: 0;
    margin-right: 0;
}


/*
 * Allow Bootstrap columns to actually shrink.
 * Important on small screens.
 */
.flow-nodes > [class*="col-"] {
    min-width: 0;
}


/* =========================================================
   FLOW NODE
   ========================================================= */

.flow-node {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e2e5e8;
    border-radius: 12px;

    /*
     * Keep node content inside the card.
     */
    overflow: hidden;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.04);

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.flow-node:hover {
    border-color: #c9cdd2;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.07);

    transform: translateY(-1px);
}


.flow-node.selected {
    border-color: #7d858e;

    box-shadow:
        0 0 0 1px #7d858e,
        0 5px 14px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   NODE INTERNAL CONTAINERS
   ========================================================= */

.flow-node-header,
.flow-node-body,
.flow-node-output {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


/* =========================================================
   NODE NAME
   ========================================================= */

.flow-node-name {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   VIDEO POSTER
   ========================================================= */

.flow-node-poster {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;

    box-sizing: border-box;
}


.flow-node-poster img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: cover;
}


/* =========================================================
   MESSAGE PREVIEW
   ========================================================= */

.flow-node-message-preview {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   DELETE NODE
   ========================================================= */

.editor-delete-node {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;

    appearance: none;
    background: transparent;

    border: 0;
    border-radius: 8px;

    color: #a94b4b;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.editor-delete-node:hover {
    background: #fff3f3;
    color: #8f3030;
}

.editor-delete-node:disabled {
    opacity: 0.45;
    cursor: default;
}

.flow-editor-header-left {
    min-width: 0;
}

.flow-editor-title {
    min-width: 0;
}

.flow-editor-name,
.flow-editor-site {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-editor-header-right {
    flex-shrink: 0;
}


/* INSTALL MODAL */

.hundito-install-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.install-section-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.install-code-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.install-code {
    margin: 0;
    padding: 20px;
    padding-right: 130px;

    background: #f6f7f8;
    border: 1px solid #e2e5e9;
    border-radius: 12px;

    font-size: 13px;
    line-height: 1.7;

    overflow-x: auto;
    white-space: pre;
}

.install-copy-button {
    position: absolute;
    top: 12px;
    right: 12px;

    background: #fff;
    border: 1px solid #dfe2e6;
}

.install-site-box {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;

    border: 1px solid #e2e5e9;
    border-radius: 12px;
}

.install-site-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #f5f6f7;

    font-size: 18px;
}

.install-site-label {
    color: #8a919b;
    font-size: 12px;
}

.install-site-domain {
    font-size: 14px;
    font-weight: 600;
}


/* MOBILE */

@media (max-width: 700px) {

    .flow-editor-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .flow-editor-header-right {
        gap: 6px;
    }

    .flow-header-action-text {
        display: none;
    }

    .flow-header-action {
        width: 38px;
        height: 38px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0;
    }

    .flow-editor-site {
        max-width: 180px;
    }

    .install-code {
        padding: 16px;
        padding-top: 60px;
        font-size: 12px;
    }

    .install-copy-button {
        left: 12px;
        right: auto;
    }

}


@media (max-width: 480px) {

    .flow-editor-status-text {
        display: none;
    }

    .flow-editor-site {
        max-width: 115px;
    }

    .modal-dialog {
        margin: 10px;
    }

}


.hundito-recorder-frame {
    position: relative;

    width: min(420px, 90vw);
    max-height: calc(100vh - 190px);

    aspect-ratio: 9 / 16;

    overflow: hidden;

    border-radius: 22px;

    background: #000;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45);
}

.hundito-recorder-frame video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    background: #000;
}

.hundito-recording-indicator {
    position: absolute;

    top: 14px;
    left: 14px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 7px 11px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.65);

    color: #fff;

    font-size: 13px;
}

.hundito-recording-indicator span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #dc3545;
}

/* =========================================================
   RESPONSIVE FLOW EDITOR
   ========================================================= */

.flow-editor-body {
    position: relative;
    display: block;
    width: 100%;
}

.flow-canvas {
    position: relative;
    width: 100%;
    min-width: 0;
}


/* =========================================================
   ADD NODE FAB
   ========================================================= */

.flow-add-node-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 30;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 0;
    border-radius: 999px;

    padding: 12px 18px;

    background: #111;
    color: #fff;

    font-weight: 600;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .16);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.flow-add-node-fab:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 34px rgba(0, 0, 0, .22);
}

.flow-add-node-fab i {
    font-size: 18px;
}


/* =========================================================
   NODE PICKER
   ========================================================= */

.node-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.node-picker-option {
    appearance: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 145px;

    padding: 20px;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    background: #fff;
    color: #111;

    text-align: left;

    transition:
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.node-picker-option:hover {
    border-color: #aaa;
    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .07);
}

.node-picker-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #f3f4f6;

    font-size: 20px;
}

.node-picker-option strong {
    font-size: 15px;
}

.node-picker-option span {
    margin-top: 3px;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   SETTINGS MODAL
   ========================================================= */

.hundito-node-settings-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
}

.hundito-node-settings-modal .modal-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.hundito-node-settings-modal .flow-editor-settings {
    width: 100%;
    height: auto;

    border: 0;

    position: static;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .flow-editor-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .flow-editor-site {
        max-width: 150px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flow-header-action-text {
        display: none;
    }

    .flow-header-action {
        width: 38px;
        height: 38px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0;
    }

    .flow-canvas {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        height: calc(100vh - 164px);

    }

    .flow-node {
        width: 240px;
        min-width: 240px;
        width:100%;
    }

    .flow-add-node-fab {
        position: fixed;

        right: 16px;
        bottom: 18px;

        width: 56px;
        height: 56px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;

        z-index: 1040;
    }

    .flow-add-node-fab span {
        display: none;
    }

    .flow-add-node-fab i {
        font-size: 22px;
    }

    .node-picker-grid {
        gap: 10px;
    }

    .node-picker-option {
        min-height: 125px;
        padding: 16px;
    }

    .hundito-node-settings-modal {
        border-radius: 0;
    }

    .hundito-node-settings-modal .modal-body {
        max-height: none;
    }

}
/* =========================================================
   RESPONSIVE FLOW EDITOR
   ========================================================= */

.flow-editor-body {
    position: relative;
    display: block;
    width: 100%;
}

.flow-canvas {
    position: relative;
    width: 100%;
    min-width: 0;
}


/* =========================================================
   ADD NODE FAB
   ========================================================= */

.flow-add-node-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 30;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 0;
    border-radius: 999px;

    padding: 12px 18px;

    background: #111;
    color: #fff;

    font-weight: 600;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .16);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.flow-add-node-fab:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 34px rgba(0, 0, 0, .22);
}

.flow-add-node-fab i {
    font-size: 18px;
}


/* =========================================================
   NODE PICKER
   ========================================================= */

.node-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.node-picker-option {
    appearance: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 145px;

    padding: 20px;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    background: #fff;
    color: #111;

    text-align: left;

    transition:
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.node-picker-option:hover {
    border-color: #aaa;
    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .07);
}

.node-picker-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #f3f4f6;

    font-size: 20px;
}

.node-picker-option strong {
    font-size: 15px;
}

.node-picker-option span {
    margin-top: 3px;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   SETTINGS MODAL
   ========================================================= */

.hundito-node-settings-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
}

.hundito-node-settings-modal .modal-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.hundito-node-settings-modal .flow-editor-settings {
    width: 100%;
    height: auto;

    border: 0;

    position: static;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .flow-editor-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .flow-editor-site {
        max-width: 150px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flow-header-action-text {
        display: none;
    }

    .flow-header-action {
        width: 38px;
        height: 38px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0;
    }

    .flow-canvas {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .flow-node {
        width: 240px;
        min-width: 240px;
    }

    .flow-add-node-fab {
        position: fixed;

        right: 16px;
        bottom: 18px;

        width: 56px;
        height: 56px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;

        z-index: 1040;
    }

    .flow-add-node-fab span {
        display: none;
    }

    .flow-add-node-fab i {
        font-size: 22px;
    }

    .node-picker-grid {
        gap: 10px;
    }

    .node-picker-option {
        min-height: 125px;
        padding: 16px;
    }

    .hundito-node-settings-modal {
        border-radius: 0;
    }

    .hundito-node-settings-modal .modal-body {
        max-height: none;
    }

}
/* ============================================================
   FLOW EDITOR — FINAL RESPONSIVE OVERRIDES
   KEEP THIS AT THE BOTTOM OF THE FILE
   ============================================================ */


/* Editor no longer uses the old 3-column sidebar layout */
.flow-editor-body {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
}


/* Canvas is now just the responsive node area */
.flow-canvas {
    position: relative;
    display: block;

    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;

    overflow: visible;

    background: #f7f8f9;
}


/* Bootstrap ROW controls node layout */
.flow-nodes {
    position: relative;

    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;

    padding: 20px;
    margin-left: 0;
    margin-right: 0;

    overflow: visible;

    box-sizing: border-box;
}


/* Bootstrap columns MUST be allowed to shrink */
.flow-nodes > [class*="col-"] {
    position: relative;

    min-width: 0;
    max-width: 100%;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   NODE
   Kill all previous fixed/absolute node behaviour
   ------------------------------------------------------------ */

.flow-nodes .flow-node {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 100%;
    min-height: 0;

    margin: 0;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e2e5e8;
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.04);

    cursor: pointer;

    z-index: auto;

    transform: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.flow-nodes .flow-node:hover {
    border-color: #c9cdd2;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.07);

    transform: translateY(-1px);
}


.flow-nodes .flow-node.selected {
    border-color: #7d858e;

    box-shadow:
        0 0 0 1px #7d858e,
        0 5px 14px rgba(0, 0, 0, 0.07);
}


/* ------------------------------------------------------------
   NODE INTERNAL LAYOUT
   ------------------------------------------------------------ */

.flow-nodes .flow-node-header,
.flow-nodes .flow-node-body,
.flow-nodes .flow-node-output {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


.flow-nodes .flow-node-header {
    flex: 0 0 auto;
}


.flow-nodes .flow-node-body {
    flex: 1 1 auto;
    min-height: 0;

    overflow: hidden;
}


.flow-nodes .flow-node-output {
    flex: 0 0 auto;
}


/* ------------------------------------------------------------
   NODE NAME
   ------------------------------------------------------------ */

.flow-nodes .flow-node-name {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ------------------------------------------------------------
   VIDEO
   ------------------------------------------------------------ */

.flow-nodes .flow-node-poster {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;

    box-sizing: border-box;
}


.flow-nodes .flow-node-poster img {
    display: block;

    width: 100%;
    max-width: 100%;

    object-fit: cover;
}


/* ------------------------------------------------------------
   MESSAGE
   ------------------------------------------------------------ */

.flow-nodes .flow-node-message-preview {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    .flow-nodes {
        padding: 8px;
    }

    /*
     * Explicitly override the old mobile 240px minimum.
     */
    .flow-nodes .flow-node {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .flow-nodes .flow-node-body {
        padding: 12px 10px;
    }

    .flow-nodes .flow-node-poster {
        width: 100%;
    }

}

.flow-canvas {
    position: relative;
    display: block;

    width: 100%;
    min-width: 0;

    height: 100%;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    background: #f7f8f9;
}




/* ============================================================
   MOBILE NODE SETTINGS MODAL — FINAL OVERRIDE
   ============================================================ */

@media (max-width: 767.98px) {

    #nodeSettingsModal {
        display: none;
    }

    #nodeSettingsModal.show {
        display: block;
    }

    #nodeSettingsModal .modal-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100%;
        margin: 0;
    }

    #nodeSettingsModal .modal-content {
        width: 100%;
        height: 100%;
        min-height: 100%;

        border: 0;
        border-radius: 0;

        overflow: hidden;
    }

    #nodeSettingsModal .modal-body {
        display: block !important;

        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;

        padding: 0;

        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;
    }


    /*
     * This USED to be a desktop sidebar.
     * Inside the modal it must behave like normal content.
     */
    #nodeSettingsModal .flow-editor-settings {
        display: block !important;

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;

        border: 0;
    }


    /*
     * Individual settings panels.
     *
     * IMPORTANT:
     * Do NOT force d-none panels visible.
     */
    #nodeSettingsModal .editor-video-settings:not(.d-none),
    #nodeSettingsModal .editor-create-settings:not(.d-none),
    #nodeSettingsModal .editor-node-settings:not(.d-none) {
        display: block !important;

        width: 100%;
        max-width: 100%;

        height: auto;

        overflow: visible;
    }


    #nodeSettingsModal .editor-settings-scroll {
        display: block;

        width: 100%;
        height: auto;
        max-height: none;

        overflow: visible;
    }

}

.talkings-orb {
    width: 90px;
    height: 90px;

    position: relative;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 25% 18%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.35) 8%,
            transparent 22%
        ),
        radial-gradient(
            circle at 70% 70%,
            #ff4bd8 0%,
            #a83cff 28%,
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #19d9f4 0%,
            #0787f5 28%,
            #3738ff 52%,
            #933cff 72%,
            #ff4bd8 100%
        );

    box-shadow:
        inset -8px -10px 20px rgba(255, 255, 255, 0.16),
        inset 7px 8px 18px rgba(255, 255, 255, 0.20),
        0 12px 25px rgba(83, 70, 255, 0.25),
        0 20px 45px rgba(223, 65, 255, 0.18);
}

/* soft colored shadow underneath */
.talkings-orb::after {
    content: "";

    position: absolute;

    width: 80%;
    height: 20%;

    left: 10%;
    bottom: -18%;

    border-radius: 50%;

    background:
        linear-gradient(
            90deg,
            rgba(0, 174, 255, 0.40),
            rgba(99, 62, 255, 0.35),
            rgba(255, 58, 214, 0.40)
        );

    filter: blur(12px);

    opacity: 0.65;

    z-index: -1;
}

.editor-settings-type-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        rgba(0, 194, 255, 0.14),
        rgba(124, 58, 237, 0.16),
        rgba(236, 72, 153, 0.14)
    );

    border: 1px solid rgba(124, 58, 237, 0.20);
    border-radius: 8px;

    color: #7c3aed;
}

.editor-settings-type-icon i {
    background: linear-gradient(
        135deg,
        #00c2ff 0%,
        #7c3aed 55%,
        #ec4899 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* =========================================================
   TALKINGS — SETTINGS UI
   ========================================================= */

.editor-settings-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 280px;
    padding: 64px 32px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(0, 194, 255, 0.08),
            transparent 38%
        );
}


.editor-settings-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    background: linear-gradient(
        135deg,
        rgba(0, 194, 255, 0.14),
        rgba(124, 58, 237, 0.16),
        rgba(236, 72, 153, 0.12)
    );

    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(80, 50, 160, 0.08);

    font-size: 20px;
}


.editor-settings-empty-icon i {
    background: linear-gradient(
        135deg,
        #00c2ff 0%,
        #7c3aed 55%,
        #ec4899 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.editor-settings-empty strong {
    margin-bottom: 6px;

    color: var(--h-text);

    font-size: 13px;
    font-weight: 650;
}


.editor-settings-empty span {
    max-width: 280px;

    color: var(--h-text-muted);

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   SETTINGS SECTIONS
   ========================================================= */

.editor-settings-section {
    padding: 22px 24px;

    border-bottom: 1px solid rgba(20, 30, 50, 0.07);

    background: #fff;
}

.editor-settings-section:last-child {
    border-bottom: 0;
}


/* =========================================================
   LABELS
   ========================================================= */

.editor-settings-section .form-label {
    margin-bottom: 7px;

    color: #252a34;

    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.01em;
}


/* =========================================================
   INPUTS / SELECTS / TEXTAREAS
   ========================================================= */

.editor-settings-section .form-control,
.editor-settings-section .form-select {
    min-height: 42px;

    padding: 9px 12px;

    background: #f8f9fb;

    border: 1px solid #e7e9ee;
    border-radius: 10px;

    color: #1e2330;

    font-size: 12px;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.editor-settings-section textarea.form-control {
    min-height: 100px;
    resize: vertical;
}


.editor-settings-section .form-control:hover,
.editor-settings-section .form-select:hover {
    border-color: #d9dce4;
}


.editor-settings-section .form-control:focus,
.editor-settings-section .form-select:focus {
    background: #fff;

    border-color: rgba(124, 58, 237, 0.48);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.08);
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.editor-settings-section .form-hint {
    color: #9298a5;

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   DIVIDERS
   ========================================================= */

.editor-settings-section hr {
    margin: 22px 0;

    border: 0;
    border-top: 1px solid #eef0f3;

    opacity: 1;
}


/* =========================================================
   CHECK / TOGGLE CARDS
   ========================================================= */

.editor-setting-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 9px;
    padding: 13px 14px;

    background: #f8f9fb;

    border: 1px solid #eaecf0;
    border-radius: 11px;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}


.editor-setting-check:hover {
    background: #fff;

    border-color: rgba(124, 58, 237, 0.22);

    transform: translateY(-1px);
}


.editor-setting-check strong {
    display: block;

    margin-bottom: 2px;

    color: #252a34;

    font-size: 11px;
    font-weight: 650;
}


.editor-setting-check span {
    display: block;

    color: #8c929e;

    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   FOOTER
   ========================================================= */

.editor-settings-footer {
    padding: 20px 24px 24px;

    background: #fafbfc;

    border-top: 1px solid #eef0f3;
}


.editor-settings-footer .btn-dark {
    min-height: 43px;

    border: 0;
    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #172033 0%,
        #242b3d 100%
    );

    font-size: 12px;
    font-weight: 650;

    box-shadow:
        0 6px 16px rgba(20, 28, 45, 0.14);
}


.editor-settings-footer .btn-dark:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(20, 28, 45, 0.18);
}

.journey-entry-empty {
    position: relative;
    width: 100%;
    max-width: 620px;
    padding: 54px 28px 70px;
    text-align: center;
}


.journey-orbit {
    position: relative;
    width: 92px;
    height: 82px;
    margin: 0 auto 18px;
}


.journey-orb {
    position: absolute;
    display: block;
    border-radius: 999px;
}


.journey-orb-main {
    width: 46px;
    height: 46px;
    top: 18px;
    left: 23px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6 0%,
            #6366f1 55%,
            #38bdf8 100%
        );

    box-shadow:
        0 12px 28px rgba(99, 102, 241, 0.24),
        0 3px 8px rgba(99, 102, 241, 0.14);
}


.journey-orb-1 {
    width: 13px;
    height: 13px;
    top: 5px;
    left: 13px;

    background: #8b5cf6;

    box-shadow:
        0 5px 12px rgba(139, 92, 246, 0.22);
}


.journey-orb-2 {
    width: 9px;
    height: 9px;
    top: 9px;
    right: 9px;

    background: #38bdf8;

    box-shadow:
        0 4px 10px rgba(56, 189, 248, 0.22);
}


.journey-orb-3 {
    width: 8px;
    height: 8px;
    bottom: 4px;
    left: 7px;

    background: #22c55e;

    box-shadow:
        0 4px 10px rgba(34, 197, 94, 0.20);
}


.journey-orb-4 {
    width: 11px;
    height: 11px;
    right: 4px;
    bottom: 8px;

    background: #f59e0b;

    box-shadow:
        0 4px 10px rgba(245, 158, 11, 0.20);
}

.journey-entry-kicker {
    margin-bottom: 9px;
    color: #8b5cf6;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.13em;
}


.journey-entry-title {
    margin: 0;
    color: #111827;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.025em;
}


.journey-entry-description {
    max-width: 440px;
    margin: 10px auto 26px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}


.journey-entry-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}


.journey-entry-label {
    display: block;
    margin: 0 0 8px 3px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}


.journey-select-wrap,
.journey-custom-input-wrap {
    position: relative;
    width: 100%;
}


.journey-entry-select,
.journey-custom-url {
    width: 100%;
    height: 58px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.07),
        0 2px 5px rgba(15, 23, 42, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.journey-entry-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 50px 0 52px;
    cursor: pointer;
}


.journey-custom-url {
    padding: 0 18px 0 52px;
}


.journey-entry-select:hover,
.journey-custom-url:hover {
    border-color: #d1d5db;
}


.journey-entry-select:focus,
.journey-custom-url:focus {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.09),
        0 12px 30px rgba(15, 23, 42, 0.08);
}


.journey-select-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #8b5cf6;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}


.journey-select-chevron {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}


.journey-custom-url-wrap {
    margin-top: 16px;
}


.journey-entry-hint {
    margin: 8px 4px 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}


.journey-entry-hint strong {
    color: #6b7280;
}


.journey-selected-page {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #e8e5ff;
    border-radius: 14px;
    background: #faf9ff;
    text-align: left;
}


.journey-selected-page.d-none {
    display: none !important;
}


.journey-selected-check {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #8b5cf6;
    color: #fff;
    font-size: 14px;
}


.journey-selected-page span {
    display: block;
    margin-bottom: 1px;
    color: #8b819b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.journey-selected-page strong {
    display: block;
    max-width: 365px;
    overflow: hidden;
    color: #312e81;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.journey-add-node-button {
    width: 100%;
    height: 56px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow:
        0 12px 25px rgba(17, 24, 39, 0.16);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        opacity 0.16s ease;
}


.journey-add-node-button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 32px rgba(17, 24, 39, 0.20);
}


.journey-add-node-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}


.journey-add-node-plus {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}


.journey-entry-line {
    position: relative;
    width: 2px;
    height: 64px;
    margin: 28px auto 0;
    background:
        linear-gradient(
            to bottom,
            rgba(139, 92, 246, 0.50),
            rgba(139, 92, 246, 0)
        );
}


.journey-entry-line span {
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #8b5cf6;
}


.journey-entry-line span:nth-child(1) {
    top: 6px;
}


.journey-entry-line span:nth-child(2) {
    top: 25px;
    opacity: 0.55;
}


.journey-entry-line span:nth-child(3) {
    top: 44px;
    opacity: 0.25;
}


@media (max-width: 767.98px) {

    .journey-entry-empty {
        padding:
            34px
            16px
            50px;
    }


    .journey-entry-title {
        font-size: 23px;
    }


    .journey-entry-select,
    .journey-custom-url {
        height: 56px;
    }

}

/* =========================================================
   JOURNEY FLOW
   ========================================================= */

.journey-flow {
    position: relative;
    width: 100%;
    padding: 0 24px;
}


/* =========================================================
   JOURNEY START
   ========================================================= */

.journey-flow-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.journey-orbit-small {
    transform: scale(.72);
    transform-origin: center;
    margin-bottom: -6px;
}


.journey-flow-start-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}


.journey-flow-start-text span {
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8b8b98;
}


.journey-flow-start-text strong {
    max-width: 420px;
    font-size: 14px;
    font-weight: 700;
    color: #25252d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CONNECTOR
   ========================================================= */

.journey-connector {
    position: relative;
    width: 26px;
    height: 82px;
    margin: 4px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


.journey-connector::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;

    background:
        linear-gradient(
            to bottom,
            rgba(115, 84, 255, .18),
            rgba(115, 84, 255, .55),
            rgba(48, 190, 255, .45),
            rgba(115, 84, 255, .18)
        );
}


.journey-connector span {
    position: relative;
    z-index: 2;

    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7657ff,
            #39bfff
        );

    box-shadow:
        0 0 0 4px rgba(118, 87, 255, .07),
        0 0 14px rgba(118, 87, 255, .28);
}


.journey-connector span:nth-child(2) {
    width: 5px;
    height: 5px;
    opacity: .72;
}


.journey-connector span:nth-child(3) {
    width: 7px;
    height: 7px;
}


/* =========================================================
   NODE STACK
   ========================================================= */

.journey-node-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.journey-node-step {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*
 * Existing node stays the existing node.
 * We're only controlling its journey layout dimensions.
 */

.journey-node-step > .flow-node {
    position: relative;
    width: min(100%, 340px);
    margin: 0 auto;

    box-shadow:
        0 10px 32px rgba(25, 25, 40, .08),
        0 2px 8px rgba(25, 25, 40, .04);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.journey-node-step > .flow-node:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 42px rgba(25, 25, 40, .11),
        0 3px 10px rgba(25, 25, 40, .05);
}


/* =========================================================
   STEP NUMBER
   ========================================================= */

.journey-step-number {
    position: absolute;
    z-index: 4;

    top: -10px;
    left: calc(50% - 182px);

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;

    border: 1px solid rgba(118, 87, 255, .16);

    box-shadow:
        0 4px 12px rgba(30, 30, 50, .08);

    font-size: 10px;
    font-weight: 800;
    color: #7657ff;
}


/* =========================================================
   BETWEEN NODES
   ========================================================= */

.journey-connector-between {
    height: 92px;
    margin: 7px auto;
}


/* =========================================================
   LITTLE CONNECTION PORTS ON NODE
   ========================================================= */

.journey-node-step > .flow-node::before,
.journey-node-step > .flow-node::after {
    content: "";
    position: absolute;
    z-index: 5;

    left: 50%;
    transform: translateX(-50%);

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7657ff,
            #39bfff
        );

    border: 2px solid #fff;

    box-shadow:
        0 0 0 3px rgba(118, 87, 255, .10),
        0 0 12px rgba(118, 87, 255, .28);
}


.journey-node-step > .flow-node::before {
    top: -5px;
}


.journey-node-step > .flow-node::after {
    bottom: -5px;
}


/* Last node doesn't need an outgoing port */

.journey-node-step:last-child > .flow-node::after {
    display: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .journey-flow {
        margin-top: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }


    .journey-node-step > .flow-node {
        width: min(100%, 360px);
    }


    .journey-step-number {
        left: 6px;
        top: -8px;
    }


    .journey-connector {
        height: 66px;
    }


    .journey-connector-between {
        height: 74px;
    }

}

.journey-level {
    display: grid;
    grid-template-columns:
        repeat(
            var(--journey-columns),
            minmax(0, 1fr)
        );

    gap: 28px;
}
.journey-url-level {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            var(--journey-url-columns),
            minmax(190px, 210px)
        );

    justify-content: center;
    align-items: start;

    gap: 24px;
}

.journey-url-branch {
    display: flex;
    justify-content: center;
}

.journey-url-card {
    width: 210px;
    min-height: 68px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    background: #fff;

    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, 0.07);

    overflow: hidden;
}

.journey-url-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f8fafc;

    color: #64748b;
}

.journey-url-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.journey-url-content span {
    font-size: 10px;
    font-weight: 700;

    color: #64748b;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journey-url-content strong {
    display: block;

    font-size: 10px;
    font-weight: 600;

    color: #334155;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-node-entry-points {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 6px;
}

.flow-node-entry-point {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    max-width: 100%;

    padding: 3px 6px;

    background: #f8fafc;

    border-radius: 6px;

    color: #64748b;

    font-size: 9px;
    font-weight: 600;
}

@media (max-width: 900px) {

    .journey-url-level {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

/* =========================================================
   FLOW TREE SIZING
   ========================================================= */

.journey-tree {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;

    padding: 20px 20px 40px;

    -webkit-overflow-scrolling: touch;
}

.journey-tree-nodes {
    width: max-content;
    min-width: 100%;

    display: flex;
    justify-content: center;
}


/* =========================================================
   NODE BRANCH
   ========================================================= */

.journey-tree-branch {
    min-width: 290px;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
}


/* =========================================================
   NODE CARD
   ========================================================= */

.flow-node {
    width: 250px;
    max-width: 250px;
    min-width: 0;
    box-sizing: border-box;

    flex: 0 0 auto;
}


/* Prevent anything inside the card from forcing it wider */

.flow-node-header,
.flow-node-body,
.flow-node-output {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.flow-node-name {
    display: block;

    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   CHILD BRANCH GRID
   ========================================================= */

.journey-level {
    width: max-content;
    min-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            var(--journey-columns),
            minmax(290px, max-content)
        );

    justify-content: center;
    align-items: start;

    column-gap: 24px;
    row-gap: 32px;

    box-sizing: border-box;
}


/* Every child receives its own protected column */

.journey-level > .journey-tree-branch {
    width: 290px;
    min-width: 290px;
}


/* =========================================================
   VIDEO / IMAGE CONTENT
   ========================================================= */

.flow-node-poster {
    width: 100%;
    max-width: 100%;

    overflow: hidden;
}

.flow-node-poster img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   PAGE ENTRY PILLS
   ========================================================= */

.flow-node-entry-points {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: 6px;
}

.flow-node-entry-point {
    max-width: 100%;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   OUTBOUND URL BRANCHES
   ========================================================= */

.journey-url-level {
    width: max-content;
    min-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            var(--journey-url-columns),
            250px
        );

    justify-content: center;

    gap: 24px;

    box-sizing: border-box;
}

.journey-url-branch {
    width: 250px;

    display: flex;
    justify-content: center;
}

.journey-url-card {
    width: 250px;
    max-width: 250px;

    box-sizing: border-box;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .journey-tree {
        padding-left: 12px;
        padding-right: 12px;
    }

    .journey-tree-branch {
        min-width: 270px;
    }

    .journey-level {
        grid-template-columns:
            repeat(
                var(--journey-columns),
                minmax(270px, max-content)
            );

        column-gap: 16px;
    }

    .journey-level > .journey-tree-branch {
        width: 270px;
        min-width: 270px;
    }

}

.journey-dotted-connector {
    height: 42px;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: stretch;
}

.journey-dotted-connector span {
    display: block;

    width: 2px;
    height: 100%;

    background-image:
        linear-gradient(
            to bottom,
            #94a3b8 0,
            #94a3b8 4px,
            transparent 4px,
            transparent 9px
        );

    background-size: 2px 9px;
    background-repeat: repeat-y;
}
/* =========================================================
   CROSS-PAGE JOURNEY CONTINUATION
   ========================================================= */

.journey-url-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-page-continuation {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    width: max-content;
}

.journey-add-page-node {
    width: 200px;
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06);

    text-align: left;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.journey-add-page-node:hover {
    transform: translateY(-2px);

    border-color: #94a3b8;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.10);
}

.journey-add-page-node-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f1f5f9;

    font-size: 18px;
}

.journey-add-page-node-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.journey-add-page-node-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.journey-add-page-node-copy span {
    font-size: 12px;
    line-height: 1.3;

    color: #64748b;
}

.journey-add-child-node {
    width: 200px;
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06);

    text-align: left;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.journey-add-child-node:hover {
    transform: translateY(-2px);

    border-color: #94a3b8;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.10);
}

.journey-add-child-node {
    width: 200px;
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 0 auto;

    padding: 12px 14px;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06);

    text-align: left;

    cursor: pointer;

    flex: 0 0 auto;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.journey-add-child-node:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.10);
}

.flow-canvas-controls {
    position: fixed;

    left: 24px;
    bottom: 24px;

    z-index: 100;

    display: flex;
    align-items: center;

    gap: 8px;
}


.flow-canvas-control {
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 15px;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.96);

    color: #0f172a;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.10);

    backdrop-filter: blur(12px);

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.flow-canvas-control:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.14);
}


.flow-canvas-control i {
    font-size: 16px;
}

.flow-view-controls {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;

    display: flex;
    gap: 8px;
}

.flow-view-button {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;
    color: #111827;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

    font-size: 17px;

    cursor: pointer;
}

.flow-view-button:hover {
    background: #f8fafc;
}

.flow-view-button.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}
.journey-empty-state {
    width: 100%;
    padding: 60px 20px;
}

.journey-empty-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.journey-empty-copy {
    margin-top: 24px;
}

.journey-empty-copy h2 {
    margin: 0 0 8px;
}

.journey-empty-copy p {
    margin: 0;
}

.journey-entry-picker {
    width: 100%;
    max-width: 500px;
    margin: 28px auto 0;
}

.journey-entry-select,
.journey-custom-url-wrap,
.journey-custom-url-wrap input {
    width: 100%;
}

.journey-custom-url-wrap {
    margin-top: 12px;
}

.journey-selected-page {
    margin-top: 12px;
}

#createWelcomeNode {
    margin-top: 16px;
}
#hundito-widget {
    display: none !important;
}

@media (max-width: 767.98px) {

    .journey-empty-state {
        padding: 40px 16px;
    }

    .journey-empty-inner {
        max-width: 100%;
    }

    .journey-entry-picker {
        max-width: 100%;
    }
}
.journey-empty-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================
   BROADCAST CONTROL CENTER
   ========================================================= */

.broadcast-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.broadcast-card-header {
    padding: 18px 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}


.broadcast-card-heading {
    margin-bottom: 16px;
}


.broadcast-card-heading h5 {
    margin-bottom: 4px;
}


/* =========================================================
   TABS
   ========================================================= */

.broadcast-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}


.broadcast-tab {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 38px;

    padding: 8px 11px;

    border: 0;

    color: rgba(255, 255, 255, .48);
    background: transparent;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color .15s ease,
        background .15s ease;
}


.broadcast-tab:hover {
    color: rgba(255, 255, 255, .82);
}


.broadcast-tab.active {
    color: #fff;
}


.broadcast-tab.active::after {
    content: "";

    position: absolute;

    left: 8px;
    right: 8px;
    bottom: -1px;

    height: 2px;

    border-radius: 2px 2px 0 0;

    background: #fff;
}


.broadcast-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    border-radius: 999px;

    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .08);

    font-size: 8px;
    font-weight: 800;
}


.broadcast-tab.active .broadcast-tab-count {
    color: #111827;
    background: #fff;
}


/* =========================================================
   PANELS
   ========================================================= */

.broadcast-card-body {
    flex: 1 1 auto;
    min-height: 0;
}


.broadcast-panel {
    display: none;
}


.broadcast-panel.active {
    display: block;
}


/* =========================================================
   SETTINGS
   ========================================================= */

.broadcast-settings {
    padding: 18px;
}


/* =========================================================
   CHAT
   ========================================================= */

.broadcast-chat.active {
    display: flex;
    flex-direction: column;
}


.broadcast-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 15px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}


.broadcast-chat-description {
    color: rgba(255, 255, 255, .42);

    font-size: 9px;
}


.broadcast-chat-live {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #ff647c;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}


.broadcast-chat-live::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


/* =========================================================
   EXISTING HOST CHAT
   ========================================================= */

#hostLiveChat {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;
}


#hostLiveComments {
    flex: 1 1 auto;

    min-height: 300px;
    max-height: 420px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 15px;

    scrollbar-width: thin;
}


#hostLiveComments::-webkit-scrollbar {
    width: 5px;
}


#hostLiveComments::-webkit-scrollbar-track {
    background: transparent;
}


#hostLiveComments::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(255, 255, 255, .12);
}


#hostLiveCommentForm {
    display: flex;

    gap: 8px;

    padding: 12px 14px;

    border-top: 1px solid rgba(255, 255, 255, .07);
}


#hostLiveCommentInput {
    flex: 1 1 auto;

    min-width: 0;
    height: 38px;

    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;

    outline: none;

    color: #fff;
    background: rgba(255, 255, 255, .045);

    font-size: 10px;
}


#hostLiveCommentInput::placeholder {
    color: rgba(255, 255, 255, .3);
}


#hostLiveCommentInput:focus {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
}


#hostLiveCommentButton {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    color: #111827;
    background: #fff;

    cursor: pointer;
}


#hostLiveCommentButton:hover {
    background: #e9edf2;
}


/* =========================================================
   ONLINE
   ========================================================= */

.broadcast-online.active {
    display: flex;
    flex-direction: column;
}


.broadcast-online-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 15px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}


.broadcast-online-description {
    color: rgba(255, 255, 255, .42);

    font-size: 9px;
}


.broadcast-online-counts {
    display: flex;
    align-items: center;

    gap: 6px;
}


.broadcast-online-count {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 999px;

    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);

    font-size: 8px;
    font-weight: 750;
}


.broadcast-online-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #39d98a;
}


.broadcast-live-dot {
    background: #ff647c;
}


/* =========================================================
   ONLINE VISITOR LIST
   ========================================================= */

#onlineVisitorsBody {
    min-height: 300px;
    max-height: 450px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 5px 0;

    scrollbar-width: thin;
}


#onlineVisitorsBody::-webkit-scrollbar {
    width: 5px;
}


#onlineVisitorsBody::-webkit-scrollbar-track {
    background: transparent;
}


#onlineVisitorsBody::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(255, 255, 255, .12);
}


/* =========================================================
   VISITOR
   ========================================================= */

.online-visitor-row {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 14px;

    border-bottom: 1px solid rgba(255, 255, 255, .045);
}


.online-visitor-row:last-child {
    border-bottom: 0;
}


.online-visitor-row:hover {
    background: rgba(255, 255, 255, .025);
}


.online-visitor-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);

    font-size: 12px;
}


.online-visitor-info {
    flex: 1 1 auto;
    min-width: 0;
}


.online-visitor-name {
    display: flex;
    align-items: center;

    gap: 6px;

    color: rgba(255, 255, 255, .86);

    font-size: 10px;
    font-weight: 750;
}


.online-visitor-status-dot {
    flex: 0 0 auto;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #39d98a;
}


.online-visitor-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    min-width: 0;

    margin-top: 3px;

    color: rgba(255, 255, 255, .34);

    font-size: 8px;
}


.online-visitor-page {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.online-visitor-separator {
    flex: 0 0 auto;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .2);
}


.visitor-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    gap: 4px;

    min-height: 28px;

    padding: 5px 8px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 7px;

    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .035);

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}


.visitor-action-button:hover {
    color: #fff;

    border-color: rgba(255, 255, 255, .18);

    background: rgba(255, 255, 255, .07);
}


/* =========================================================
   EMPTY ONLINE
   ========================================================= */

.online-visitors-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    padding: 30px;

    color: rgba(255, 255, 255, .32);

    text-align: center;
}


.online-visitors-empty i {
    margin-bottom: 10px;

    font-size: 20px;
}


.online-visitors-empty-title {
    color: rgba(255, 255, 255, .58);

    font-size: 10px;
    font-weight: 700;
}


.online-visitors-empty-copy {
    margin-top: 4px;

    font-size: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575px) {

    .broadcast-card {
        min-height: 540px;
    }


    .broadcast-card-header {
        padding: 15px 15px 0;
    }


    .broadcast-tab {
        flex: 1 1 0;
    }


    .broadcast-settings {
        padding: 15px;
    }


    .broadcast-online-header {
        align-items: flex-start;
    }


    .online-visitor-row {
        padding: 11px 12px;
    }

}

/* =========================================================
   BROADCAST CONTROL CENTER
   ========================================================= */

.broadcast-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.broadcast-card-header {
    padding: 18px 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}


.broadcast-card-heading {
    margin-bottom: 16px;
}


.broadcast-card-heading h5 {
    margin-bottom: 4px;
}


/* =========================================================
   TABS
   ========================================================= */

.broadcast-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}


.broadcast-tab {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 38px;

    padding: 8px 11px;

    border: 0;

    color: rgba(255, 255, 255, .48);
    background: transparent;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color .15s ease,
        background .15s ease;
}


.broadcast-tab:hover {
    color: rgba(255, 255, 255, .82);
}


.broadcast-tab.active {
    color: #fff;
}


.broadcast-tab.active::after {
    content: "";

    position: absolute;

    left: 8px;
    right: 8px;
    bottom: -1px;

    height: 2px;

    border-radius: 2px 2px 0 0;

    background: #fff;
}


.broadcast-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    border-radius: 999px;

    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .08);

    font-size: 8px;
    font-weight: 800;
}


.broadcast-tab.active .broadcast-tab-count {
    color: #111827;
    background: #fff;
}


/* =========================================================
   PANELS
   ========================================================= */

.broadcast-card-body {
    flex: 1 1 auto;
    min-height: 0;
}


.broadcast-panel {
    display: none;
}


.broadcast-panel.active {
    display: block;
}


/* =========================================================
   SETTINGS
   ========================================================= */

.broadcast-settings {
    padding: 18px;
}


/* =========================================================
   CHAT
   ========================================================= */

.broadcast-chat.active {
    display: flex;
    flex-direction: column;
}


.broadcast-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 15px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}


.broadcast-chat-description {
    color: rgba(255, 255, 255, .42);

    font-size: 9px;
}


.broadcast-chat-live {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #ff647c;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}


.broadcast-chat-live::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


/* =========================================================
   EXISTING HOST CHAT
   ========================================================= */

#hostLiveChat {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;
}


#hostLiveComments {
    flex: 1 1 auto;

    min-height: 300px;
    max-height: 420px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 15px;

    scrollbar-width: thin;
}


#hostLiveComments::-webkit-scrollbar {
    width: 5px;
}


#hostLiveComments::-webkit-scrollbar-track {
    background: transparent;
}


#hostLiveComments::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(255, 255, 255, .12);
}


#hostLiveCommentForm {
    display: flex;

    gap: 8px;

    padding: 12px 14px;

    border-top: 1px solid rgba(255, 255, 255, .07);
}


#hostLiveCommentInput {
    flex: 1 1 auto;

    min-width: 0;
    height: 38px;

    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;

    outline: none;

    color: #fff;
    background: rgba(255, 255, 255, .045);

    font-size: 10px;
}


#hostLiveCommentInput::placeholder {
    color: rgba(255, 255, 255, .3);
}


#hostLiveCommentInput:focus {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
}


#hostLiveCommentButton {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    color: #111827;
    background: #fff;

    cursor: pointer;
}


#hostLiveCommentButton:hover {
    background: #e9edf2;
}


/* =========================================================
   ONLINE
   ========================================================= */

.broadcast-online.active {
    display: flex;
    flex-direction: column;
}


.broadcast-online-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 15px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}


.broadcast-online-description {
    color: rgba(255, 255, 255, .42);

    font-size: 9px;
}


.broadcast-online-counts {
    display: flex;
    align-items: center;

    gap: 6px;
}


.broadcast-online-count {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 999px;

    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);

    font-size: 8px;
    font-weight: 750;
}


.broadcast-online-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #39d98a;
}


.broadcast-live-dot {
    background: #ff647c;
}


/* =========================================================
   ONLINE VISITOR LIST
   ========================================================= */

#onlineVisitorsBody {
    min-height: 300px;
    max-height: 450px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 5px 0;

    scrollbar-width: thin;
}


#onlineVisitorsBody::-webkit-scrollbar {
    width: 5px;
}


#onlineVisitorsBody::-webkit-scrollbar-track {
    background: transparent;
}


#onlineVisitorsBody::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(255, 255, 255, .12);
}


/* =========================================================
   VISITOR
   ========================================================= */

.online-visitor-row {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 14px;

    border-bottom: 1px solid rgba(255, 255, 255, .045);
}


.online-visitor-row:last-child {
    border-bottom: 0;
}


.online-visitor-row:hover {
    background: rgba(255, 255, 255, .025);
}


.online-visitor-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);

    font-size: 12px;
}


.online-visitor-info {
    flex: 1 1 auto;
    min-width: 0;
}


.online-visitor-name {
    display: flex;
    align-items: center;

    gap: 6px;

    color: rgba(255, 255, 255, .86);

    font-size: 10px;
    font-weight: 750;
}


.online-visitor-status-dot {
    flex: 0 0 auto;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #39d98a;
}


.online-visitor-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    min-width: 0;

    margin-top: 3px;

    color: rgba(255, 255, 255, .34);

    font-size: 8px;
}


.online-visitor-page {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.online-visitor-separator {
    flex: 0 0 auto;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .2);
}


.visitor-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    gap: 4px;

    min-height: 28px;

    padding: 5px 8px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 7px;

    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .035);

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}


.visitor-action-button:hover {
    color: #fff;

    border-color: rgba(255, 255, 255, .18);

    background: rgba(255, 255, 255, .07);
}


/* =========================================================
   EMPTY ONLINE
   ========================================================= */

.online-visitors-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    padding: 30px;

    color: rgba(255, 255, 255, .32);

    text-align: center;
}


.online-visitors-empty i {
    margin-bottom: 10px;

    font-size: 20px;
}


.online-visitors-empty-title {
    color: rgba(255, 255, 255, .58);

    font-size: 10px;
    font-weight: 700;
}


.online-visitors-empty-copy {
    margin-top: 4px;

    font-size: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575px) {

    .broadcast-card {
        min-height: 540px;
    }


    .broadcast-card-header {
        padding: 15px 15px 0;
    }


    .broadcast-tab {
        flex: 1 1 0;
    }


    .broadcast-settings {
        padding: 15px;
    }


    .broadcast-online-header {
        align-items: flex-start;
    }


    .online-visitor-row {
        padding: 11px 12px;
    }

}


/* =========================================================
   LIVE PLACEMENT
   ========================================================= */

.live-placement {
    margin-top: 24px;
    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, .08);
}


.live-placement-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 14px;
}


.live-placement-title {
    color: #fff;

    font-size: 11px;
    font-weight: 800;
}


.live-placement-description {
    margin-top: 3px;

    color:
        rgba(255, 255, 255, .45);

    font-size: 9px;
    line-height: 1.45;
}


.live-placement-options {
    display: grid;

    gap: 8px;
}


.live-placement-option {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 44px;

    padding:
        10px
        12px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .025);

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease;
}


.live-placement-option:hover {
    border-color:
        rgba(255, 255, 255, .15);

    background:
        rgba(255, 255, 255, .04);
}


.live-placement-option.active {
    border-color:
        rgba(255, 255, 255, .22);

    background:
        rgba(255, 255, 255, .06);
}


.live-placement-option input {
    margin: 0;
}


.live-placement-option-copy {
    min-width: 0;
}


.live-placement-option-title {
    color:
        rgba(255, 255, 255, .9);

    font-size: 10px;
    font-weight: 750;
}


.live-placement-option-description {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, .4);

    font-size: 8px;
}


.live-placement-path {
    display: none;

    margin-top: 12px;
}


.live-placement-path.visible {
    display: block;
}


.live-placement-path .form-control {
    font-size: 10px;
}


.live-auto-open {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 15px;

    padding:
        12px;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .035);
}


.live-auto-open .form-check-input {
    flex: 0 0 auto;

    margin-top: 2px;
}


.live-auto-open-title {
    color:
        rgba(255, 255, 255, .88);

    font-size: 10px;
    font-weight: 750;
}


.live-auto-open-description {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, .4);

    font-size: 8px;
    line-height: 1.45;
}


.live-placement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 14px;
}


.live-placement-status {
    color:
        rgba(255, 255, 255, .45);

    font-size: 9px;
}


.live-placement-status.saved {
    color: #47d992;
}


.live-placement-status.error {
    color: #ff647c;
}