/* ============================================
   VELI MARKET SHARE - PIXEL PERFECT SLIDE
   ============================================ */

/* === LOCK SCREEN === */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lock-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lock-logo {
    margin-bottom: 20px;
}

.lock-logo img {
    filter: drop-shadow(0 4px 12px rgba(180, 217, 132, 0.3));
}

.lock-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.lock-input {
    width: 280px;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 2px;
}

.lock-input:focus {
    border-color: #B4D984;
    box-shadow: 0 0 20px rgba(180, 217, 132, 0.3);
}

.lock-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.lock-btn {
    display: block;
    width: 280px;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #B4D984 0%, #8BC34A 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 217, 132, 0.4);
}

.lock-error {
    color: #ff6b6b;
    margin-top: 16px;
    font-size: 14px;
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE === */
html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    background: #1a1a1a;
}

/* === FLOATING EXPORT WIDGET === */
.export-widget {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    z-index: 2000;
}

.export-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.export-fab:hover {
    transform: scale(1.1);
    background: #333;
}

.export-menu {
    position: absolute;
    top: 0;
    left: 60px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.2s ease-out;
}

.export-widget.active .export-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.menu-item {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    transition: background 0.15s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

/* Hide widget in export mode */
body.export-mode .export-widget {
    display: none !important;
}

/* === SLIDE WRAPPER === */
.slide-wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* === MAIN SLIDE === */
.slide {
    width: 1920px;
    height: 1080px;
    background: #FFF9ED;
    margin: -245px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding-top: 48px;
    transform-origin: center center;
    transform: scale(0.52);
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.slide:first-child {
    margin-top: 0;
    margin-bottom: -245px;
}

.slide:last-child {
    margin-bottom: 100px;
}

.slide:nth-child(2) {
    margin-top: 30px;
}

/* Fix for dynamically added slides (3rd and beyond) */
.slide:nth-child(n+3) {
    margin-top: 30px;
}

/* === HEADER === */
.header {
    width: 1760px;
    height: 100px;
    background: #000000;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.logo-circle {
    width: 75px;
    height: 75px;
    min-width: 75px;
    background: #A8D779;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.header-title {
    font-family: 'Aktiv Grotesk', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 42px;
    color: #FFFFFF;
    margin-left: 24px;
    letter-spacing: -0.5px;
}

/* === CHART PANEL === */
.chart-panel {
    width: 1760px;
    height: 580px;
    background: #FFEDD1;
    border-radius: 20px;
    overflow: hidden;
}

.chart-area {
    width: 100%;
    height: 100%;
}

/* === TABLE === */
.table-panel {
    width: 1760px;
    background: transparent;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #E2DDD7;
    border-radius: 16px;
    overflow: hidden;
}

.data-table thead tr {
    background: #545351;
    height: 44px;
}

.data-table th {
    color: #FFFFFF;
    font-family: 'Aktiv Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 0 32px;
    text-align: left;
    vertical-align: middle;
}

.data-table td {
    padding: 0 32px;
    text-align: left;
    vertical-align: middle;
    border-right: 2px solid #FFFFFF;
}

.data-table td:last-child {
    border-right: none;
}

.data-table tbody tr {
    height: 44px;
    border-bottom: 2px solid #FFFFFF;
}

.data-table tbody td {
    color: #2B2B2B;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #FFFFFF;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* EDITABLE CELLS */
.data-table td[contenteditable="true"] {
    cursor: text;
    transition: all 0.15s;
}

.data-table td[contenteditable="true"]:hover {
    background: rgba(255, 255, 255, 0.5);
    outline: 2px solid #666;
}

.data-table td[contenteditable="true"]:focus {
    background: #fff;
    color: #000;
    outline: 3px solid #000;
    position: relative;
    z-index: 10;
}

/* === RESPONSIVE === */
@media (min-height: 900px) and (min-width: 1600px) {
    .slide {
        transform: scale(0.65);
    }
}

@media (min-height: 1000px) and (min-width: 1800px) {
    .slide {
        transform: scale(0.75);
    }
}

@media (max-height: 700px) {
    .slide {
        transform: scale(0.45);
    }
}

@media (max-width: 1200px) {
    .slide {
        transform: scale(0.42);
    }
}

/* === EXPORT MODE === */
body.export-mode {
    background: #FFF9ED !important;
    width: 1920px !important;
    height: 1080px !important;
}

body.export-mode .slide-wrapper {
    width: 1920px !important;
    height: 1080px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background: #FFF9ED !important;
}

body.export-mode .slide {
    transform: none !important;
    margin: 0 !important;
}

/* === SLIDE NAVIGATION === */
.slide-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    padding: 16px 12px;
    border-radius: 30px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.nav-dot.active {
    background: #A8D779;
    transform: scale(1.3);
}

body.export-mode .slide-nav {
    display: none !important;
}

/* === SLIDE 2: What is Veli === */
#slide-2 {
    background: #FFF9ED;
    padding: 0;
    gap: 0;
}

.slide-2-layout {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 0;
}

.slide-2-left {
    flex: 1;
    background: #FFF9ED;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.slide-2-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.icon-circle.green {
    background: #B4D984;
}

.icon-circle svg {
    width: 40px;
    height: 40px;
}

.slide-2-title {
    font-size: 80px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Aktiv Grotesk', 'Inter', sans-serif;
    line-height: 1;
    margin: 0;
}

.slide-2-text {
    font-size: 36px;
    line-height: 1.55;
    color: #1a1a1a;
    max-width: 650px;
}

.slide-2-year {
    font-size: 140px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    margin-top: auto;
    letter-spacing: -4px;
}

.slide-2-right {
    flex: 1;
    background: #4a4a4a;
    border-radius: 40px 0 0 40px;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-2-right-title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 60px;
    font-family: 'Aktiv Grotesk', 'Inter', sans-serif;
    line-height: 1.15;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 40px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-icon.green-bg {
    background: #B4D984;
}

.feature-icon.yellow-bg {
    background: #D4E157;
}

.feature-icon.teal-bg {
    background: #80CBC4;
}

.feature-icon.dark-bg {
    background: #2a2a2a;
}

.feature-icon-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.feature-content {
    font-size: 28px;
    line-height: 1.5;
    color: #e0e0e0;
    padding-top: 6px;
}

.feature-content strong {
    color: #fff;
}

/* === LOADING OVERLAY === */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #A8D779;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

/* === AI FAB BUTTON === */
.ai-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B4D984 0%, #A8D779 100%);
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(180, 217, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
}

.ai-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 32px rgba(180, 217, 132, 0.6);
}

.ai-fab:active {
    transform: scale(0.95);
}

.ai-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
}

body.export-mode .ai-fab {
    display: none !important;
}

/* === AI CHAT MODAL === */
.ai-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ai-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.ai-modal-content {
    width: 95%;
    max-width: 750px;
    max-height: 80vh;
    background: #1a1a1a;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-modal.active .ai-modal-content {
    transform: scale(1) translateY(0);
}

.ai-modal-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-modal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.ai-modal-logo .logo-circle.small {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.ai-model-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.ai-model-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-model-selector:focus {
    border-color: #B4D984;
    box-shadow: 0 0 0 2px rgba(180, 217, 132, 0.2);
}

.ai-model-selector option {
    background: #1a1a1a;
    color: #fff;
}

/* Tone, Verbosity & Slides Selectors */
.ai-tone-selector,
.ai-verbosity-selector,
.ai-slides-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    min-width: 80px;
}

.ai-modal-close {
    margin-left: auto;
}

.ai-tone-selector:hover,
.ai-verbosity-selector:hover,
.ai-slides-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-tone-selector:focus,
.ai-verbosity-selector:focus,
.ai-slides-selector:focus {
    border-color: #B4D984;
    box-shadow: 0 0 0 2px rgba(180, 217, 132, 0.2);
}

.ai-tone-selector option,
.ai-verbosity-selector option,
.ai-slides-selector option {
    background: #1a1a1a;
    color: #fff;
}

.ai-modal-logo .logo-circle.small img {
    width: 60%;
    height: 60%;
}

.ai-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === AI MESSAGES === */
.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    max-height: 400px;
}

