#ypTopbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100060;
    pointer-events: none;
    opacity: 0;
    background: rgba(239, 85, 38, .14);
    transition: opacity .2s ease;
}

#ypTopbar > span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #ef5526, #ff8c42);
    box-shadow: 0 0 10px rgba(239, 85, 38, .8);
    will-change: transform;
}

#ypTopbar.is-active { opacity: 1; }
#ypTopbar.is-active > span { animation: ypbar 8s cubic-bezier(.12, .7, .25, 1) forwards; }

#ypTopbar.is-done > span {
    transform: scaleX(1);
    animation: none;
    transition: transform .18s ease-out, opacity .3s ease .18s;
    opacity: 0;
}

@keyframes ypbar {
    0%   { transform: scaleX(0); }
    35%  { transform: scaleX(.55); }
    70%  { transform: scaleX(.82); }
    100% { transform: scaleX(.96); }
}

.fb-launch {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef5526 0%, #c73f16 100%);
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(239, 85, 38, .34);
    transition: transform .18s ease, box-shadow .18s ease;
}

.fb-launch, .fb-launch i, .fb-launch:hover, .fb-launch:focus { color: #fff; }
.fb-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239, 85, 38, .42); }

.wc-overlay, .fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 100070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 26, .55);
    backdrop-filter: blur(3px);
}

.wc-overlay[hidden], .fb-overlay[hidden] { display: none; }

.wc-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 30px 26px 24px;
    border-radius: 22px;
    background: linear-gradient(165deg, #fff7f4 0%, #ffffff 45%);
    box-shadow: 0 24px 60px rgba(17, 17, 26, .3);
    text-align: center;
    animation: wcIn .28s cubic-bezier(.22, .61, .36, 1);
}

