﻿.tut-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.tut-modal {
    width: min(520px, 100%);
    background: #101214;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
    overflow: hidden;
}

.tut-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.tut-title {
    font-weight: 700;
    font-size: 16px;
}

.tut-close {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,.75);
    font-size: 14px;
}

.tut-body {
    padding: 14px 16px 10px 16px;
}

/* Animation card: responsive aspect ratio box */
.tut-animWrap {
    width: 100%;
    background: rgba(255,255,255,.04);
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    /* KEY: lock to SVG aspect ratio (360 / 220) */
    aspect-ratio: 360 / 220;
    /* Set a max height so it doesn't get huge on desktop */
    max-height: 260px;
    /* And a min height so it doesn't get tiny */
    min-height: 200px;
    display: grid;
}

/* Inner safe padding */
.tut-animInner {
    width: 100%;
    height: 100%;
    padding: 14px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
}

/* Image fits inside the padded area */
.tut-image {
    width: 100% !important;
    height: 100% !important; /* OK again because aspect ratio is stable */
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

.tut-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* keep, even if you’re not using lottie right now */
.tut-lottieHost {
    width: 100%;
    height: 100%;
}

.tut-copy {
    margin-top: 12px;
}

.tut-bodyText {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    line-height: 1.35;
}

.tut-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0 0 0;
}

.tut-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
}

    .tut-dot.active {
        background: rgba(255,255,255,.9);
    }

.tut-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.tut-spacer {
    flex: 1;
}

.tut-primary {
    background: #2d7dff;
    border: 0;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.tut-secondary {
    background: rgba(255,255,255,.08);
    border: 0;
    color: rgba(255,255,255,.9);
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.tut-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(255,255,255,.9);
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}
