:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-radius: 10px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Stage Colors */
    --stage-briefing: #95a5a6;
    --stage-research: #3498db;
    --stage-strategy: #9b59b6;
    --stage-creative: #e67e22;
    --stage-presentation: #27ae60;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
}

nav {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.nav-active {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 4px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-top: 0;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }

button, .button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

button:hover, .button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

button.secondary, .button.secondary { background-color: var(--secondary-color); }
button.secondary:hover, .button.secondary:hover { background-color: #2c3e50; }

button.danger, .button.danger { background-color: var(--danger-color); }
button.danger:hover, .button.danger:hover { background-color: #c0392b; }

button.success, .button.success { background-color: var(--success-color); }
button.success:hover, .button.success:hover { background-color: #219150; }

/* Loop Navigation */
.loop-nav {
    margin-bottom: 2rem;
    display: flex;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.loop-nav a {
    flex: 1;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nav-label {
    flex: 1;
}

.nav-status {
    flex-shrink: 0;
    margin-left: auto;
}

.loop-nav a:last-child {
    border-right: none;
}

.loop-nav a:hover:not(.locked) {
    background: #e9ecef;
    color: var(--primary-color);
}

.loop-nav a.active {
    background: #fff;
    color: var(--accent-color);
    box-shadow: inset 0 -3px 0 var(--accent-color);
}

.loop-nav a.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f3f5;
    color: #adb5bd;
}

.loop-nav a.locked::before {
    content: "🔒";
    font-size: 0.8rem;
}

.loop-nav .nav-label {
    font-size: 0.9rem;
}

.loop-nav .nav-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    text-transform: uppercase;
}

.badge-floating {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 2 !important;
}

.status-approved { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-locked { background: #e2e3e5; color: #383d41; }
/* Split View for Briefing */
.split-view {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .split-view {
        grid-template-columns: 1fr;
    }
}

.chat-sidebar-loop {
    display: flex;
    flex-direction: column;
    height: 700px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    position: sticky;
    top: 1rem;
}

.chat-sidebar-loop .chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.chat-sidebar-loop .chat-form-container {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.brief-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.approval-card {
    border-top: 4px solid var(--accent-color);
}

.section-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--primary-color);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
}

.top-stepper {
    background: white;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    z-index: 2;
}

.step.active .step-icon {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.step.future {
    opacity: 0.4;
}

.step.future .step-icon {
    background: #f1f3f5;
    color: #adb5bd;
}

.step.completed .step-icon {
    background: var(--success-color);
    color: white;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    background: var(--success-color);
}

/* New badge for Verdict */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-critical { background-color: #f8d7da; color: #721c24; }
.badge-good { background-color: #fff3cd; color: #856404; }
.badge-exceptional { background-color: #d4edda; color: #155724; }
.badge-briefing { background-color: #e9ecef; color: #495057; border: 1px solid #dee2e6; }
.badge-research { background-color: #ebf8ff; color: #2b6cb0; border: 1px solid #bee3f8; }
.badge-strategy { background-color: #faf5ff; color: #6b46c1; border: 1px solid #e9d8fd; }
.badge-creative { background-color: #fffaf0; color: #c05621; border: 1px solid #feebc8; }
.badge-presentation { background-color: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }

/* Grid for Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.project-card-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Role Banner */
.role-banner {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
    background: #e9ecef;
    border-radius: 20px;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-color), #5dade2);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease-in-out;
}

/* Chat Styles */
.chat-container {
    height: 600px;
    overflow-y: auto;
    border: 1px solid #edf2f7;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fdfdfd;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.message-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.message-wrapper.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-wrapper.assistant, .message-wrapper.persona {
    margin-right: auto;
}

.message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.5;
}

.message.user {
    background-color: var(--accent-color);
    color: white;
    border-bottom-right-radius: 2px;
}

.message.assistant, .message.persona {
    background-color: #f1f3f5;
    color: var(--text-color);
    border-bottom-left-radius: 2px;
}

.message-role {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Alme Avatar Styles */
.alme-avatar {
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
    flex-shrink: 0;
}

.alme-avatar.header {
    width: 40px;
    height: 40px;
}

.alme-avatar.message {
    width: 32px;
    height: 32px;
    margin-top: 2px; /* Slight adjustment to align with text line */
}

.alme-avatar.hero {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
}

.intro-block {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
    max-width: 500px;
    margin: 0 auto;
}

.intro-block h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.intro-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chat-header-info h1 {
    margin: 0;
    font-size: 1.5rem;
}

.chat-header-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Fact & Approval Styles */
.fact-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: border-color 0.3s;
}

.fact-item:hover {
    border-color: var(--accent-color);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.badge-proposed { background-color: #fff3cd; color: #856404; }
.badge-approved { background-color: #d4edda; color: #155724; }
.badge-detected { background-color: #d1ecf1; color: #0c5460; }
.badge-rejected { background-color: #f8d7da; color: #721c24; }

/* Grid Layouts */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.persona-card {
    border-top: 4px solid var(--accent-color);
}

.strategy-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Avatar Evaluations */
.score-bar {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

.score-fill {
    background: linear-gradient(90deg, var(--accent-color), #5dade2);
    height: 100%;
    transition: width 1s ease-out;
}

.verdict-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.verdict-positive { background-color: #d4edda; color: #155724; }
.verdict-neutral { background-color: #fff3cd; color: #856404; }
.verdict-negative { background-color: #f8d7da; color: #721c24; }

/* Presentation Page */
.presentation-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.presentation-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.recommendation-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.recommendation-box h2 {
    color: white;
    border: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: bold;
}

.navigation-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .section-grid { grid-template-columns: 1fr; }
    nav { flex-direction: column; gap: 1rem; text-align: center; }
    nav a { margin: 0 0.5rem; }
}

.typing {
    font-style: italic;
    color: var(--text-muted);
}
.typing::after {
    animation: typing 1.5s infinite;
}
@keyframes typing {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

/* Landing Page Styles */
.public-body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    background: transparent;
    box-shadow: none;
}

.landing-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

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

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #a1a1aa;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-glow {
    position: relative;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-primary-glow:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    padding: 0;
}

.landing-section {
    padding: 6rem 0;
}

/* Grid Layouts */
.features-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.glass-card p {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.6;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #a855f7;
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.05));
    border-radius: 40px;
    padding: 6rem 2rem;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .cta-section h2 { font-size: 2rem; }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Confidence Scores */
.confidence-low { color: #e53e3e !important; }
.confidence-med { color: #d69e2e !important; }
.confidence-high { color: #38a169 !important; }

.confidence-bar-low .score-fill { background: #e53e3e !important; }
.confidence-bar-med .score-fill { background: #d69e2e !important; }
.confidence-bar-high .score-fill { background: #38a169 !important; }

.confidence-explanation {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.confidence-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.badge-low { background: #fff5f5; color: #e53e3e; border: 1px solid #feb2b2; }
.badge-med { background: #fffaf0; color: #d69e2e; border: 1px solid #fbd38d; }
.badge-high { background: #f0fff4; color: #38a169; border: 1px solid #9ae6b4; }
.badge-pending { background: #edf2f7; color: #4a5568; border: 1px solid #cbd5e0; }


.badge-container {
    position: relative;
}

.asset-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.asset-actions .button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.asset-actions .button.danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.asset-actions .button.danger:hover {
    background-color: #dc2626;
    color: white;
    transform: translateY(-1px);
}

.delete-btn {
    display: none; /* Removed from image overlay */
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    min-height: 420px;
    perspective: 1000px;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Mobile/JS toggle support */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    pointer-events: auto;
}

.flip-card-front {
    background-color: #f1f1f1;
    color: black;
    z-index: 1;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay label for assets (channel, KV) */
.asset-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    z-index: 2;
}

.flip-card-content {
    overflow-y: auto;
    max-height: 260px;
    padding-right: 4px;
    width: 100%;
}

.flip-card-footer {
    margin-top: auto;
    padding-top: 10px;
    width: 100%;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 3px solid white;
}

.feedback-summary {
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
}
