/* ==========================================
   VIDEO ANALYZER AI - Design System
   ========================================== */

/* -- CSS Variables -- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 30, 0.7);
    --bg-card-hover: rgba(25, 25, 40, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    --accent-1: #7c3aed;
    --accent-2: #3b82f6;
    --accent-3: #06b6d4;
    --accent-4: #8b5cf6;
    --gradient-main: linear-gradient(135deg, #7c3aed, #3b82f6, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.15));
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.08));

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(124, 58, 237, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
}

/* -- Reset & Base -- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* -- Animated Background -- */
.app-container {
    position: relative;
    min-height: 100vh;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -2;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.08);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.06);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(6, 182, 212, 0.07);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* -- Header -- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* -- Main Content -- */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* -- Hero -- */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-icon {
    display: inline-block;
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-badge {
    font-size: 0.82rem;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    border-color: var(--border-glow);
    background: var(--gradient-subtle);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* -- Upload Section -- */
.upload-section {
    margin-bottom: 32px;
}

/* -- Dropzone -- */
.dropzone {
    border: 2px dashed rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent-1);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.dropzone:hover::before,
.dropzone.dragover::before {
    opacity: 1;
}

.dropzone-content {
    position: relative;
    z-index: 1;
}

.dropzone-icon {
    color: var(--accent-4);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.dropzone:hover .dropzone-icon {
    transform: translateY(-4px);
}

.dropzone-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.dropzone-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.dropzone-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.meta-separator {
    color: var(--text-muted);
}

/* -- Video Preview -- */
.video-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideUp 0.4s ease;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: 8px;
}

.btn-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.video-player {
    width: 100%;
    max-height: 400px;
    display: block;
    background: #000;
}

/* -- Analyze Button -- */
.btn-analyze {
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-main);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 16px;
}

.btn-analyze::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-analyze:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn-analyze:active:not(:disabled) {
    transform: translateY(0);
}

.btn-analyze:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-content,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* -- Spinner -- */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -- Progress Section -- */
.progress-section {
    margin-bottom: 32px;
    animation: slideUp 0.4s ease;
}

.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.7;
}

.step-indicator {
    flex-shrink: 0;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.4s ease;
}