.ai-message {
    display: flex;
    gap: 12px;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-content {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.ai-message.assistant .ai-message-content {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

.ai-message.user .ai-message-content {
    background: linear-gradient(135deg, #B4D984 0%, #A8D779 100%);
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
}

.ai-message-content strong {
    color: #fff;
}

.ai-message.user .ai-message-content strong {
    color: #1a1a1a;
}

/* === AI FILE PREVIEW === */
.ai-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px;
    max-height: 120px;
    overflow-y: auto;
}

.ai-file-preview:empty {
    display: none;
}

.ai-file-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 200px;
}

.ai-file-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.ai-file-item .file-name {
    font-size: 12px;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.ai-file-item .file-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #EF4123;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.ai-file-item .file-remove:hover {
    background: #d63920;
}

/* === AI INPUT AREA === */
.ai-input-area {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-attach {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-attach:hover {
    background: rgba(180, 217, 132, 0.2);
    border-color: #B4D984;
    color: #B4D984;
}

.ai-attach.has-files {
    background: #B4D984;
    border-color: #B4D984;
    color: #1a1a1a;
}

.ai-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.ai-input:focus {
    border-color: #B4D984;
}

.ai-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-send {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B4D984 0%, #A8D779 100%);
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(180, 217, 132, 0.4);
}

.ai-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === AI STATUS === */
.ai-status {
    padding: 0 24px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    min-height: 20px;
}

.ai-status.error {
    color: #EF4123;
}

.ai-status.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #B4D984;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* === SLIDE CONTROLS === */
.slide-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

.slide:hover .slide-controls {
    opacity: 1;
}

.slide-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slide-control-btn.edit-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.slide-control-btn.edit-btn:hover {
    background: #B4D984;
    color: #1a1a1a;
}

.slide-control-btn.save-btn {
    background: #B4D984;
    color: #1a1a1a;
}

.slide-control-btn.save-btn:hover {
    background: #9acc6a;
}

.slide-control-btn.save-btn.hidden {
    display: none;
}

.slide-control-btn.edit-btn.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.slide-control-btn.chat-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.slide-control-btn.chat-btn:hover {
    background: #B3EFF0;
    color: #1a1a1a;
}

.slide-control-btn.delete-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.slide-control-btn.delete-btn:hover {
    background: #EF4123;
    color: #fff;
}

.slide-control-btn.move-up-btn,
.slide-control-btn.move-down-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.slide-control-btn.move-up-btn:hover {
    background: #3b82f6;
    color: #fff;
}

.slide-control-btn.move-down-btn:hover {
    background: #3b82f6;
    color: #fff;
}

/* === EDITABLE TEXT === */
.editable-text {
    transition: all 0.2s;
}

.slide.edit-mode .editable-text {
    outline: 2px dashed #B4D984;
    outline-offset: 4px;
    cursor: text;
    background: rgba(180, 217, 132, 0.1);
    border-radius: 4px;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.slide.edit-mode {
    overflow: hidden;
}

.slide.edit-mode .editable-text:focus {
    outline: 3px solid #B4D984;
    background: rgba(180, 217, 132, 0.2);
}

/* Editable table cells in edit mode */
.slide.edit-mode td[contenteditable="true"] {
    outline: 2px dashed #B4D984;
    outline-offset: 2px;
    cursor: text;
    background: rgba(180, 217, 132, 0.1);
}

.slide.edit-mode td[contenteditable="true"]:focus {
    outline: 3px solid #B4D984;
    background: rgba(180, 217, 132, 0.2);
}

.slide.edit-mode .slide-controls {
    opacity: 1;
}

.slide.edit-mode .edit-btn {
    display: none;
}

.slide.edit-mode .save-btn {
    display: flex !important;
}

body.export-mode .slide-controls {
    display: none !important;
}

/* === SLIDE POSITION FIX === */
.slide {
    position: relative;
}

/* === SLIDE 3: Drivers Of Profitability === */
#slide-3 {
    background: #FFF9ED;
    padding: 48px 80px;
    gap: 40px;
}

#slide-3 .header {
    width: 100%;
    max-width: 1760px;
}

.profitability-table-panel {
    width: 100%;
    max-width: 1760px;
    background: transparent;
    flex: 1;
    display: flex;
    align-items: center;
}

.profitability-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #E8F5D9;
}

.profitability-table thead tr {
    background: #E8F5D9;
    height: 60px;
}

.profitability-table th {
    color: #2B2B2B;
    font-family: 'Aktiv Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 0 24px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.profitability-table th:first-child {
    text-align: left;
    width: 200px;
}

.profitability-table td {
    padding: 16px 24px;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    font-weight: 500;
    color: #2B2B2B;
    background: #E8F5D9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profitability-table td:first-child {
    text-align: left;
}

.profitability-table .row-label {
    font-weight: 600;
    color: #1a1a1a;
}

.profitability-table .row-label.sub-label {
    padding-left: 40px;
    font-weight: 500;
    color: #4a4a4a;
}

.profitability-table .highlight-row td {
    background: #D8EDBE;
}

.profitability-table .spacer-row td {
    height: 24px;
    background: #E8F5D9;
    border-bottom: none;
}

.profitability-table .ebitda-row td {
    background: #C8E5A5;
}

.profitability-table tbody tr:last-child td {
    border-bottom: none;
}

/* Editable cells for profitability table */
.profitability-table td[contenteditable="true"] {
    cursor: text;
    transition: all 0.15s;
}

.profitability-table td[contenteditable="true"]:hover {
    background: rgba(255, 255, 255, 0.5);
    outline: 2px solid #666;
}

.profitability-table td[contenteditable="true"]:focus {
    background: #fff;
    color: #000;
    outline: 3px solid #000;
    position: relative;
    z-index: 10;
}

/* Year watermark for slide 3 */
.slide-year-watermark {
    position: absolute;
    bottom: 40px;
    left: 80px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.06);
    font-family: 'Aktiv Grotesk', 'Inter', sans-serif;
}