@keyframes wcIn {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.wc-close, .fb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 22, 28, .06);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.wc-modal .wc-close, .wc-modal .wc-close i { color: #14161c; }

.wc-logo img { height: 34px; width: auto; margin-bottom: 6px; }

.wc-face {
    display: block;
    width: 92px;
    height: 92px;
    margin: 2px auto 10px;
}

.wc-face dotlottie-wc { width: 92px; height: 92px; display: block; }

.wc-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: #fff0e9;
    border: 1px solid #f8d3c4;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.wc-modal .wc-badge { color: #c73f16; }

.wc-modal h3 { margin: 12px 0 6px; font-size: 2.3rem; font-weight: 800; color: #14161c; }
.wc-modal p { margin: 0 0 16px; font-size: 1.35rem; line-height: 1.55; color: #5b6272; }

.wc-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed #f0c9b8;
    text-align: left;
    font-size: 1.22rem;
    line-height: 1.5;
}

.wc-modal .wc-hint { color: #5b6272; }
.wc-modal .wc-hint i { color: #ef5526; margin-top: 2px; }
.wc-modal .wc-hint b { color: #14161c; }

.wc-primary {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef5526 0%, #c73f16 100%);
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(239, 85, 38, .3);
}

.wc-modal .wc-primary { color: #fff; }

.wc-secondary {
    margin-top: 10px;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 1.28rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.wc-modal .wc-secondary { color: #5b6272; }

.fb-modal {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(17, 17, 26, .3);
    animation: wcIn .28s cubic-bezier(.22, .61, .36, 1);
}

.fb-head {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ef5526 0%, #ff8c42 100%);
}

.fb-head-face {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.fb-head-face dotlottie-wc { width: 42px; height: 42px; display: block; }

.fb-head-text { min-width: 0; }
.fb-head-text h3 { margin: 3px 0 1px; font-size: 1.85rem; font-weight: 800; }
.fb-head-text p { margin: 0; font-size: 1.2rem; }

.fb-head .fb-head-text h3,
.fb-head .fb-head-text p { color: #fff; }

.fb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fb-head .fb-badge { color: #fff; }
.fb-head .fb-close, .fb-head .fb-close i { color: #fff; }
.fb-head .fb-close { background: rgba(255, 255, 255, .2); }

.fb-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.fb-block { margin-bottom: 17px; }

.fb-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.28rem;
    font-weight: 700;
    color: #14161c;
}

.fb-body label span { font-weight: 500; color: #9aa0ae; }

.fb-moods { display: flex; gap: 8px; }

.fb-mood {
    flex: 1 1 0;
    height: 52px;
    border: 1px solid #e4e5ec;
    border-radius: 13px;
    background: #fff;
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
    filter: grayscale(1);
    opacity: .55;
    transition: all .16s ease;
}

.fb-mood:hover { filter: none; opacity: 1; }

.fb-mood.is-on {
    filter: none;
    opacity: 1;
    border-color: #ef5526;
    background: #fff6f2;
    transform: translateY(-2px);
}

.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.fb-chip {
    padding: 8px 15px;
    border: 1px solid #e4e5ec;
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 1.22rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s ease;
}

.fb-chips .fb-chip { color: #14161c; }

.fb-chips .fb-chip.is-on {
    background: #ef5526;
    border-color: #ef5526;
    color: #fff;
}

.fb-body textarea, .fb-body input[type="text"], .fb-body input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e4e5ec;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.3rem;
    outline: none;
    resize: vertical;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.fb-body textarea { color: #14161c; }
.fb-body input { color: #14161c; }

.fb-body textarea:focus, .fb-body input:focus {
    border-color: #ef5526;
    box-shadow: 0 0 0 3px rgba(239, 85, 38, .12);
}

.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.fb-error {
    margin: 0 0 12px;
    font-size: 1.22rem;
    font-weight: 600;
    color: #d93025;
}

.fb-error[hidden] { display: none; }

.fb-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef5526 0%, #c73f16 100%);
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(239, 85, 38, .3);
}

.fb-body .fb-submit, .fb-body .fb-submit i { color: #fff; }
.fb-submit:disabled { opacity: .6; cursor: default; }

@media (max-width: 575px) {
    .fb-launch { left: 12px; bottom: 16px; height: 40px; padding: 0 13px; font-size: 1.18rem; }
    .fb-grid { grid-template-columns: 1fr; }
    .wc-modal { padding: 26px 18px 20px; }
    .fb-modal { max-height: 94vh; }
    .fb-mood { height: 46px; font-size: 1.8rem; }
}

.fb-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 14px;
    border: 1.5px dashed #d7dbe3;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.fb-drop:hover,
.fb-drop.is-over { border-color: #ef5526; background: #fff6f2; }

.fb-drop > i { font-size: 20px; color: #ef5526; }

.fb-drop-title { font-size: 13.5px; font-weight: 600; color: #2c2f36; }

.fb-drop-hint { font-size: 11.5px; color: #8b909a; }

.fb-drop-hint b { color: #6b7079; font-weight: 600; }

.fb-drop.is-full { opacity: .55; cursor: default; border-style: solid; }

.fb-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.fb-thumbs:empty { margin-top: 0; }

.fb-thumb {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e8ec;
    background: #f2f3f5;
}

.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fb-thumb-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 22, 28, .72);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-thumb-del:hover { background: #ef5526; }

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(7px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity .25s ease-out;
}

#loading.is-active { opacity: 1; pointer-events: all; transition: opacity .15s ease-in; }

#loading.is-hidden { opacity: 0; pointer-events: none; }

.yp-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.yp-loader-logo {
    width: 360px;
    max-width: 74vw;
    height: auto;
    animation: yp-breathe 1.8s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes yp-breathe {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.yp-loader-bar {
    position: relative;
    width: 260px;
    max-width: 70vw;
    height: 5px;
    border-radius: 99px;
    background: rgba(239, 85, 38, .15);
    overflow: hidden;
}

.yp-loader-bar i {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(239, 85, 38, 0), #ef5526 45%, #ff9a3d 100%);
    animation: yp-slide 1.15s cubic-bezier(.45, .05, .35, 1) infinite;
    will-change: transform;
}

@keyframes yp-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
    .yp-loader-logo { animation: none; }
    .yp-loader-bar i { animation-duration: 2s; }
}
