/* ============================================
   CREATE-MODE SHEET — выбор Фото / Видео
   ============================================ */

.create-mode-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: auto;
}
.create-mode-sheet.hidden {
    display: none;
}

.create-mode-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: cmSheetFadeIn 0.18s ease-out;
}

.create-mode-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #1a1a2a;
    border-radius: 22px 22px 0 0;
    padding: 12px 18px calc(28px + env(safe-area-inset-bottom, 0)) 18px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    animation: cmSheetSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.create-mode-sheet-handle {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 14px;
}

.create-mode-sheet-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}
.create-mode-sheet-sub {
    margin: 6px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.create-mode-sheet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.create-mode-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px 16px;
    background: linear-gradient(160deg, rgba(157, 92, 255, 0.18) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.create-mode-option:active {
    transform: scale(0.96);
    filter: brightness(1.15);
}
.create-mode-emoji {
    font-size: 32px;
    line-height: 1;
}
.create-mode-label {
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
}
.create-mode-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 130px;
}
.create-mode-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
}

@keyframes cmSheetFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cmSheetSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ============================================
   VIEW: CREATE VIDEO
   ============================================ */

#view-create-video .video-tier-row,
#view-create-video .video-duration-row {
    margin-top: 12px;
}

.video-tier-options,
.video-duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.video-tier-chip,
.video-duration-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.video-tier-chip:active,
.video-duration-chip:active {
    transform: scale(0.95);
}
.video-tier-chip.is-selected,
.video-duration-chip.is-selected {
    background: linear-gradient(120deg, rgba(157, 92, 255, 0.5), rgba(99, 102, 241, 0.4));
    border-color: rgba(157, 92, 255, 0.7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.video-cost-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.video-cost-line .bonus-star {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}
.video-cost-line.is-loading {
    opacity: 0.5;
}
