/* ============================================
   DDSMS | SAFETY PRESENTATION — REVITALIZED UI
   Sistema de Design Moderno para Apresentações
   ============================================ */

/* ============================================
   VARIÁVEIS CSS - DESIGN SYSTEM
   ============================================ */
:root {
    /* Cores Principais - Petrobras Identity */
    --color-primary: #008542;
    --color-secondary: #FFCC29;
    --color-accent: #00a552;

    /* Cores de Status */
    --color-danger: #ef4444;
    --color-warning: #FFCC29;
    --color-success: #008542;

    /* Cores de Superfície */
    --color-background: #f0f4f8;
    --color-surface: #ffffff;
    --color-surface-alt: #f8fafc;

    /* Glass */
    --glass-bg: rgba(255,255,255,0.6);
    --glass-border: rgba(255,255,255,0.35);
    --glass-blur: 18px;

    /* Cores de Texto */
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-tertiary: #94a3b8;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.07);
    --shadow-lg: 0 10px 28px rgba(0,0,0,.09);
    --shadow-xl: 0 20px 40px rgba(0,0,0,.11);
    --shadow-2xl: 0 28px 56px rgba(0,0,0,.16);
    --shadow-colored: 0 8px 24px rgba(0,133,66,.18);

    /* Transições */
    --transition-fast: 150ms cubic-bezier(.4,0,.2,1);
    --transition-base: 300ms cubic-bezier(.4,0,.2,1);
    --transition-slow: 500ms cubic-bezier(.4,0,.2,1);
    --transition-bounce: 600ms cubic-bezier(.68,-.55,.265,1.55);

    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.125rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ============================================
   RESET E BASE
   ============================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-background);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    overflow: hidden;
    position: relative;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #008542 0%, #00a552 50%, #FFCC29 100%);
    transition: opacity .6s ease, visibility .6s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.loader-text {
    margin-top: 1.25rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   PARTICLES CANVAS
   ============================================ */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .45;
}

/* ============================================
   PRESENTATION CARD
   ============================================ */
#presentationCard {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 80rem;
    height: 700px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}
#presentationCard:hover {
    box-shadow: var(--shadow-2xl), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ============================================
   SLIDES CONTAINER
   ============================================ */
.slides-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 0 1.25rem;
}
.slides-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary), var(--color-primary));
    background-size: 300% 100%;
    z-index: 2;
    border-radius: 4px 4px 0 0;
    opacity: .7;
    animation: topBarFlow 8s linear infinite;
}
@keyframes topBarFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ============================================
   SLIDE BASE
   ============================================ */
.slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    opacity: 0;
    transition: opacity var(--transition-slow);
}
.slide.active {
    display: flex;
    opacity: 1;
}

/* ============================================
   HEADER HUD
   ============================================ */
.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1.5rem;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.header-left, .header-right { display: flex; align-items: center; gap: .75rem; }

.brand-pill {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(0,133,66,.08);
    border: 1px solid rgba(0,133,66,.15);
    padding: .3rem .9rem;
    border-radius: var(--radius-full);
    animation: brandPulse 4s ease-in-out infinite;
}
@keyframes brandPulse {
    0%, 100% { border-color: rgba(0,133,66,.15); box-shadow: none; }
    50%      { border-color: rgba(0,133,66,.35); box-shadow: 0 0 10px rgba(0,133,66,.08); }
}
.slide-indicator {
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}
.hud-chip {
    font-size: .75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-secondary);
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(0,0,0,.06);
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.hud-chip:hover {
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ============================================
   ANIMATIONS — fadeInUp + delays 1-6
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.animated-item {
    opacity: 0;
    animation: fadeInUp .65s cubic-bezier(.22,1,.36,1) forwards;
}
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .48s; }
.delay-5 { animation-delay: .60s; }
.delay-6 { animation-delay: .72s; }

/* ============================================
   GRADIENTS & BACKGROUNDS
   ============================================ */
.gradient-bg {
    background: linear-gradient(160deg, rgba(0,133,66,.08) 0%, rgba(255,204,41,.06) 100%);
}
.low-opacity-gradient-bg {
    background: linear-gradient(160deg, rgba(0,133,66,.04) 0%, rgba(255,204,41,.03) 100%);
}
.subtle-bg {
    background: linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(241,245,249,.6) 100%);
}

/* ============================================
   TIMER
   ============================================ */
