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

body {
    font-family: 'Instrument Sans', sans-serif;
    background: #0e0e0e;
    color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* TOP BAR */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    z-index: 10;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9a9a94;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
}
.back-btn:hover { color: #fff; }
.back-btn svg { width: 16px; height: 16px; }
.topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.topbar-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: #ede9fe22;
    color: #a78bfa;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slide-counter {
    font-size: 13px;
    color: #6a6a64;
}
.slide-counter span { color: #fff; font-weight: 600; }
.btn-outline {
    padding: 7px 16px;
    border-radius: 7px;
    border: 1px solid #333;
    background: transparent;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: #555; color: #fff; }

/* MAIN AREA */
.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* SLIDE PANEL */
.slide-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
}

/* Outer wrapper — sets visible size, no overflow */
.slide-wrapper {
    position: relative;
    /* sized by JS to match 16:9 */
}

/* Clip container — same size as wrapper */
.slide-clip {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* All slides are fixed 1280×720, scaled down by JS */
.slide {
    width: 1280px;
    height: 720px;
    transform-origin: top left;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}
.slide.active { display: flex; }

/* NAV ARROWS */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff12;
    border: 1px solid #ffffff18;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.15s;
}
.nav-arrow:hover { background: #ffffff22; }
.nav-arrow.prev { left: 8px; }
.nav-arrow.next { right: 8px; }
.nav-arrow svg { width: 18px; height: 18px; }

/* THUMBNAIL SIDEBAR */
.sidebar {
    width: 200px;
    background: #161616;
    border-left: 1px solid #2a2a2a;
    overflow-y: auto;
    padding: 16px 12px;
    flex-shrink: 0;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    color: #4a4a44;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 4px;
}

.thumb {
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    position: relative;
}
.thumb.active { border-color: #7c3aed; }
.thumb:hover:not(.active) { border-color: #444; }
.thumb-num {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}

/* ===================== SLIDE DESIGNS ===================== */

/* SLIDE 1 — Title */
.s1 {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #7c3aed 100%);
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}
.s1 .eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 20px;
}
.s1 h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 20px;
}
.s1 p {
    font-size: 18px;
    color: #c4b5fd;
    max-width: 520px;
    line-height: 1.55;
}
.s1 .deco {
    position: absolute;
    right: -60px;
    top: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.s1 .deco2 {
    position: absolute;
    right: 60px;
    top: 60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.s1-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(196,181,253,0.7);
    padding: 8px 16px;
    border: 1px solid rgba(196,181,253,0.2);
    border-radius: 100px;
    width: fit-content;
}
.s1-author::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    flex-shrink: 0;
}

/* SLIDE 2 — What is AI */
.s2 {
    background: #0f0f1a;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 64px;
}
.slide-header {
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.s2 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 36px;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: 1;
}
.info-box {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #2a2a40;
}
.info-box .icon {
    font-size: 28px;
    margin-bottom: 12px;
}
.info-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.info-box p {
    font-size: 13px;
    color: #7a7a94;
    line-height: 1.6;
}

/* SLIDE 3 — Timeline */
.s3 {
    background: #0a0a0a;
    flex-direction: column;
    padding: 48px 64px;
}
.s3 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 36px;
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    justify-content: center;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    border-left: 2px solid #2a2a2a;
    padding-left: 24px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
}
.timeline-year {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    min-width: 50px;
    padding-top: 2px;
}
.timeline-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.timeline-text p {
    font-size: 12px;
    color: #5a5a5a;
}

/* SLIDE 4 — ML Types */
.s4 {
    background: linear-gradient(160deg, #0f0f1a 0%, #1a0f2e 100%);
    flex-direction: column;
    padding: 48px 64px;
}
.s4 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 36px;
}
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
}
.ml-card {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}
.ml-card .num {
    font-size: 36px;
    font-weight: 700;
    color: rgba(124,58,237,0.3);
    line-height: 1;
    margin-bottom: 8px;
}
.ml-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 10px;
}
.ml-card p {
    font-size: 12px;
    color: #7a7a94;
    line-height: 1.6;
}
.ml-card ul {
    list-style: none;
    margin-top: 12px;
}
.ml-card ul li {
    font-size: 12px;
    color: #9a9a94;
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
}
.ml-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-size: 10px;
}

/* SLIDE 5 — LLMs */
.s5 {
    background: #070714;
    flex-direction: column;
    padding: 48px 64px;
}
.s5 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 8px;
}
.s5 .subtitle {
    font-size: 15px;
    color: #6a6a7a;
    margin-bottom: 32px;
}
.llm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.llm-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #111128;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #1e1e38;
}
.llm-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.llm-info h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.llm-info p { font-size: 12px; color: #5a5a7a; }
.llm-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
    white-space: nowrap;
}

