/* 
 * SPDX-License-Identifier: Apache-2.0
 * Dowdown Media Downloader Style
 */

:root {
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Elegant Light Palette */
    --bg-primary: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(148, 163, 184, 0.18);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Branding Colors */
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --accent-violet: #8b5cf6;
    --accent-violet-hover: #7c3aed;
    --danger: #ef4444;
    
    /* Platform Colors */
    --yt-color: #ef4444;
    --ig-color: #d946ef;
    --tw-color: #0f1419;
    
    /* General Settings */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* ═══════════ APPLICATION WRAPPER ═══════════ */
.dowdown-app {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-col: column;
    flex-direction: column;
    gap: 20px;
    padding: 5px;
    animation: appFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes appFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ MAIN DOWNLOADER CARD ═══════════ */
.downloader-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.card-glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    margin-bottom: 12px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo-icon {
    font-size: 1.3rem;
}

.card-header h2 {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #f97316 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══════════ INPUT AREA ═══════════ */
.input-section {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.input-wrapper:focus-within {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), var(--shadow-md);
}

/* Dynamic Platform Themes */
.input-wrapper.youtube {
    border-color: var(--yt-color);
}
.input-wrapper.youtube:focus-within {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), var(--shadow-md);
}

.input-wrapper.instagram {
    border-color: var(--ig-color);
}
.input-wrapper.instagram:focus-within {
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.15), var(--shadow-md);
}

.input-wrapper.twitter {
    border-color: var(--tw-color);
}
.input-wrapper.twitter:focus-within {
    box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.15), var(--shadow-md);
}

.platform-indicator {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 10px;
    transition: var(--transition);
    flex-shrink: 0;
}

.input-wrapper.youtube .platform-indicator { background: rgba(239, 68, 68, 0.1); color: var(--yt-color); }
.input-wrapper.instagram .platform-indicator { background: rgba(217, 70, 239, 0.1); color: var(--ig-color); }
.input-wrapper.twitter .platform-indicator { background: rgba(15, 20, 25, 0.1); color: var(--tw-color); }

.input-wrapper input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 4px;
    background: transparent;
    min-width: 0;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    color: #ffffff;
    border: none;
    outline: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.action-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.3);
}

.action-btn-primary:active {
    transform: translateY(1px);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.action-btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 8px;
    padding-left: 4px;
}

/* ═══════════ LOADING / SPINNER AREA ═══════════ */
.loading-section {
    position: relative;
    z-index: 2;
    padding: 30px 10px;
    text-align: center;
}

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 76px;
    max-height: 76px;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--accent-violet);
    transition: stroke-dasharray 0.1s linear;
}

.circular-spinner {
    position: relative;
    width: 76px;
    height: 76px;
}

.circular-spinner .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-violet);
}

.loading-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.loading-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 320px;
}

/* ═══════════ OPTIONS PANEL (AFTER ANALYSIS) ═══════════ */
.options-panel {
    position: relative;
    z-index: 2;
    animation: optionsFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes optionsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Video Metadata Card */
.video-info-banner {
    display: flex;
    gap: 14px;
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 120px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
}

.video-meta-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.video-meta-details h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ═══════════ YOUTUBE TRIMMER ═══════════ */
.trimmer-box {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
}

.trimmer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trimmer-header h5 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Custom Switch Button */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background-color: var(--accent-orange);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.trimmer-body.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.trimmer-body {
    transition: var(--transition);
}

/* Custom Dual Range Slider */
.range-slider-container {
    position: relative;
    height: 6px;
    margin: 15px 5px 25px;
    background: #e2e8f0;
    border-radius: 3px;
}

.slider-track {
    position: absolute;
    height: 100%;
    background: var(--accent-orange);
    border-radius: 3px;
}

.slider-handle {
    position: absolute;
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
}

.slider-handle::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent-orange);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
}

.slider-handle::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-handle::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent-orange);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--shadow-sm);
}

/* Trimmer Time Inputs */
.trim-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.time-field {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}

.field-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 5px;
}

.time-field input {
    width: 60px;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.time-separator {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.trim-summary {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-align: center;
}

/* ═══════════ FORMAT TABS ═══════════ */
.format-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 18px;
}

.format-tab-btn {
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.format-tab-btn.active {
    background: #ffffff;
    color: var(--accent-violet);
    box-shadow: var(--shadow-sm);
}

/* Format Option Configurations */
.format-config h5 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.quality-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quality-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.quality-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.quality-option.active {
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.02);
}

.quality-option input[type="radio"] {
    display: none;
}

.q-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quality-option.active .q-label {
    color: var(--accent-violet);
}

.q-size {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
}

.quality-option.active .q-size {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
}

/* ═══════════ DOWNLOAD BUTTON ═══════════ */
.download-action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-violet) 100%);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
}

.download-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.download-action-btn:active {
    transform: translateY(1px);
}

.mt-4 { margin-top: 16px; }

/* ═══════════ GALLERY SECTION ═══════════ */
.gallery-section {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.gallery-header h3 {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gallery-counter {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Gallery Empty State */
.gallery-empty-state {
    text-align: center;
    padding: 30px 10px;
}

.empty-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

.gallery-empty-state p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 250px;
    margin: 0 auto;
}

/* Gallery Item Styling */
.gallery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    animation: itemSlideIn 0.4s ease-out both;
}

@keyframes itemSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.gallery-item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.item-thumb-wrapper {
    position: relative;
    width: 68px;
    height: 42px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.item-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    color: #ffffff;
}

.item-badge.video { background: var(--accent-orange); }
.item-badge.audio { background: var(--accent-violet); }

.item-details {
    flex-grow: 1;
    min-width: 0;
}

.item-details h5 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.item-details p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.gallery-btn {
    border: none;
    outline: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-btn.play {
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-violet);
}

.gallery-btn.play:hover {
    background: var(--accent-violet);
    color: #ffffff;
}

.gallery-btn.delete {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.gallery-btn.delete:hover {
    background: var(--danger);
    color: #ffffff;
}

/* ═══════════ MEDIA OVERLAY MODAL ═══════════ */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.media-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    outline: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-right: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-body {
    width: 100%;
}

.modal-body video,
.modal-body audio {
    width: 100%;
    border-radius: var(--radius-md);
    background: #0f172a;
    outline: none;
}

.modal-body audio {
    background: #f1f5f9;
    padding: 10px;
}

/* ═══════════ SUCCESS & ERROR FEEDBACK ANIMATIONS ═══════════ */
.success-checkmark {
    width: 76px;
    height: 76px;
    margin: 10px auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #22c55e;
    animation: fill-checkmark .4s ease-in-out .4s forwards, scale-checkmark .3s ease-in-out forwards;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: stroke-checkmark .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: #ffffff;
    animation: stroke-checkmark .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

.error-crossmark {
    width: 76px;
    height: 76px;
    margin: 10px auto;
}

.crossmark-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: var(--danger);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--danger);
    animation: fill-crossmark .4s ease-in-out .4s forwards, scale-checkmark .3s ease-in-out forwards;
}

.crossmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: var(--danger);
    fill: none;
    animation: stroke-checkmark .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.crossmark-line1, .crossmark-line2 {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: #ffffff;
    animation: stroke-checkmark .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke-checkmark {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale-checkmark {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill-checkmark {
    100% {
        box-shadow: inset 0px 0px 0px 40px #22c55e;
    }
}

@keyframes fill-crossmark {
    100% {
        box-shadow: inset 0px 0px 0px 40px var(--danger);
    }
}