.progress-step.active .step-dot {
    background: var(--accent-1);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.progress-step.completed .step-dot {
    background: #22c55e;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.elapsed-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* -- Results Section -- */
.results-section {
    animation: slideUp 0.6s ease;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-title {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-icon {
    font-size: 1.4rem;
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-file {
    font-weight: 500;
    color: var(--text-primary);
}

.result-size {
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: 8px;
    font-size: 0.78rem;
}

/* -- Result Cards -- */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.result-card:hover {
    border-color: var(--border-glow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.card-icon {
    font-size: 1.3rem;
    width: 42px;
    height: 42px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Summary */
.summary-text {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.summary-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-3);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 14px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--accent-4);
    font-weight: 500;
}

/* Skor Badge */
.skor-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-left: auto;
}

.skor-high {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.skor-mid {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.skor-low {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Quote Block */
.quote-block {
    margin-bottom: 20px;
}

.quote-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timestamp-small {
    color: var(--accent-3);
    font-size: 0.78rem;
    margin-left: 8px;
}

blockquote {
    padding: 16px 20px;
    border-left: 3px solid var(--accent-1);
    background: rgba(124, 58, 237, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    font-size: 1.02rem;
    line-height: 1.7;
    font-style: italic;
}

/* Info Grid */
.info-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 500;
    font-size: 0.92rem;
}

.badge-type {
    padding: 3px 12px;
    background: var(--gradient-subtle);
    border-radius: 8px;
    color: var(--accent-4);
    display: inline-block;
}

/* Analysis & Suggestion Blocks */
.analysis-block,
.suggestion-block {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.analysis-block {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.suggestion-block {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.analysis-label,
.suggestion-label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.analysis-block p,
.suggestion-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Struktur Badge */
.struktur-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.struktur-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.struktur-value {
    color: var(--accent-3);
    font-weight: 500;
}

/* Content Sections */
.sections-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.section-item {
    padding: 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.section-item:hover {
    border-color: var(--border-glow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.section-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.section-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.scene-timestamp {
    font-size: 0.8rem;
    color: var(--accent-3);
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.narasi-block {
    padding: 10px 14px;
    background: rgba(124, 58, 237, 0.04);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.narasi-label {
    font-weight: 600;
    color: var(--text-primary);
}

.teknik-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 6px;
    color: var(--accent-3);
    display: inline-block;
}

/* Lists Grid */
.lists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.list-block {
    padding: 16px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
}

.list-block.benefit {
    background: rgba(34, 197, 94, 0.04);
    border-color: rgba(34, 197, 94, 0.1);
}

.list-label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.list-block ul {
    list-style: none;
    padding: 0;
}

.list-block li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 4px 0;
    line-height: 1.5;
}

.extra-info {
    padding: 12px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.extra-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* Technique Grid */
.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tech-item {
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.tech-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.tech-value {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

/* Strength/Weakness Grid */
.strength-weakness {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sw-col ul {
    list-style: none;
    padding: 0;
}

.sw-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}

.sw-strength {
    border-color: #22c55e;
    color: #22c55e;
}

.sw-weakness {
    border-color: #f59e0b;
    color: #f59e0b;
}

.strength-item,
.weakness-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 6px 0;
    line-height: 1.5;
}

/* ATM Script Card */
.atm-card {
    border-color: rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0.05));
}

.atm-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.atm-note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.atm-note p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.script-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.script-section {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.hook-section {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

.body-section {
    border-left: 3px solid var(--accent-2);
    background: rgba(59, 130, 246, 0.04);
}

.cta-section {
    border-left: 3px solid #22c55e;
    background: rgba(34, 197, 94, 0.04);
}

.script-label {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.script-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Full Script */
.full-script {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.full-script-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.full-script-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border-glow);
    background: transparent;
    color: var(--accent-4);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: var(--gradient-subtle);
}

.full-script-text {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.jeda-marker {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 4px;
    color: #eab308;
    font-size: 0.78rem;
    font-weight: 600;
}

.produk-marker {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 4px;
    color: var(--accent-4);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Kesimpulan Card */
.kesimpulan-card {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04), rgba(6, 182, 212, 0.04));
}

.verdict-block {
    padding: 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.verdict-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.kesimpulan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.kesum-item {
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.kesum-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kesum-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.konsep-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient-main);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.tips-section {
    margin-top: 4px;
}

.tips-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tip-item:hover {
    border-color: var(--border-glow);
}

.tip-number {
    width: 26px;
    height: 26px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* -- Analyze Another Button -- */
.analyze-another {
    text-align: center;
    margin-top: 40px;
}

.btn-another {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--border-glow);
    background: transparent;
    color: var(--accent-4);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-another:hover {
    background: var(--gradient-subtle);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* -- Error Toast -- */
.error-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 500px;
    animation: toastIn 0.4s ease forwards;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.error-toast.show {
    transform: translateX(-50%) translateY(0);
}

@keyframes toastIn {
    to {
        transform: translateX(-50%) translateY(0);
    }
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    color: #fca5a5;
    line-height: 1.4;
}

.toast-close {
    font-size: 1.3rem;
    background: none;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* -- Footer -- */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
}

/* -- Animations -- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-in {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .dropzone {
        padding: 40px 20px;
    }

    .dropzone-icon svg {
        width: 48px;
        height: 48px;
    }

    .result-card {
        padding: 20px;
    }

    .objects-grid {
        grid-template-columns: 1fr;
    }

    .mood-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-badge {
        display: none;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .summary-meta {
        flex-direction: column;
    }

    .mood-grid {
        grid-template-columns: 1fr;
    }

    .preview-info .file-name {
        max-width: 150px;
    }
}

/* ==========================================
   Caption Telegram Card
   ========================================== */

.caption-card {
    border-color: rgba(51, 144, 236, 0.2);
}

.caption-card:hover {
    border-color: rgba(51, 144, 236, 0.4);
}

.caption-card .card-header {
    flex-wrap: wrap;
}

.caption-card .card-icon {
    background: linear-gradient(135deg, rgba(51, 144, 236, 0.2), rgba(36, 161, 222, 0.15));
}

.btn-copy-caption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 18px;
    border: 1px solid rgba(51, 144, 236, 0.3);
    background: rgba(51, 144, 236, 0.08);
    color: #3390ec;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-copy-caption:hover {
    background: rgba(51, 144, 236, 0.18);
    border-color: rgba(51, 144, 236, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(51, 144, 236, 0.15);
}

.btn-copy-caption.copied {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.caption-content {
    margin-top: 4px;
}

.caption-bubble {
    position: relative;
    background: linear-gradient(135deg, rgba(51, 144, 236, 0.06), rgba(36, 161, 222, 0.04));
    border: 1px solid rgba(51, 144, 236, 0.12);
    border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: 22px 24px;
    font-size: 0.96rem;
    line-height: 1.85;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.caption-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid rgba(51, 144, 236, 0.12);
    border-left: 8px solid transparent;
}

/* ==========================================
   AI Detection Card
   ========================================== */

.ai-detect-card {
    border-color: rgba(168, 85, 247, 0.2);
}

.ai-detect-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.ai-detect-card .card-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
}

.ai-badge {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-left: auto;
}

.ai-badge.ai-yes {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ai-badge.ai-no {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ai-badge.ai-maybe {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.ai-confidence {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-conf-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ai-conf-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.ai-conf-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-conf-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-3);
    font-variant-numeric: tabular-nums;
}

.ai-reason {
    margin-bottom: 16px;
}

.ai-reason p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ai-signs {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.ai-signs-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ai-signs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-signs li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.ai-signs li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-4);
}