#timer { min-width: 56px; text-align: center; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-kicker {
    font-size: clamp(.65rem,.7vw,.8rem);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.slide.active .section-kicker {
    animation: kickerShimmer 4s ease-in-out infinite;
}
@keyframes kickerShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.section-title {
    font-size: clamp(1.5rem,3vw,2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--color-text-primary);
}
.slide.active .section-title {
    animation: titleBreathe 5s ease-in-out infinite;
}
@keyframes titleBreathe {
    0%, 100% { letter-spacing: -.02em; }
    50%      { letter-spacing: .01em; }
}
.section-lead {
    font-size: clamp(.95rem,1.3vw,1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.slide.active .section-lead {
    animation: leadFade 6s ease-in-out infinite;
}
@keyframes leadFade {
    0%, 100% { opacity: .85; }
    50%      { opacity: 1; }
}
.title-line { display: block; }
.title-accent {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), #10b981, var(--color-primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.slide.active .title-accent {
    animation: accentFlow 6s ease-in-out infinite;
}
@keyframes accentFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================
   ICON SYSTEM
   ============================================ */
.icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    transform-origin: center;
}
.icon-img.sm {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

/* Harmonização global para ícones em cards */
.card > .icon-img {
    margin: 0 auto .9rem;
    padding: .55rem;
    border-radius: .9rem;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(248,250,252,.9));
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* Variações por tema de card */
.card--success > .icon-img {
    background: linear-gradient(135deg, rgba(209,250,229,.95), rgba(167,243,208,.9));
    border-color: rgba(16,185,129,.25);
}
.card--warning > .icon-img {
    background: linear-gradient(135deg, rgba(255,237,213,.95), rgba(254,215,170,.9));
    border-color: rgba(245,158,11,.25);
}
.card--danger > .icon-img {
    background: linear-gradient(135deg, rgba(254,226,226,.95), rgba(254,202,202,.9));
    border-color: rgba(239,68,68,.25);
}
.card--soft > .icon-img {
    background: linear-gradient(135deg, rgba(236,253,245,.95), rgba(220,252,231,.9));
    border-color: rgba(0,133,66,.2);
}
.icon-pill {
    width: 56px; height: 56px;
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.icon-pill:hover { transform: scale(1.08); }
.icon-pill--emerald { background: linear-gradient(135deg, #d1fae5, #a7f3d0); box-shadow: 0 4px 12px rgba(16,185,129,.15); }
.icon-pill--blue    { background: linear-gradient(135deg, #dbeafe, #bfdbfe); box-shadow: 0 4px 12px rgba(59,130,246,.15); }
.icon-pill--yellow  { background: linear-gradient(135deg, #fef9c3, #fde68a); box-shadow: 0 4px 12px rgba(234,179,8,.15); }
.icon-pill--purple  { background: linear-gradient(135deg, #ede9fe, #ddd6fe); box-shadow: 0 4px 12px rgba(139,92,246,.15); }
.icon-pill--orange  { background: linear-gradient(135deg, #ffedd5, #fed7aa); box-shadow: 0 4px 12px rgba(249,115,22,.15); }
.icon-pill--teal    { background: linear-gradient(135deg, #ccfbf1, #99f6e4); box-shadow: 0 4px 12px rgba(20,184,166,.15); }

/* Icon pills looping float */
.slide.active .icon-pill {
    animation: iconFloat 4s ease-in-out infinite;
}
.slide.active .delay-2 .icon-pill { animation-delay: .5s; }
.slide.active .delay-3 .icon-pill { animation-delay: 1s; }
.slide.active .delay-4 .icon-pill { animation-delay: 1.5s; }
.slide.active .delay-5 .icon-pill { animation-delay: 2s; }
.slide.active .delay-6 .icon-pill { animation-delay: 2.5s; }
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Ícones de cards com micro movimento dedicado */
.slide.active .card > .icon-img {
    animation: cardIconFloat 4.2s ease-in-out infinite;
}
.slide.active .delay-2.card > .icon-img { animation-delay: .5s; }
.slide.active .delay-3.card > .icon-img { animation-delay: 1s; }
.slide.active .delay-4.card > .icon-img { animation-delay: 1.5s; }
.slide.active .delay-5.card > .icon-img { animation-delay: 2s; }
.slide.active .delay-6.card > .icon-img { animation-delay: 2.5s; }
@keyframes cardIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-3px) scale(1.03); }
}

/* ============================================
   BADGES / CHIPS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: var(--radius-full);
    letter-spacing: .03em;
}
.badge--success { background: rgba(0,133,66,.1); color: var(--color-primary); }
.badge--danger  { background: rgba(239,68,68,.1);  color: var(--color-danger); }
.badge--warning { background: rgba(255,204,41,.15); color: #92400e; }

/* ============================================
   CARD SYSTEM  (glass-morphism refresh)
   ============================================ */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,0,0,.08);
}
.hover-lift:hover { transform: translateY(-4px); }

/* Card subtle glow loop */
.slide.active .card {
    animation: cardGlow 5s ease-in-out infinite;
}
.slide.active .delay-2.card,
.slide.active .delay-2 > .card { animation-delay: .8s; }
.slide.active .delay-3.card,
.slide.active .delay-3 > .card { animation-delay: 1.6s; }
@keyframes cardGlow {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50%      { box-shadow: var(--shadow-md), 0 0 16px rgba(0,133,66,.06); }
}

.card--soft {
    background: rgba(248,250,252,.85);
    border-top: 4px solid var(--color-primary);
}
.card--success {
    background: rgba(240,253,244,.75);
    border-top: 4px solid #10b981;
}
.card--warning {
    background: rgba(255,251,235,.75);
    border-top: 4px solid #f59e0b;
}
.card--danger {
    background: rgba(254,242,242,.75);
    border-top: 4px solid #ef4444;
}

/* Animated top border on themed cards */
.slide.active .card--success { animation: cardGlowSuccess 5s ease-in-out infinite; }
.slide.active .card--warning { animation: cardGlowWarning 5s ease-in-out infinite; }
.slide.active .card--danger  { animation: cardGlowDanger  5s ease-in-out infinite; }
.slide.active .card--soft    { animation: cardGlowSoft    5s ease-in-out infinite; }
@keyframes cardGlowSuccess {
    0%, 100% { box-shadow: var(--shadow-sm); border-top-color: #10b981; }
    50%      { box-shadow: 0 0 18px rgba(16,185,129,.12); border-top-color: #059669; }
}
@keyframes cardGlowWarning {
    0%, 100% { box-shadow: var(--shadow-sm); border-top-color: #f59e0b; }
    50%      { box-shadow: 0 0 18px rgba(245,158,11,.12); border-top-color: #d97706; }
}
@keyframes cardGlowDanger {
    0%, 100% { box-shadow: var(--shadow-sm); border-top-color: #ef4444; }
    50%      { box-shadow: 0 0 18px rgba(239,68,68,.12); border-top-color: #dc2626; }
}
@keyframes cardGlowSoft {
    0%, 100% { box-shadow: var(--shadow-sm); border-top-color: var(--color-primary); }
    50%      { box-shadow: 0 0 18px rgba(0,133,66,.08); border-top-color: var(--color-accent); }
}
.card-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: .5rem;
}
.card-heading {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.card-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
}
.card-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem;
    font-size: .9rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
}

/* Staggered list item entrance + subtle pulse */
.slide.active .card-list li {
    animation: listItemIn .5s cubic-bezier(.22,1,.36,1) forwards,
               listPulse 4s 1.5s ease-in-out infinite;
}
.slide.active .card-list li:nth-child(1) { animation-delay: .3s, 1.8s; }
.slide.active .card-list li:nth-child(2) { animation-delay: .45s, 1.95s; }
.slide.active .card-list li:nth-child(3) { animation-delay: .6s, 2.1s; }
.slide.active .card-list li:nth-child(4) { animation-delay: .75s, 2.25s; }
.slide.active .card-list li:nth-child(5) { animation-delay: .9s, 2.4s; }
.slide.active .card-list li:nth-child(6) { animation-delay: 1.05s, 2.55s; }
@keyframes listItemIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes listPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .75; }
}

/* ============================================
   MICRO INTERACTIONS
   ============================================ */
button, .nav-button { cursor: pointer; }

/* Card title sparkle */
.slide.active .card-title {
    animation: cardTitleShimmer 6s ease-in-out infinite;
    background: linear-gradient(90deg, var(--color-text-secondary) 0%, var(--color-primary) 50%, var(--color-text-secondary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes cardTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================
   NAVIGATION BAR  (glass-nav)
   ============================================ */
.navigation-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .65rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,.04);
}
.navigation-bar.glass {
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-button {
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .55rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.7);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-button:hover {
    background: #fff;
    border-color: rgba(0,0,0,.12);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.nav-button:active { transform: translateY(0); }
.nav-button.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-size: 200% 200%;
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-colored);
    animation: nextBtnGlow 3s ease-in-out infinite;
}
.nav-button.primary:hover {
    box-shadow: 0 10px 28px rgba(0,133,66,.28);
    transform: translateY(-2px);
}
@keyframes nextBtnGlow {
    0%, 100% { background-position: 0% 50%; box-shadow: var(--shadow-colored); }
    50%      { background-position: 100% 50%; box-shadow: 0 6px 20px rgba(0,133,66,.25); }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container { flex: 1; padding: 0 .5rem; }
.progress-track {
    height: 5px;
    background: rgba(0,0,0,.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: width .5s cubic-bezier(.22,1,.36,1);
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-fill {
    animation: progressPulse 3s ease-in-out infinite;
}
@keyframes progressPulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.15); }
}

/* ============================================
   LOGOS
   ============================================ */
.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.logos-container img { height: 60px; object-fit: contain; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    #presentationCard { height: 620px; max-width: 100%; }
    .slide { padding: 2rem 2.25rem; }
}
@media (max-width: 768px) {
    body { padding: var(--spacing-md); }
    #presentationCard { height: 540px; border-radius: var(--radius-xl); }
    .slide { padding: 1.75rem 1.5rem; }
    .section-title { font-size: clamp(1.2rem,4vw,1.8rem); }
    .section-lead  { font-size: clamp(.85rem,2.5vw,1rem); }
    .presentation-header { padding: .55rem 1rem; }
    .logos-container img { height: 40px; }
    .card { padding: 1.1rem; }
}
@media (max-width: 480px) {
    body { padding: var(--spacing-sm); }
    #presentationCard { height: 460px; border-radius: var(--radius-lg); }
    .slide { padding: 1.25rem 1rem; }
    .navigation-bar { padding: .5rem .75rem; gap: .5rem; }
    .nav-button { font-size: .7rem; padding: .45rem 1rem; }
    .brand-pill { font-size: .6rem; padding: .2rem .6rem; }
    .hud-chip { font-size: .65rem; padding: .25rem .6rem; }
}

/* ============================================
   FULLSCREEN MODE
   ============================================ */
#presentationCard:fullscreen,
#presentationCard:-webkit-full-screen,
#presentationCard:-moz-full-screen,
#presentationCard:-ms-fullscreen,
#presentationCard.fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
#presentationCard:fullscreen .presentation-header,
#presentationCard:-webkit-full-screen .presentation-header,
#presentationCard.fullscreen .presentation-header {
    background: rgba(255,255,255,.95);
    backdrop-filter: none;
}
#presentationCard:fullscreen .slides-container,
#presentationCard:-webkit-full-screen .slides-container,
#presentationCard.fullscreen .slides-container {
    margin: 0 1rem;
}
#presentationCard:fullscreen .slides-container::before,
#presentationCard:-webkit-full-screen .slides-container::before,
#presentationCard.fullscreen .slides-container::before {
    opacity: .5;
}
#presentationCard:fullscreen .slide,
#presentationCard:-webkit-full-screen .slide,
#presentationCard.fullscreen .slide {
    padding: 2.5rem 4rem;
}
#presentationCard:fullscreen .navigation-bar,
#presentationCard:-webkit-full-screen .navigation-bar,
#presentationCard.fullscreen .navigation-bar {
    background: rgba(255,255,255,.95);
    backdrop-filter: none;
    padding: .75rem 2rem;
}
#presentationCard:fullscreen .card,
#presentationCard:-webkit-full-screen .card,
#presentationCard.fullscreen .card {
    background: rgba(248,250,252,.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#presentationCard:fullscreen .card--soft,
#presentationCard.fullscreen .card--soft {
    background: rgba(248,250,252,.95);
}
#presentationCard:fullscreen .card--success,
#presentationCard.fullscreen .card--success {
    background: rgba(240,253,244,.9);
}
#presentationCard:fullscreen .card--warning,
#presentationCard.fullscreen .card--warning {
    background: rgba(255,251,235,.9);
}
#presentationCard:fullscreen .card--danger,
#presentationCard.fullscreen .card--danger {
    background: rgba(254,242,242,.9);
}
#presentationCard:fullscreen .subtle-bg,
#presentationCard:-webkit-full-screen .subtle-bg,
#presentationCard.fullscreen .subtle-bg {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
#presentationCard:fullscreen .gradient-bg,
#presentationCard:-webkit-full-screen .gradient-bg,
#presentationCard.fullscreen .gradient-bg {
    background: linear-gradient(160deg, rgba(0,133,66,.06) 0%, rgba(255,204,41,.04) 100%);
}
#presentationCard:fullscreen .low-opacity-gradient-bg,
#presentationCard:-webkit-full-screen .low-opacity-gradient-bg,
#presentationCard.fullscreen .low-opacity-gradient-bg {
    background: linear-gradient(160deg, rgba(0,133,66,.03) 0%, rgba(255,204,41,.02) 100%);
}
/* Override browser default fullscreen background (black/gray) */
#presentationCard::backdrop {
    background: #ffffff;
}

/* ============================================
   SLIDE ILLUSTRATIONS — Base
   ============================================ */
.slide-illust {
    display: flex;
    justify-content: center;
    margin: .5rem auto .75rem;
    opacity: 0;
    transform: translateY(10px);
}
.slide.active .slide-illust {
    animation: illustIn .6s .25s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes illustIn {
    to { opacity: 1; transform: translateY(0); }
}
.illust-svg { width: 110px; height: 72px; overflow: visible; }
.illust-svg--sm { width: 70px; height: 55px; }
.illust-svg--wide { width: 160px; height: 45px; }
.slide-illust--sm { margin: .25rem auto .5rem; }

/* — Slide 1: Breathing lungs + weather — */
.slide.active .s1-lung-l,
.slide.active .s1-lung-r {
    animation: s1Breathe 3.5s ease-in-out infinite;
}
.slide.active .s1-lung-r { animation-delay: .15s; }
@keyframes s1Breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}
.slide.active .s1-sun {
    animation: s1Sun 6s ease-in-out infinite;
}
.slide.active .s1-snow {
    animation: s1Snow 6s ease-in-out infinite;
}
@keyframes s1Sun {
    0%, 45%  { opacity: 1; }
    50%, 95% { opacity: 0; }
    100%     { opacity: 1; }
}
@keyframes s1Snow {
    0%, 45%  { opacity: 0; }
    50%, 95% { opacity: 1; }
    100%     { opacity: 0; }
}

/* — Slide 2: Thermometer + viruses — */
.slide.active .s2-mercury {
    animation: s2Mercury 4s ease-in-out infinite;
}
@keyframes s2Mercury {
    0%, 100% { height: 26px; y: 22; }
    50%      { height: 16px; y: 32; }
}
.slide.active .s2-v1 { animation: s2Float 3s ease-in-out infinite; }
.slide.active .s2-v2 { animation: s2Float 3s .8s ease-in-out infinite; }
.slide.active .s2-v3 { animation: s2Float 3s 1.6s ease-in-out infinite; }
@keyframes s2Float {
    0%, 100% { transform: translateY(0); opacity: .5; }
    50%      { transform: translateY(-6px); opacity: .8; }
}

/* — Slide 3: Season cycle — */
.slide.active .s3-arrow {
    animation: s3Rotate 5s linear infinite;
    transform-origin: 30px 30px;
}
@keyframes s3Rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.slide.active .s3-sun {
    animation: s1Sun 5s ease-in-out infinite;
}
.slide.active .s3-cold {
    animation: s1Snow 5s ease-in-out infinite;
}

/* — Slide 4: Particles falling into airway — */
.slide.active .s4-p1 { animation: s4Fall 3s ease-in infinite; }
.slide.active .s4-p2 { animation: s4Fall 3s .6s ease-in infinite; }
.slide.active .s4-p3 { animation: s4Fall 3s 1.2s ease-in infinite; }
@keyframes s4Fall {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { opacity: .6; }
    100% { transform: translateY(52px); opacity: 0; }
}

/* — Slide 5: Symptom dots blinking — */
.slide.active .s5-d1 { animation: s5Blink 4s .0s ease-in-out infinite; }
.slide.active .s5-d2 { animation: s5Blink 4s .5s ease-in-out infinite; }
.slide.active .s5-d3 { animation: s5Blink 4s 1.0s ease-in-out infinite; }
.slide.active .s5-d4 { animation: s5Blink 4s 1.5s ease-in-out infinite; }
@keyframes s5Blink {
    0%, 20%  { opacity: 0; transform: scale(.5); }
    30%, 70% { opacity: .9; transform: scale(1); }
    80%, 100%{ opacity: 0; transform: scale(.5); }
}

/* — Slide 6: ECG scrolling — */
.s6-ecg {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
}
.slide.active .s6-ecg {
    animation: s6Draw 2.5s linear infinite;
}
@keyframes s6Draw {
    to { stroke-dashoffset: 0; }
}

/* — Slide 7: O2 bar dropping — */
.slide.active .s7-bar {
    animation: s7Drop 5s ease-in-out infinite;
}
@keyframes s7Drop {
    0%, 10%  { height: 24px; y: 24; fill: #22c55e; }
    50%      { height: 8px; y: 40; fill: #ef4444; }
    90%, 100%{ height: 24px; y: 24; fill: #22c55e; }
}
.slide.active .s7-lung-l,
.slide.active .s7-lung-r {
    animation: s7Flush 5s ease-in-out infinite;
}
@keyframes s7Flush {
    0%, 10%  { fill: #fecaca; }
    50%      { fill: #ef4444; }
    90%, 100%{ fill: #fecaca; }
}

/* — Slide 9: Balance scale tilting — */
.s9-beam { transform-origin: 60px 26px; }
.slide.active .s9-beam {
    animation: s9Tilt 4s ease-in-out infinite;
}
@keyframes s9Tilt {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(8deg); }
    75%      { transform: rotate(-8deg); }
}

/* — Slide 10: Escalation steps lighting up — */
.slide.active .s10-dot {
    animation: s10Move 4s ease-in-out infinite;
}
@keyframes s10Move {
    0%, 10%  { cx: 22; cy: 30; opacity: 1; fill: #22c55e; }
    40%, 50% { cx: 60; cy: 15; opacity: 1; fill: #eab308; }
    80%, 90% { cx: 98; cy: 0; opacity: 1; fill: #ef4444; }
    95%, 100%{ opacity: 0; }
}
.slide.active .s10-bar1 { animation: s10Glow1 4s ease-in-out infinite; }
.slide.active .s10-bar2 { animation: s10Glow2 4s ease-in-out infinite; }
.slide.active .s10-bar3 { animation: s10Glow3 4s ease-in-out infinite; }
@keyframes s10Glow1 {
    0%, 5%   { opacity: .4; }
    12%, 35% { opacity: 1; }
    42%, 100%{ opacity: .4; }
}
@keyframes s10Glow2 {
    0%, 35%  { opacity: .4; }
    42%, 65% { opacity: 1; }
    72%, 100%{ opacity: .4; }
}
@keyframes s10Glow3 {
    0%, 65%  { opacity: .4; }
    72%, 92% { opacity: 1; }
    95%, 100%{ opacity: .4; }
}

/* — Slide 11: Shield pulsing — */
.slide.active .s11-shield {
    animation: s11Pulse 3s ease-in-out infinite;
}
@keyframes s11Pulse {
    0%, 100% { fill: rgba(0,133,66,.12); filter: drop-shadow(0 0 0 transparent); }
    50%      { fill: rgba(0,133,66,.22); filter: drop-shadow(0 0 8px rgba(0,133,66,.3)); }
}

/* — Slide 12: Syringe + shield fill — */
.slide.active .s12-plunger {
    animation: s12Push 5s ease-in-out infinite;
}
@keyframes s12Push {
    0%, 15%  { x: 2; }
    45%, 100%{ x: 32; }
}
.slide.active .s12-shield {
    animation: s12Fill 5s ease-in-out infinite;
}
@keyframes s12Fill {
    0%, 40%  { fill: rgba(0,133,66,.1); }
    60%, 85% { fill: rgba(0,133,66,.3); }
    95%, 100%{ fill: rgba(0,133,66,.1); }
}
.slide.active .s12-check {
    animation: s12Check 5s ease-in-out infinite;
}
@keyframes s12Check {
    0%, 55%  { opacity: 0; transform: scale(.5); }
    65%, 85% { opacity: 1; transform: scale(1); }
    95%, 100%{ opacity: 0; transform: scale(.5); }
}

/* — Slide 13: Handwash drops + sparkle — */
.slide.active .s13-d1 { animation: s13Drop 3s ease-in infinite; }
.slide.active .s13-d2 { animation: s13Drop 3s .4s ease-in infinite; }
.slide.active .s13-d3 { animation: s13Drop 3s .8s ease-in infinite; }
@keyframes s13Drop {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { opacity: .4; }
    100% { transform: translateY(18px); opacity: 0; }
}
.slide.active .s13-sparkle {
    animation: s13Sparkle 3s 1s ease-in-out infinite;
}
@keyframes s13Sparkle {
    0%, 30%  { opacity: 0; }
    50%, 70% { opacity: 1; }
    90%, 100%{ opacity: 0; }
}

/* — Slide 14: Air flow + particles exiting — */
.slide.active .s14-f1 { animation: s14Flow 3s ease-in-out infinite; }
.slide.active .s14-f2 { animation: s14Flow 3s .3s ease-in-out infinite; }
.slide.active .s14-f3 { animation: s14Flow 3s .6s ease-in-out infinite; }
@keyframes s14Flow {
    0%   { opacity: .3; transform: translateX(0); }
    50%  { opacity: .7; }
    100% { opacity: .3; transform: translateX(8px); }
}
.slide.active .s14-px1 { animation: s14Exit 2.5s ease-in infinite; }
.slide.active .s14-px2 { animation: s14Exit 2.5s .5s ease-in infinite; }
.slide.active .s14-px3 { animation: s14Exit 2.5s 1s ease-in infinite; }
@keyframes s14Exit {
    0%   { transform: translateX(0); opacity: .8; }
    100% { transform: translateX(70px); opacity: 0; }
}

/* — Slide 15: Mask blocking particles — */
.slide.active .s15-barrier {
    animation: s15Barrier 4s ease-in-out infinite;
}
@keyframes s15Barrier {
    0%, 25%  { opacity: 0; }
    35%, 75% { opacity: .7; }
    85%, 100%{ opacity: 0; }
}
.slide.active .s15-p1 { animation: s15Block 4s ease-in-out infinite; }
.slide.active .s15-p2 { animation: s15Block 4s .3s ease-in-out infinite; }
.slide.active .s15-p3 { animation: s15Block 4s .6s ease-in-out infinite; }
@keyframes s15Block {
    0%, 10%  { transform: translateX(0); opacity: .8; }
    40%      { transform: translateX(-14px); opacity: .9; }
    55%, 70% { transform: translateX(-10px); opacity: .5; }
    85%, 100%{ transform: translateX(0); opacity: .8; }
}

/* — Slide 16: Alert beacon rings — */
.slide.active .s16-r1 { animation: s16Ring 2.5s ease-out infinite; }
.slide.active .s16-r2 { animation: s16Ring 2.5s .4s ease-out infinite; }
.slide.active .s16-r3 { animation: s16Ring 2.5s .8s ease-out infinite; }
@keyframes s16Ring {
    0%   { opacity: .8; transform: scale(.8); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* — Slide 17: Team circle connecting — */
.s17-l1, .s17-l2, .s17-l3, .s17-l4, .s17-l5 { opacity: 0; }
.s17-d1, .s17-d2, .s17-d3, .s17-d4, .s17-d5 { opacity: 0; }
.slide.active .s17-d1 { animation: s17Pop 6s .0s ease-in-out infinite; }
.slide.active .s17-d2 { animation: s17Pop 6s .4s ease-in-out infinite; }
.slide.active .s17-d3 { animation: s17Pop 6s .8s ease-in-out infinite; }
.slide.active .s17-d4 { animation: s17Pop 6s 1.2s ease-in-out infinite; }
.slide.active .s17-d5 { animation: s17Pop 6s 1.6s ease-in-out infinite; }
@keyframes s17Pop {
    0%, 5%   { opacity: 0; transform: scale(.3); }
    15%, 80% { opacity: 1; transform: scale(1); }
    90%, 100%{ opacity: 0; transform: scale(.3); }
}
.slide.active .s17-l1 { animation: s17Line 6s .2s ease-in-out infinite; }
.slide.active .s17-l2 { animation: s17Line 6s .6s ease-in-out infinite; }
.slide.active .s17-l3 { animation: s17Line 6s 1.0s ease-in-out infinite; }
.slide.active .s17-l4 { animation: s17Line 6s 1.4s ease-in-out infinite; }
.slide.active .s17-l5 { animation: s17Line 6s 1.8s ease-in-out infinite; }
@keyframes s17Line {
    0%, 8%   { opacity: 0; }
    18%, 80% { opacity: 1; }
    90%, 100%{ opacity: 0; }
}

/* — Slide 18: Heartbeat scroll — */
.s18-beat {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}
.slide.active .s18-beat {
    animation: s18Scroll 3s linear infinite;
}
@keyframes s18Scroll {
    to { stroke-dashoffset: 0; }
}

/* ============================================
   ANIMATED RISK EQUATION (Slide 8)
   ============================================ */
.equation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.6rem 1.2rem;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(8px);
    border-radius: 1.2rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
    margin-top: 1rem;
}
.equation-term {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.equation-icon {
    width: 60px;
    height: 60px;
}
.eq-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.equation-label {
    font-size: clamp(.65rem, 1vw, .8rem);
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.equation-label--danger {
    color: #dc2626 !important;
    font-weight: 800 !important;
    font-size: clamp(.7rem, 1.1vw, .85rem);
}
.equation-operator {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #6B7280;
    margin-top: -1rem;
    user-select: none;
}
.eq-equals {
    color: var(--color-primary);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* Looping timeline reveal of each equation element */
.eq-anim {
    opacity: 0;
    transform: translateY(18px) scale(.85);
}
.slide.active .eq-step-1 { animation: eqStep1 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .eq-step-2 { animation: eqStep2 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .eq-step-3 { animation: eqStep3 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .eq-step-4 { animation: eqStep4 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .eq-step-5 { animation: eqStep5 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .eq-step-6 { animation: eqStep6 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .eq-step-7 { animation: eqStep7 8s cubic-bezier(.22,1,.36,1) infinite; }

@keyframes eqStep1 {
    0%, 5%   { opacity: 0; transform: translateY(18px) scale(.85); }
    10%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}
@keyframes eqStep2 {
    0%, 12%  { opacity: 0; transform: translateY(18px) scale(.85); }
    18%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}
@keyframes eqStep3 {
    0%, 20%  { opacity: 0; transform: translateY(18px) scale(.85); }
    26%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}
@keyframes eqStep4 {
    0%, 30%  { opacity: 0; transform: translateY(18px) scale(.85); }
    36%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}
@keyframes eqStep5 {
    0%, 40%  { opacity: 0; transform: translateY(18px) scale(.85); }
    46%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}
@keyframes eqStep6 {
    0%, 52%  { opacity: 0; transform: translateY(18px) scale(.85); }
    58%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}
@keyframes eqStep7 {
    0%, 62%  { opacity: 0; transform: translateY(18px) scale(.85); }
    68%      { opacity: 1; transform: translateY(0) scale(1.16); }
    74%, 85% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100%{ opacity: 0; transform: translateY(18px) scale(.85); }
}

/* People silhouettes appearing one by one on each loop */
.person { opacity: 0; }
.slide.active .person-1 { animation: personPop1 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .person-2 { animation: personPop2 8s cubic-bezier(.22,1,.36,1) infinite; }
.slide.active .person-3 { animation: personPop3 8s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes personPop1 {
    0%, 9%   { opacity: 0; transform: scale(.5); }
    13%, 85% { opacity: 1; transform: scale(1); }
    92%, 100%{ opacity: 0; transform: scale(.5); }
}
@keyframes personPop2 {
    0%, 11%  { opacity: 0; transform: scale(.5); }
    15%, 85% { opacity: 1; transform: scale(1); }
    92%, 100%{ opacity: 0; transform: scale(.5); }
}
@keyframes personPop3 {
    0%, 13%  { opacity: 0; transform: scale(.5); }
    17%, 85% { opacity: 1; transform: scale(1); }
    92%, 100%{ opacity: 0; transform: scale(.5); }
}

/* Clock hands spinning */
.clock-minute-hand,
.clock-hour-hand {
    transform-origin: 40px 40px;
}
.slide.active .clock-minute-hand {
    animation: clockSpin 3s linear infinite;
}
.slide.active .clock-hour-hand {
    animation: clockSpin 36s linear infinite;
}
@keyframes clockSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Wind lines dim and X slashes in on each loop */
.wind-lines { opacity: 1; }
.slide.active .wind-lines {
    animation: windFadeLoop 8s ease-out infinite;
}
@keyframes windFadeLoop {
    0%, 45%  { opacity: 1; }
    50%, 85% { opacity: .25; }
    92%, 100%{ opacity: 1; }
}
.vent-x-mark {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transform-origin: 40px 40px;
}
.slide.active .vent-x-mark {
    animation: xSlashLoop 8s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes xSlashLoop {
    0%, 50%  { opacity: 0; transform: scale(0) rotate(-90deg); }
    56%, 85% { opacity: 1; transform: scale(1) rotate(0deg); }
    92%, 100%{ opacity: 0; transform: scale(0) rotate(-90deg); }
}

/* Risk triangle pulsing glow */
.slide.active .risk-triangle {
    animation: riskPulse 1.4s ease-in-out infinite;
}
@keyframes riskPulse {
    0%, 100% { fill: #fbbf24; filter: drop-shadow(0 0 0 transparent); }
    50%      { fill: #f59e0b; filter: drop-shadow(0 0 10px rgba(245,158,11,.55)); }
}

/* Result term uses eqStep7 bounce timing in the loop */

/* Responsive adjustments for equation */
@media (max-width: 768px) {
    .equation-container { gap: .35rem; padding: 1rem .6rem; }
    .equation-icon { width: 44px; height: 44px; }
    .equation-operator { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .equation-container { flex-wrap: wrap; gap: .5rem; }
    .equation-icon { width: 36px; height: 36px; }
}

/* ============================================
   ALERT PILLS (Slide 6) — alive feel
   ============================================ */
.slide.active .rounded-full.shadow-lg {
    animation: alertPillBreathe 3.5s ease-in-out infinite;
    position: relative;
}
.slide.active .delay-2.rounded-full.shadow-lg { animation-delay: .4s; }
.slide.active .delay-3.rounded-full.shadow-lg { animation-delay: .8s; }
.slide.active .delay-4.rounded-full.shadow-lg { animation-delay: 1.2s; }
.slide.active .delay-5.rounded-full.shadow-lg { animation-delay: 1.6s; }
@keyframes alertPillBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
    50%      { transform: scale(1.04); box-shadow: 0 10px 25px -3px rgba(0,0,0,.18); }
}

/* ============================================
   SLIDE HEADER ICONS — pulse ring
   ============================================ */
.slide.active .w-12.h-12.rounded-full {
    animation: headerIconPulse 3s ease-in-out infinite;
}
@keyframes headerIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,133,66,.25); }
    50%      { box-shadow: 0 0 0 6px rgba(0,133,66,0); }
}

/* ============================================
   LOGOS — gentle float (sutil, sem tremer)
   ============================================ */
.slide.active .logos-container img {
    animation: logoFloat 10s 1s ease-in-out infinite;
    will-change: transform;
}
.slide.active .logos-container img:nth-child(2) {
    animation-delay: 3s;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-1.5px) scale(1); }
}

/* ============================================
   GRADIENT BACKGROUNDS — slow shift
   ============================================ */
.slide.active.gradient-bg,
.slide.active.subtle-bg,
.slide.active.low-opacity-gradient-bg {
    animation: bgShift 12s ease-in-out infinite;
    background-size: 200% 200%;
}
@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================
   CONTENT MOTION — text, cards and lists
   ============================================ */
.slide.active .card p {
    animation: textBreathe 6s ease-in-out infinite;
}
@keyframes textBreathe {
    0%, 100% { opacity: .9; }
    50%      { opacity: 1; }
}

/* Headings com brilho suave em loop */
.slide.active .card-heading {
    background: linear-gradient(90deg, var(--color-text-primary) 0%, var(--color-primary) 45%, var(--color-text-primary) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: headingFlow 6.5s ease-in-out infinite;
}
@keyframes headingFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Realce dinâmico nas caixas sem alterar estrutura */
.slide.active .card {
    position: relative;
    overflow: hidden;
}
.slide.active .card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.15) 45%, transparent 90%);
    transform: translateX(-120%);
    animation: cardSweep 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes cardSweep {
    0%, 20%   { transform: translateX(-120%); opacity: 0; }
    28%, 52%  { transform: translateX(120%); opacity: 1; }
    60%, 100% { transform: translateX(120%); opacity: 0; }
}

/* Marcadores das listas com micro movimento */
.slide.active .card-list li span:first-child {
    animation: bulletPulse 2.8s ease-in-out infinite;
}
.slide.active .card-list li:nth-child(2) span:first-child { animation-delay: .25s; }
.slide.active .card-list li:nth-child(3) span:first-child { animation-delay: .5s; }
.slide.active .card-list li:nth-child(4) span:first-child { animation-delay: .75s; }
.slide.active .card-list li:nth-child(5) span:first-child { animation-delay: 1s; }
@keyframes bulletPulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50%      { transform: scale(1.25); opacity: 1; }
}

/* Listas textuais fora de cards (ex.: slide 4) */
.slide.active ul.list-inside li {
    animation: outsideListWave 5.5s ease-in-out infinite;
}
.slide.active ul.list-inside li:nth-child(2) { animation-delay: .3s; }
.slide.active ul.list-inside li:nth-child(3) { animation-delay: .6s; }
.slide.active ul.list-inside li:nth-child(4) { animation-delay: .9s; }
@keyframes outsideListWave {
    0%, 100% { opacity: .9; transform: translateX(0); }
    50%      { opacity: 1; transform: translateX(3px); }
}

/* Parágrafos de bloco principal ganham respiração sutil */
.slide.active .m-auto > p,
.slide.active .slide-content > p {
    animation: bodyTextBreathe 6.2s ease-in-out infinite;
}
@keyframes bodyTextBreathe {
    0%, 100% { opacity: .88; }
    50%      { opacity: 1; }
}

/* ============================================
   UTILITY HELPERS
   ============================================ */
.hidden { display: none !important; }

/* ── Slide content wrapper ── */
.slide-content {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Text alignment ── */
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }

/* ── Width / Max-width ── */
.w-full     { width: 100%; }
.w-12       { width: 3rem; }
.w-14       { width: 3.5rem; }
.w-40       { width: 10rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }

/* ── Margin auto (centering) ── */
.m-auto     { margin: 0 auto; }

/* ── Margin bottom ── */
.mb-2  { margin-bottom: .5rem; }
.mb-3  { margin-bottom: .75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* ── Margin top ── */
.mt-2  { margin-top: .5rem; }
.mt-3  { margin-top: .75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

/* ── Flexbox ── */
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ── Gap ── */
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }

/* ── Grid ── */
.grid           { display: grid; }
.grid-cols-2    { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3    { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4    { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6    { grid-template-columns: repeat(6, 1fr); }

/* ── Text size ── */
.text-xs    { font-size: .75rem; line-height: 1rem; }
.text-sm    { font-size: .875rem; line-height: 1.25rem; }
.text-base  { font-size: 1rem; line-height: 1.5rem; }
.text-lg    { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl    { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl   { font-size: 1.5rem; line-height: 2rem; }
.text-3xl   { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl   { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl   { font-size: 3rem; line-height: 1; }

/* ── Text color ── */
.text-white       { color: #fff; }
.text-gray-500    { color: #6b7280; }
.text-gray-600    { color: #4b5563; }
.text-gray-700    { color: #374151; }
.text-gray-800    { color: #1f2937; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-red-700     { color: #b91c1c; }
.text-red-900     { color: #7f1d1d; }

/* ── Font weight ── */
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.font-medium    { font-weight: 500; }

/* ── Misc ── */
.rounded-xl  { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.p-4    { padding: 1rem; }
.p-6    { padding: 1.5rem; }
.p-8    { padding: 2rem; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide   { letter-spacing: .025em; }
.uppercase       { text-transform: uppercase; }

@media (max-width: 768px) {
    .grid-cols-2 { grid-template-columns: 1fr; }
    .grid-cols-3 { grid-template-columns: 1fr; }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    body { background: #fff; padding: 0; }
    #particles-canvas, #loading-screen, .navigation-bar, .presentation-header { display: none !important; }
    #presentationCard {
        box-shadow: none;
        border: 1px solid #ddd;
        height: auto;
        page-break-inside: avoid;
    }
    .slide { position: relative !important; display: flex !important; opacity: 1 !important; page-break-after: always; }
}

/* ============================================
   MODAIS — SISTEMA DE APRESENTAÇÕES FIREBASE
   ============================================ */

/* Overlay do modal */
.ppt-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ppt-modal.hidden { display: none; }

.ppt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Caixa do modal */
.ppt-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    animation: ppt-modal-in .2s ease;
}
.ppt-modal-box--wide  { max-width: 820px; }
.ppt-modal-box--full  { max-width: 960px; height: 82vh; }

@keyframes ppt-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.ppt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .875rem;
}
.ppt-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.ppt-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: .25rem .5rem;
    border-radius: .5rem;
    transition: background .15s;
}
.ppt-modal-close:hover { background: #f3f4f6; }

/* Layout de edição */
.ppt-edit-layout {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
}
.ppt-meta-panel {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.ppt-slides-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}
.ppt-slides-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tipografia interna */
.ppt-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: .25rem;
}
.ppt-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .3rem;
}

/* Inputs */
.ppt-form-row {
    display: flex;
    flex-direction: column;
}
.ppt-input {
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid #d1d5db;
    border-radius: .6rem;
    font-size: .875rem;
    font-family: inherit;
    outline: none;
    transition: border .15s;
    background: #fafafa;
    color: #111827;
    box-sizing: border-box;
}
.ppt-input:focus { border-color: #008542; background: #fff; }
.ppt-textarea { resize: vertical; min-height: 60px; }
.ppt-code-editor {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .78rem;
    min-height: 300px;
    resize: none;
    background: #1e1e2e;
    color: #cdd6f4;
    border-color: #313244;
    line-height: 1.6;
}
.ppt-code-editor:focus { border-color: #89b4fa; background: #1e1e2e; }
/* Variante dentro do editor split (sem border-radius no topo — barra cobre) */
.ppt-code-editor--split {
    min-height: unset;
    border-radius: 0 0 .6rem .6rem !important;
    flex: 1;
}

/* ============================================
   EDITOR DE SLIDE — PAINEL DIVIDIDO
   ============================================ */

/* Modal fullscreen para o editor */
.ppt-modal-box--editor {
    max-width:  100vw;
    width:      100vw;
    height:     100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: .875rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    overflow: hidden;
    animation: none;
    background: #f8fafc;
}

/* Botão X do editor fullscreen */
.ppt-modal-box--editor .ppt-modal-close {
    width:  2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    color: #e2e8f0;
    font-weight: 700;
    flex-shrink: 0;
}
.ppt-modal-box--editor .ppt-modal-close:hover {
    background: rgba(239,68,68,.25);
    color: #fca5a5;
}

/* Cabeçalho do editor — fundo escuro para contraste */
.ppt-modal-box--editor .ppt-modal-header {
    background: #1e1e2e;
    border-bottom: 1.5px solid #3d3d56;
    border-radius: .625rem;
    padding: .5rem .875rem;
    margin: 0;
    flex-shrink: 0;
}
.ppt-modal-box--editor .ppt-modal-header h2 {
    color: #cdd6f4;
    font-size: 1rem;
}

/* Linha de campos (título + fundo) — compact */
.slide-fields-row {
    display: flex;
    gap: .625rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: flex-end;
}
.slide-fields-row .ppt-form-row { margin: 0; }
.slide-fields-row .ppt-label {
    font-size: .72rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: .2rem;
}
.slide-fields-row .ppt-input {
    padding: .4rem .65rem;
    font-size: .82rem;
}

/* Contêiner de divisão principal */
.slide-editor-split {
    display: flex;
    gap: .75rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Painel esquerdo — editor de código */
.slide-editor-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* Painel direito — preview ao vivo */
.slide-editor-right {
    width: 44%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Barra de ferramentas (topo de cada painel) */
.slide-editor-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    background: #2a2a3c;
    border: 1.5px solid #3d3d56;
    border-bottom: none;
    border-radius: .6rem .6rem 0 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}
.slide-editor-bar-title {
    font-size: .68rem;
    font-weight: 700;
    color: #89b4fa;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: .15rem;
}

/* Snippets na toolbar — scrollável, sem wrap */
.toolbar-snips {
    display: flex;
    align-items: center;
    gap: .22rem;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.toolbar-snips::-webkit-scrollbar { display: none; }

.toolbar-btn {
    background: rgba(255,255,255,.07);
    color: #cdd6f4;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .3rem;
    padding: .16rem .45rem;
    font-size: .67rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.5;
    flex-shrink: 0;
}
.toolbar-btn:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
}
.toolbar-btn--accent {
    background: rgba(16,185,129,.18);
    border-color: rgba(16,185,129,.4);
    color: #6ee7b7;
    flex-shrink: 0;
}
.toolbar-btn--accent:hover { background: rgba(16,185,129,.32); }
.toolbar-btn--format {
    background: rgba(250,204,21,.12);
    border-color: rgba(250,204,21,.35);
    color: #fde68a;
    flex-shrink: 0;
}
.toolbar-btn--format:hover { background: rgba(250,204,21,.22); }
.toolbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.15);
    margin: 0 .05rem;
    flex-shrink: 0;
    align-self: center;
}

/* Wrapper do iframe de preview */
.slide-preview-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    border-radius: 0 0 .6rem .6rem;
    overflow: hidden;
    background: #0f172a;
    border: 1.5px solid #3d3d56;
    border-top: none;
    display: flex;
    flex-direction: column;
}
#slide-preview-frame {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
    min-height: 0;
}

/* Dot de status do preview */
.preview-dot {
    font-size: .8rem;
    color: #6ee7b7;
    line-height: 1;
    transition: color .25s;
    flex-shrink: 0;
}
.preview-dot.updating { color: #fbbf24; }

/* Form actions dentro do editor — sempre visíveis no rodapé */
.ppt-modal-box--editor .ppt-form-actions {
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: .625rem;
    margin: 0;
    background: #f8fafc;
}
/* Error no editor — não deve comprimir o split */
.ppt-modal-box--editor .ppt-error {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* ============================================
   EXPORT PROGRESS OVERLAY
   ============================================ */
.export-spinner {
    width: 52px; height: 52px;
    border: 4px solid #e5e7eb;
    border-top-color: #008542;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.export-progress-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.export-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #008542, #00a552);
    border-radius: 999px;
    transition: width .3s ease;
}

/* ── Modal Roteiro ── */
.ppt-modal-box--roteiro {
    max-width: 720px;
    height: 82vh;
    display: flex;
    flex-direction: column;
}

/* Abas do roteiro */
.roteiro-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    flex-shrink: 0;
    margin-bottom: .5rem;
}
.roteiro-tab {
    flex: 1;
    padding: .55rem .75rem;
    font-size: .82rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.roteiro-tab:hover { color: #111827; }
.roteiro-tab.active {
    color: #047857;
    border-bottom-color: #047857;
}

/* Painéis de aba */
.roteiro-tab-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .5rem;
}
.roteiro-tab-panel.hidden { display: none; }

/* Textarea editável */
.roteiro-textarea {
    flex: 1;
    min-height: 0;
    resize: none;
    background: #fafbfc;
    color: #1f2937;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: .82rem;
    line-height: 1.65;
    padding: 1rem 1.25rem;
    border-radius: .625rem;
    border: 1.5px solid #d1d5db;
    outline: none;
    transition: border-color .2s;
    tab-size: 4;
}
.roteiro-textarea:focus {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4,120,87,.1);
}
.roteiro-textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.roteiro-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.roteiro-toolbar .ppt-spacer { flex: 1; }
.roteiro-status {
    flex: 1;
    font-size: .78rem;
    color: #166534;
    font-weight: 600;
}
.ppt-btn--sm {
    padding: .3rem .7rem;
    font-size: .78rem;
}
.roteiro-pre {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: .78rem;
    line-height: 1.55;
    padding: 1rem 1.25rem;
    border-radius: .625rem;
    border: 1.5px solid #3d3d56;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    tab-size: 4;
    -webkit-user-select: all;
    user-select: all;
}

/* Erro */
.ppt-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-size: .8rem;
}

/* Botões */
.ppt-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1rem;
    border: none;
    border-radius: .6rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    white-space: nowrap;
    font-family: inherit;
}
.ppt-btn:disabled { opacity: .5; cursor: not-allowed; }
.ppt-btn--primary  { background: #008542; color: #fff; }
.ppt-btn--primary:hover { background: #006b35; }
.ppt-btn--danger   { background: #ef4444; color: #fff; }
.ppt-btn--danger:hover { background: #dc2626; }
.ppt-btn--success  { background: #22c55e; color: #fff; }
.ppt-btn--success:hover { background: #16a34a; }
.ppt-btn--ghost    { background: #f3f4f6; color: #374151; }
.ppt-btn--ghost:hover { background: #e5e7eb; }
.ppt-btn--warning  { background: #f59e0b; color: #fff; }
.ppt-btn--warning:hover { background: #d97706; }

.ppt-form-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: .5rem;
}

/* Barra de ações */
.ppt-actions-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.ppt-spacer { flex: 1; }
.ppt-user-label {
    font-size: .75rem;
    color: #6b7280;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lista de apresentações */
.ppt-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 2px;
}
.ppt-loading {
    text-align: center;
    color: #9ca3af;
    padding: 2rem;
    font-size: .875rem;
}
.ppt-empty {
    text-align: center;
    color: #9ca3af;
    padding: 2rem;
    font-size: .875rem;
}

/* Modal Apresentações — mais largo */
.ppt-modal-box--presentations { max-width: 680px; }

/* Card de apresentação — layout em 2 linhas */
.ppt-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: .875rem;
    transition: border .15s, background .15s;
    text-align: left;
}
.ppt-card:hover { border-color: #008542; background: #f0fdf4; }
.ppt-card.active { border-color: #008542; background: #f0fdf4; }

/* Linha superior: info + botões primários */
.ppt-card-row {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.ppt-card-info { flex: 1; min-width: 0; }
.ppt-card-title {
    font-size: .9rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ppt-card-meta {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .15rem;
}
.ppt-card-actions {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
    align-items: center;
}
.ppt-card-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: .4rem;
    padding: .25rem .55rem;
    font-size: .75rem;
    cursor: pointer;
    transition: background .12s;
    color: #374151;
    white-space: nowrap;
}
.ppt-card-btn:hover { background: #f3f4f6; }
.ppt-card-btn.danger { color: #ef4444; border-color: #fecaca; }
.ppt-card-btn.danger:hover { background: #fef2f2; }

/* Dropdown de downloads */
.ppt-dl-wrap {
    position: relative;
}
.ppt-dl-trigger {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: .4rem;
    padding: .25rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
}
.ppt-dl-trigger:hover { background: #dcfce7; border-color: #86efac; }
.ppt-dl-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 155px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: .625rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 200;
    padding: .35rem 0;
    animation: ppt-modal-in .12s ease;
}
.ppt-dl-menu.open { display: block; }
.ppt-dl-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: .5rem .85rem;
    font-size: .8rem;
    color: #374151;
    cursor: pointer;
    transition: background .1s;
    font-family: inherit;
}
.ppt-dl-item:hover { background: #f0fdf4; color: #166534; }
.ppt-dl-item + .ppt-dl-item { border-top: 1px solid #f3f4f6; }

/* Lista de slides no editor */
.ppt-slide-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 420px;
}
.ppt-slide-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .6rem;
    background: #fafafa;
    font-size: .8rem;
}
.ppt-slide-item-num {
    font-weight: 700;
    color: #9ca3af;
    width: 22px;
    flex-shrink: 0;
    text-align: center;
}
.ppt-slide-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; }
.ppt-slide-item-actions { display: flex; gap: .3rem; flex-shrink: 0; }

/* Seção expandível */
.ppt-section { display: flex; flex-direction: column; gap: .75rem; }

/* Scrollbar customizada nos modais */
.ppt-list::-webkit-scrollbar,
.ppt-slide-list::-webkit-scrollbar { width: 4px; }
.ppt-list::-webkit-scrollbar-thumb,
.ppt-slide-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* ============================================
   GALERIA DE TEMPLATES
   ============================================ */
.tpl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .875rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: .25rem 2px;
}
.tpl-gallery::-webkit-scrollbar { width: 4px; }
.tpl-gallery::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.tpl-card {
    border: 2px solid #e5e7eb;
    border-radius: .875rem;
    padding: .875rem 1rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s;
    background: #fafafa;
    text-align: left;
}
.tpl-card:hover {
    border-color: #008542;
    background: #f0fdf4;
    transform: translateY(-2px);
}
.tpl-card-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: .5rem;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    gap: .3rem;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.tpl-card-name {
    font-size: .8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .2rem;
}
.tpl-card-desc {
    font-size: .7rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Cores de preview por tipo */
.tpl-prev--capa       { background: linear-gradient(135deg, #008542 0%, #00a552 50%, #FFCC29 100%); }
.tpl-prev--conteudo   { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); color: #374151; }
.tpl-prev--grid2      { background: linear-gradient(135deg, #ecfdf5 0%, #fef2f2 100%); color: #374151; }
.tpl-prev--grid3      { background: linear-gradient(135deg, #fffbeb 0%, #ecfdf5 100%); color: #374151; }
.tpl-prev--grid6      { background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%); color: #374151; }
.tpl-prev--alerta     { background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%); color: #374151; }
.tpl-prev--equacao    { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); color: #374151; }
.tpl-prev--lista      { background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%); color: #374151; }
.tpl-prev--comparativo{ background: linear-gradient(135deg, #fef2f2 0%, #f0fdf4 100%); color: #374151; }
.tpl-prev--fechamento { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 60%, #fffbeb 100%); }
.tpl-prev--sinal      { background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%); color: #374151; }
.tpl-prev--cards-icon { background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%); color: #374151; }
.tpl-prev--acoes      { background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%); color: #374151; }

/* ============================================
   ANIMAÇÕES SVG — ILUSTRAÇÕES DE APRESENTAÇÃO
   (compartilhadas entre fadiga.html e qualquer
   slide salvo no Firebase)
   ============================================ */
@keyframes svgBrainPulse  { 0%,100%{transform:scale(1)}    50%{transform:scale(1.04)} }
@keyframes svgEyeDroop    { 0%,40%,60%,100%{transform:scaleY(1)} 50%{transform:scaleY(.25)} }
@keyframes svgDotBlink    { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes svgMoonFloat   { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-4px)} }
@keyframes svgStarTwinkle { 0%,100%{opacity:1} 50%{opacity:.25} }
@keyframes svgClockHand   { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes svgWarnPulse   { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.06)} }
@keyframes svgArrowSlide  { 0%,100%{transform:translateX(0)} 50%{transform:translateX(5px)} }
@keyframes svgCycleSpin   { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes svgSunRays     { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

.svga-brain  { animation: svgBrainPulse  3.5s ease-in-out infinite; transform-origin: 50% 50%; }
.svga-eye    { animation: svgEyeDroop    4s   ease-in-out infinite; transform-origin: 50% 100%; }
.svga-blink  { animation: svgDotBlink    1.8s ease-in-out infinite; }
.svga-moon   { animation: svgMoonFloat   4s   ease-in-out infinite; }
.svga-star1  { animation: svgStarTwinkle 2.2s ease-in-out infinite; }
.svga-star2  { animation: svgStarTwinkle 2.2s .8s  ease-in-out infinite; }
.svga-star3  { animation: svgStarTwinkle 2.2s 1.6s ease-in-out infinite; }
.svga-clock  { animation: svgClockHand   5s   linear   infinite; transform-origin: 40px 40px; }
.svga-warn   { animation: svgWarnPulse   2.5s ease-in-out infinite; }
.svga-arrow  { animation: svgArrowSlide  1.8s ease-in-out infinite; }
.svga-cycle  { animation: svgCycleSpin   12s  linear   infinite; transform-origin: 50% 50%; }
.svga-sun    { animation: svgSunRays     3s   ease-in-out infinite; transform-origin: 50% 50%; }

/* .slide-illust e .illust-svg já definidos na seção SLIDE ILLUSTRATIONS acima */

/* ============================================
   ANIMAÇÕES EQA — CHECAGEM DE CAMPO
   (equipment / technology theme)
   ============================================ */
@keyframes eqaFloat      { 0%,100%{transform:translateY(0)}    50%{transform:translateY(-6px)} }
@keyframes eqaPulse      { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.07);opacity:.8} }
@keyframes eqaGlow       { 0%,100%{opacity:.55} 50%{opacity:1} }
@keyframes eqaSlideRight { from{transform:translateX(-18px);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes eqaCheck      { from{stroke-dashoffset:60} to{stroke-dashoffset:0} }
@keyframes eqaSpin       { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes eqaProgress   { from{width:0} to{width:100%} }
@keyframes eqaFadeUp     { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes eqaBlipMove   { 0%{offset-distance:0%} 100%{offset-distance:100%} }

/* Fix: roadmap step wrappers devem ficar acima da linha conectora posicionada absolutamente */
[class*="eqa-fadeup"] { position: relative; z-index: 1; }

.eqa-float     { animation: eqaFloat      3.2s ease-in-out infinite; }
.eqa-pulse     { animation: eqaPulse      2.2s ease-in-out infinite; transform-origin:50% 50%; }
.eqa-glow      { animation: eqaGlow       2.5s ease-in-out infinite; }
.eqa-check     { stroke-dasharray:60; stroke-dashoffset:60;
                 animation: eqaCheck      1s   .4s ease-out forwards; }
.eqa-spin      { animation: eqaSpin       10s  linear   infinite; transform-origin:50% 50%; }
.eqa-slide-r   { animation: eqaSlideRight .7s  ease-out forwards; }
.eqa-slide-r2  { animation: eqaSlideRight .7s  .2s ease-out forwards; opacity:0; }
.eqa-slide-r3  { animation: eqaSlideRight .7s  .4s ease-out forwards; opacity:0; }
.eqa-slide-r4  { animation: eqaSlideRight .7s  .6s ease-out forwards; opacity:0; }
.eqa-slide-r5  { animation: eqaSlideRight .7s  .8s ease-out forwards; opacity:0; }
.eqa-slide-r6  { animation: eqaSlideRight .7s 1.0s ease-out forwards; opacity:0; }
.eqa-fadeup    { animation: eqaFadeUp     .8s  ease-out forwards; }
.eqa-fadeup2   { animation: eqaFadeUp     .8s  .2s ease-out forwards; opacity:0; }
.eqa-fadeup3   { animation: eqaFadeUp     .8s  .4s ease-out forwards; opacity:0; }
.eqa-fadeup4   { animation: eqaFadeUp     .8s  .6s ease-out forwards; opacity:0; }
.eqa-fadeup5   { animation: eqaFadeUp     .8s  .8s ease-out forwards; opacity:0; }
.eqa-fadeup6   { animation: eqaFadeUp     .8s 1.0s ease-out forwards; opacity:0; }


