/* Вкладка «YouTube канал» — панели, intro, help, фон */

#nb-dashboard-wrapper[data-parallax-theme="youtube_channel"] {
    --dash-bg-base: #12080a;
    --dash-bg-glow-a: rgba(255, 60, 60, 0.1);
    --dash-bg-glow-b: rgba(255, 120, 80, 0.07);
    --dash-bg-glow-c: rgba(255, 215, 0, 0.045);
}

body:has(#nb-dashboard-wrapper[data-parallax-theme="youtube_channel"]),
html:has(#nb-dashboard-wrapper[data-parallax-theme="youtube_channel"]) {
    background-color: #12080a !important;
    background-image:
        radial-gradient(ellipse 120% 80% at 14% 18%, rgba(255, 60, 60, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 88% 82%, rgba(255, 120, 80, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 50% 48%, rgba(255, 215, 0, 0.035) 0%, transparent 55%) !important;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-hero {
    margin-bottom: 18px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px 24px;
    margin-bottom: 4px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-hero-head__text {
    min-width: 0;
    flex: 1 1 auto;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-hero-head__text .nb-dash-hero__title {
    margin-bottom: 8px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-price-badge {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    min-width: 132px;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: right;
    border: 1px solid rgba(255, 210, 120, 0.42);
    background:
        linear-gradient(155deg, rgba(255, 214, 120, 0.22) 0%, rgba(120, 70, 20, 0.35) 55%, rgba(40, 20, 10, 0.55) 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 236, 180, 0.2);
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-price-badge__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 230, 180, 0.72);
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-price-badge__value {
    font-family: var(--nb-font-head, 'Syne', 'Clash Display', sans-serif);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.05;
    color: #ffe08a;
    letter-spacing: 0.01em;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-price-badge__note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.52);
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-intro {
    margin-bottom: 18px;
    padding: 0 !important;
    border: 1px solid rgba(255, 90, 90, 0.28) !important;
    background: linear-gradient(165deg, rgba(42, 14, 16, 0.94) 0%, rgba(12, 6, 8, 0.97) 100%) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 200, 180, 0.08) !important;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-intro__inner {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-intro__inner p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-intro__inner p:last-child {
    margin-bottom: 0;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-read-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: #ffd27a;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-read-link:hover {
    color: #ffe4a8;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-panel {
    margin-bottom: 16px;
    padding: 0 !important;
    border: 1px solid rgba(255, 120, 100, 0.16) !important;
    background: linear-gradient(165deg, rgba(28, 12, 12, 0.95) 0%, rgba(8, 5, 5, 0.98) 100%) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 210, 180, 0.06) !important;
    overflow: hidden;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-panel__inner {
    position: relative;
    z-index: 2;
    padding: 22px 22px 20px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-panel .nb-panel-title {
    margin-top: 0 !important;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-submit-btn {
    min-width: 220px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab #nbYoutubeChannelFormFeedback.is-visible {
    display: block !important;
    margin-bottom: 18px !important;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-field input[readonly] {
    opacity: 0.72 !important;
    cursor: default !important;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success {
    margin-top: 4px;
    text-align: center;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success__inner {
    position: relative;
    z-index: 2;
    padding: 48px 28px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success__icon {
    font-size: 56px;
    line-height: 1;
    color: #d1ff19;
    text-shadow: 0 0 28px rgba(209, 255, 25, 0.45);
    margin-bottom: 4px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success__title {
    margin: 0;
    font-family: var(--nb-font-head, 'Syne', 'Clash Display', sans-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success__desc {
    margin: 0 0 8px;
    max-width: 380px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success__again {
    margin-top: 8px;
    min-width: 200px;
}

#nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-success.is-visible {
    animation: nb-youtube-channel-success-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nb-youtube-channel-success-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Full-screen help modal (как rich-help в форме загрузки) */
.nb-youtube-channel-help {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500050;
    pointer-events: none;
}

.nb-youtube-channel-help.is-open {
    display: block;
    pointer-events: auto;
}

.nb-youtube-channel-help__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.nb-youtube-channel-help__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 28px));
    max-height: min(82vh, 720px);
    overflow: hidden auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.48);
    background: #14110e;
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.92),
        0 0 0 1px rgba(255, 215, 0, 0.08) inset,
        0 0 36px rgba(255, 215, 0, 0.14);
    padding: 22px 24px 24px;
    box-sizing: border-box;
    pointer-events: auto;
}

.nb-youtube-channel-help__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nb-youtube-channel-help__head h3 {
    margin: 0 36px 0 0;
    font-size: 1.15rem;
    color: #fff;
}

.nb-youtube-channel-help__close {
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.nb-youtube-channel-help__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nb-youtube-channel-help__body {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.nb-youtube-channel-help__body p {
    margin: 0 0 12px;
}

.nb-youtube-channel-help__body ol,
.nb-youtube-channel-help__body ul {
    margin: 0 0 14px;
    padding-left: 1.25em;
}

.nb-youtube-channel-help__body li {
    margin-bottom: 8px;
}

.nb-youtube-channel-help__warn {
    margin-bottom: 0 !important;
    color: rgba(255, 210, 170, 0.95) !important;
}

body.nb-youtube-channel-help-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    #nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-hero-head {
        flex-direction: column;
        align-items: stretch;
    }

    #nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-price-badge {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    #nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-submit-row {
        justify-content: stretch;
    }

    #nb-dashboard-wrapper .nb-youtube-channel-tab .nb-youtube-channel-submit-btn {
        width: 100%;
        min-width: 0;
    }
}