/* SLIDE 6 — Ethics */
.s6 {
    background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0f1a 100%);
    flex-direction: column;
    padding: 48px 64px;
}
.s6 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 36px;
}
.ethics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
}
.ethics-card {
    border-radius: 12px;
    padding: 22px;
    border: 1px solid;
}
.ec-red   { background: rgba(220,38,38,0.08);  border-color: rgba(220,38,38,0.2);  }
.ec-amber { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.ec-blue  { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); }
.ethics-card .e-icon { font-size: 26px; margin-bottom: 10px; }
.ethics-card h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.ethics-card p { font-size: 12px; line-height: 1.6; color: #8a8a84; }

/* SLIDE 7 — Stats */
.s7 {
    background: #0a0a12;
    flex-direction: column;
    padding: 48px 64px;
}
.s7 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 36px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-box {
    background: #111120;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #1e1e30;
    text-align: center;
}
.stat-box .stat-num {
    font-size: 40px;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-box .stat-label { font-size: 12px; color: #5a5a7a; line-height: 1.4; }
.stat-note {
    font-size: 12px;
    color: #3a3a4a;
    text-align: center;
}

/* SLIDE 8 — AGI */
.s8 {
    background: linear-gradient(160deg, #050510 0%, #0f0520 50%, #1a0535 100%);
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}
.s8 .phase-label {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.s8 h2 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}
.s8 h2 em { font-style: normal; color: #a78bfa; }
.phases {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.phase {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
}
.phase .p-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.phase.current .p-label { color: #7c3aed; }
.phase.near    .p-label { color: #6366f1; }
.phase.future  .p-label { color: #8b5cf6; }
.phase h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.phase p  { font-size: 11px; color: #5a5a7a; line-height: 1.5; }
.phase.current { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.08); }

/* SLIDE 9 — Applications */
.s9 {
    background: #080810;
    flex-direction: column;
    padding: 48px 64px;
}
.s9 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 32px;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
}
.app-item {
    background: #0f0f1e;
    border-radius: 12px;
    padding: 20px 16px;
    border: 1px solid #1e1e2e;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.app-item .a-icon { font-size: 28px; margin-bottom: 10px; }
.app-item h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.app-item p { font-size: 11px; color: #5a5a7a; line-height: 1.5; }

/* SLIDE 10 — Uzbekistan */
.s10 {
    background: linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #1a3060 100%);
    flex-direction: column;
    padding: 48px 64px;
}
.s10 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 32px;
}
.uz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}
.uz-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 22px;
}
.uz-card h3 { font-size: 15px; font-weight: 600; color: #60a5fa; margin-bottom: 10px; }
.uz-card ul { list-style: none; }
.uz-card ul li {
    font-size: 13px;
    color: #9ab4cc;
    padding: 5px 0;
    padding-left: 16px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.uz-card ul li:last-child { border-bottom: none; }
.uz-card ul li::before { content: '•'; position: absolute; left: 0; color: #3b82f6; }

/* SLIDE 11 — Challenges */
.s11 {
    background: #0a0a0a;
    flex-direction: column;
    padding: 48px 64px;
}
.s11 h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 36px;
}
.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    justify-content: center;
}
.challenge-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #111;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #1e1e1e;
}
.c-icon { font-size: 22px; flex-shrink: 0; }
.c-text h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.c-text p { font-size: 12px; color: #5a5a5a; }
.c-level {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}
.c-high   { background: rgba(220,38,38,0.15);  color: #f87171; }
.c-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.c-low    { background: rgba(34,197,94,0.15);  color: #4ade80; }

/* SLIDE 12 — Conclusion */
.s12 {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #7c3aed 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 64px;
}
.s12 .thanks { font-size: 13px; font-weight: 600; color: #c4b5fd; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.s12 h2 { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.s12 p { font-size: 16px; color: #c4b5fd; max-width: 480px; line-height: 1.6; margin-bottom: 36px; }
.s12 .prez-brand { font-size: 18px; font-weight: 700; color: #fff; }
.s12 .prez-brand span { color: #c4b5fd; }
.s12 .deco { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.04); bottom: -80px; left: -80px; }

/* SLIDE image-text */
.s-image-text {
    background: #0d0d1a;
    flex-direction: row;
    overflow: hidden;
}
.s-image-text .it-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a0f2e 100%);
    position: relative;
    z-index: 1;
}
.s-image-text .it-header {
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.s-image-text .it-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.s-image-text .it-text {
    font-size: 14px;
    color: #9a8ab4;
    line-height: 1.7;
}
.s-image-text .it-right {
    width: 50%;
    position: relative;
    overflow: hidden;
}
.s-image-text .it-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.s-image-text .it-right .it-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,26,0.5) 0%, transparent 40%);
}
.s-image-text .it-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.s-image-text .it-placeholder i {
    font-size: 64px;
    color: rgba(255,255,255,0.15);
}

/* SLIDE list */
.s-list {
    background: #0a0a12;
    flex-direction: column;
    padding: 48px 64px;
}
.s-list h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 28px;
}
.list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}
.list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #111120;
    border-radius: 10px;
    padding: 14px 20px;
    border: 1px solid #1e1e30;
}
.list-num {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    flex-shrink: 0;
}
.list-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.list-content p {
    font-size: 12px;
    color: #5a5a7a;
    line-height: 1.5;
}

/* SLIDE big-quote */
.s-quote {
    background: linear-gradient(160deg, #050510 0%, #0f0520 100%);
    flex-direction: column;
    justify-content: center;
    padding: 64px 80px;
}
.quote-mark {
    font-size: 110px;
    line-height: 0.8;
    font-weight: 700;
    color: rgba(124,58,237,0.25);
    margin-bottom: 20px;
    font-family: Georgia, serif;
}
.quote-body {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    letter-spacing: -0.5px;
    max-width: 900px;
    margin-bottom: 24px;
}
.quote-source {
    font-size: 15px;
    font-weight: 500;
    color: #a78bfa;
}
.quote-sub {
    font-size: 13px;
    color: #5a5a7a;
    max-width: 700px;
    line-height: 1.6;
    margin-top: 14px;
}

/* Thumbnail title label */
.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    font-size: 7px;
    color: rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px;
    width: 420px;
    max-width: 90vw;
}
.modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.modal p {
    font-size: 13px;
    color: #6a6a64;
    margin-bottom: 24px;
}
.format-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #111;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    color: #fff;
    text-align: center;
}
.format-btn:hover { background: #1a1a1a; border-color: #555; }
.format-btn .f-icon { font-size: 32px; }
.format-btn .f-label { font-size: 14px; font-weight: 600; }
.format-btn .f-desc { font-size: 11px; color: #5a5a5a; }
.format-btn.pdf-btn:hover  { border-color: #ef4444; }
.format-btn.pptx-btn:hover { border-color: #f97316; }
.modal-close {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: transparent;
    color: #6a6a64;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s;
}
.modal-close:hover { color: #fff; }
.format-btn.loading { opacity: 0.5; pointer-events: none; }

/* ─── Big-Text Slide ───────────────────────────────────────── */
.slide.s-big-text {
    background: linear-gradient(135deg, #052e16 0%, #14532d 60%, #052e16 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.slide.s-big-text::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, #16a34a18, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.big-text-header {
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #4ade80; z-index: 1;
}
.big-num {
    font-size: 130px; font-weight: 800;
    color: #fff; line-height: 1;
    letter-spacing: -5px; z-index: 1;
}
.big-num-sub {
    font-size: 22px; color: #4ade80;
    font-weight: 600; z-index: 1;
}
.big-num-desc {
    font-size: 15px; color: #6b7280;
    max-width: 560px; line-height: 1.6; z-index: 1;
}

/* ─── Chart Slide ──────────────────────────────────────────── */
.slide.s-chart {
    background: #070714;
    padding: 48px 64px 44px;
    flex-direction: column;
}
.slide.s-chart .slide-header { margin-bottom: 4px; }
.slide.s-chart h2 { margin: 0 0 2px; font-size: 34px; }
.chart-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.chart-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    border-bottom: 1px solid #1f1f3a;
    padding-bottom: 0;
    min-height: 0;
}
.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.chart-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 8px;
    transition: opacity 0.2s;
}
.chart-bar.chart-bar-neg {
    border-radius: 0 0 8px 8px;
    align-items: flex-end;
}
.chart-bar-val {
    position: absolute;
    top: -26px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.chart-bar-neg .chart-bar-val { top: auto; bottom: -26px; }
.chart-bar-label {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
    width: 100%;
}
.chart-note {
    font-size: 11px;
    color: #374151;
    margin-top: 14px;
    align-self: flex-end;
}

.progress-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.progress-overlay.open { display: flex; }
.progress-overlay p { font-size: 15px; color: #ccc; }
.progress-bar-wrap { width: 260px; height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: #7c3aed; border-radius: 2px; transition: width 0.2s; }
