:root {
    --bg-dark: #0d1117;
    --surface-dark: #161b22;
    --border-color: #3d4450;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #ffffff;
    --primary-blue: #0066CC;
    --accent-green: #00CC66;
    --warning-amber: #FFA500;
    --error-red: #ff4444;
    --purple: #9333ea;
}

.text-purple {
    color: var(--purple) !important;
}

.bg-purple {
    background-color: var(--purple) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive container widths */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.title-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
}

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-blue);
    background: transparent;
    border-bottom-color: var(--primary-blue);
}

/* Hamburger menu - high contrast for dark theme */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.card {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-select,
.form-control {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.625rem 0.875rem;
}

.form-select:focus,
.form-control:focus {
    background-color: var(--bg-dark);
    border-color: var(--accent-green);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(0, 204, 102, 0.25);
}

.form-select option {
    background-color: var(--surface-dark);
    color: var(--text-primary);
}

.form-range {
    height: 0.5rem;
}

.form-range::-webkit-slider-thumb {
    background: var(--accent-green);
}

.form-range::-webkit-slider-runnable-track {
    background: var(--primary-blue);
}

.form-check-input {
    background-color: var(--bg-dark);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-success {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
    font-weight: 600;
}

.btn-success:hover {
    background-color: #00b359;
    border-color: #00b359;
    color: #000;
}

.btn-outline-success {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-outline-success:hover {
    background-color: var(--accent-green);
    color: #000;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn.playing {
    background-color: var(--accent-green) !important;
    color: #000 !important;
}

.btn.playing .play-icon::before {
    content: "⏹";
}

.music-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.script-textarea {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
}

.console-log {
    background-color: #000;
    color: #00FF00;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.75rem;
    padding: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.log-entry {
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.log-info {
    color: #00FF00;
}

.log-warning {
    color: var(--warning-amber);
}

.log-error {
    color: var(--error-red);
}

.log-success {
    color: var(--accent-green);
}

.progress {
    background-color: var(--bg-dark);
    height: 8px;
}

.progress-bar {
    background-color: var(--primary-blue);
}

.alert-success {
    background-color: rgba(0, 204, 102, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-info {
    background-color: rgba(0, 102, 204, 0.15);
    border-color: var(--primary-blue);
    color: #66b3ff;
}

.output-file-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.output-file-card .filename {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
}

.output-file-card .format-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.format-badge.mp3 {
    background-color: var(--primary-blue);
    color: white;
}

.format-badge.wav {
    background-color: var(--accent-green);
    color: #000;
}

.output-file-card .permutation {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.output-file-card .actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.output-file-card .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-info {
    color: #66b3ff !important;
}

@media (max-width: 768px) {
    .title-gradient {
        font-size: 1.75rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-tabs .nav-link svg {
        display: none;
    }
    
    .user-badge {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem !important;
    }
    
    .user-badge .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .user-badge .btn svg {
        margin-right: 0 !important;
    }
    
    .user-badge span.text-secondary {
        display: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-range {
        width: 100%;
    }
    
    .output-file-card .actions {
        flex-direction: column;
    }
    
    .output-file-card .actions .btn {
        width: 100%;
    }
    
    .console-log {
        font-size: 0.75rem;
        max-height: 150px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .title-gradient {
        font-size: 1.5rem;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .script-textarea {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Waveform Visualization */
.waveform-container {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 8px;
    overflow: hidden;
    height: 50px;
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.3), rgba(0, 204, 102, 0.3));
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Output File Cards */
.output-file-card {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(0, 204, 102, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.output-file-card:hover {
    border-color: rgba(0, 204, 102, 0.5);
    background: rgba(13, 17, 23, 1);
}

.output-file-card .filename {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    word-break: break-all;
}

.output-file-card .permutation {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.output-file-card .format-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.output-file-card .format-badge.mp3 {
    background: rgba(0, 102, 204, 0.3);
    color: #ffffff;
}

.output-file-card .format-badge.wav {
    background: rgba(0, 204, 102, 0.3);
    color: #ffffff;
}

/* Play button animation */
.preview-output-btn svg {
    transition: transform 0.2s ease;
}

.preview-output-btn:hover svg {
    transform: scale(1.1);
}

/* Advanced Studio Script Editor - Larger and Better Contrast */
.script-textarea-advanced {
    min-height: 500px;
    max-height: 900px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.script-textarea-advanced:focus {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.2);
}

.script-textarea-advanced::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Advanced Studio Contrast Improvements */
.container .text-secondary,
.card-body .text-secondary {
    color: rgba(255, 255, 255, 0.75) !important;
}

.compact-card .form-label {
    color: #e0e6ed !important;
    font-weight: 500;
}

.compact-card .form-select,
.compact-card .form-control {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.compact-card .form-select:focus,
.compact-card .form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(0, 204, 102, 0.2);
}

/* Button contrast improvements */
.btn-outline-secondary {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Card header contrast */
.compact-card .card-header {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 204, 102, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Small text improvements */
.small, small {
    color: rgba(255, 255, 255, 0.7);
}

/* Info badge improvements */
.text-info {
    color: #66b3ff !important;
}

/* ========================================
   HIGH CONTRAST IMPROVEMENTS
   ======================================== */

/* Global text contrast improvements */
.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: #9ca3af !important;
}

/* Form placeholder improvements */
::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1;
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Badge contrast improvements */
.badge.bg-secondary {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}

.badge.bg-success {
    background-color: var(--accent-green) !important;
    color: #000000 !important;
}

/* Alert improvements */
.alert-warning {
    background-color: rgba(255, 165, 0, 0.15);
    border-color: var(--warning-amber);
    color: #ffd666;
}

.alert-danger {
    background-color: rgba(255, 68, 68, 0.15);
    border-color: var(--error-red);
    color: #ff7777;
}

/* Dropdown menu improvements */
.dropdown-menu {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary-blue);
}

.dropdown-item-text {
    color: var(--text-secondary) !important;
}

/* Table contrast improvements */
.table {
    color: var(--text-primary);
}

.table th {
    color: var(--text-primary);
    font-weight: 600;
}

.table td {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* List group improvements */
.list-group-item {
    background: var(--surface-dark);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Feature list improvements */
.plan-features li {
    color: var(--text-secondary);
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Increase text size for readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Improve card contrast on mobile */
    .card {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.12);
    }
    
    .card-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 0.625rem 1rem;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 0.5rem 0.875rem;
    }
    
    /* Form improvements for mobile */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px;
        padding: 0.75rem 1rem;
    }
    
    /* Text contrast boost for mobile */
    .text-secondary {
        color: #b5bdc8 !important;
    }
    
    small,
    .small {
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 0.9rem;
    }
    
    /* Navigation improvements */
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.6);
        background-color: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.8);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Hero section mobile improvements */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* Pricing cards mobile */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .plan-price {
        font-size: 2.25rem !important;
    }
    
    .plan-description {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    
    /* Feature cards mobile */
    .feature-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    
    /* Footer improvements */
    .main-footer {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .main-footer a {
        color: rgba(255, 255, 255, 0.75);
    }
}

@media (max-width: 576px) {
    /* Extra small screen improvements */
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Card improvements */
    .card-body {
        padding: 1rem;
    }
    
    /* Button stacking */
    .btn-group-vertical-sm {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-vertical-sm .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Table responsiveness */
    .table-responsive-stack td,
    .table-responsive-stack th {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
    }
    
    /* Form label improvements */
    .form-label {
        font-size: 0.95rem;
        color: #e0e6ed !important;
    }
    
    /* Step indicators mobile */
    .step-label {
        font-size: 11px !important;
    }
    
    .step-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
}

/* Loading Skeleton Components */
.skeleton {
    background: linear-gradient(90deg, 
        var(--surface-dark) 0%, 
        rgba(255,255,255,0.08) 50%, 
        var(--surface-dark) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.skeleton-sm { height: 12px; }
.skeleton-text.skeleton-lg { height: 20px; }
.skeleton-text.skeleton-xl { height: 24px; }

.skeleton-text.w-25 { width: 25%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-100 { width: 100%; }

.skeleton-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.skeleton-card-header {
    height: 48px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.skeleton-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    height: 44px;
    border-radius: 8px;
    min-width: 120px;
}

.skeleton-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 40px;
    padding: 8px;
}

.skeleton-waveform-bar {
    width: 4px;
    height: 100%;
    border-radius: 2px;
    animation: skeleton-wave 1s ease-in-out infinite;
}

.skeleton-waveform-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.skeleton-waveform-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.skeleton-waveform-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.skeleton-waveform-bar:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.skeleton-waveform-bar:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.skeleton-waveform-bar:nth-child(6) { height: 80%; animation-delay: 0.5s; }
.skeleton-waveform-bar:nth-child(7) { height: 45%; animation-delay: 0.6s; }
.skeleton-waveform-bar:nth-child(8) { height: 65%; animation-delay: 0.7s; }

@keyframes skeleton-wave {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.6; transform: scaleY(0.6); }
}

.skeleton-voice-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-voice-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-voice-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-music-preview {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-music-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skeleton-music-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-question {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
}

.skeleton-question-label {
    height: 14px;
    width: 40%;
    margin-bottom: 12px;
    border-radius: 3px;
}

.skeleton-question-input {
    height: 42px;
    width: 100%;
    border-radius: 6px;
}

.skeleton-questions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    border-radius: inherit;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse-scale 1s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots .dot {
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dots .dot:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
