:root {
    /* Color Palette - Premium Dark Theme */
    --bg-color: #0f172a; /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    
    --primary-color: #3b82f6; /* Blue 500 */
    --primary-hover: #2563eb; /* Blue 600 */
    --accent-color: #10b981; /* Emerald 500 */
    --danger-color: #ef4444; /* Red 500 */
    
    /* Effects */
    --glass-blur: blur(16px);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Decorations (Glowing Orbs) */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -100px;
    right: -100px;
    opacity: 0.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    padding: 24px 0;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    z-index: 50;
    background: rgba(15, 23, 42, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.icon-logo {
    color: #60a5fa;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--accent-color);
}

/* Converter Card - Glassmorphism */
.converter-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.converter-card:hover {
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 30px;
}

.premium-select {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    /* Custom arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: var(--transition);
}

.premium-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Merge Toggle Switch */
.merge-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.merge-option.hidden {
    display: none !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--card-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: white;
}

.merge-label-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Split Option Layout */
.split-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.split-option.hidden {
    display: none !important;
}

.split-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.premium-input {
    width: 100%;
    max-width: 250px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: monospace;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.premium-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.premium-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.split-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    padding: 60px 20px;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.hidden-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.drop-zone:hover .upload-icon-wrapper {
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.2);
}

.drop-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* --- Novas Seções: Ferramentas e Privacidade --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.125rem;
}

/* Informações de Ferramentas */
.features-section {
    padding: 60px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Informações de Privacidade */
.privacy-section {
    padding: 60px 24px 80px;
    position: relative;
}

.privacy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.pillar {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pillar h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.pillar p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .privacy-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.drop-subtext {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Trust Signals & Social Proof */
.trust-signals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.live-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    padding: 10px 24px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.live-stats strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.stat-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    color: #64748b; /* Slate 500 - look mais enterprise/discreto */
    font-size: 0.85rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.badge-item svg {
    opacity: 0.7;
}

/* Ads Spaces */
.ad-container {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 40px;
    position: relative;
    min-height: 90px;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
    z-index: -1;
}

.ad-top {
    max-width: 800px;
    min-height: 90px;
    height: auto;
    margin-top: 20px;
    padding: 10px;
}

.ad-middle {
    max-width: 970px;
    min-height: 250px;
    height: auto;
    padding: 10px;
}

/* Status / Progress Zone */
.status-zone {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
}

.hidden {
    display: none !important;
}

/* File Preview Grid */
.file-preview-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    width: 100%;
}

.file-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-thumb {
    width: 60px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumb-icon {
    font-size: 2rem;
}

.file-info {
    width: 100%;
}

.file-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-size {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    display: block;
}

/* Partner Slider - Affiliate Module */
.partner-slider-container {
    margin: 20px auto 40px;
    padding: 0 24px;
    position: relative;
    max-width: 1000px;
}

.partner-slider {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px 40px;
    min-height: 250px; /* Altura fixa maior para evitar pulos */
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-premium);
    margin: 0 auto;
}

.partner-slide {
    display: none;
    width: 100%;
    animation: slideUp 0.5s ease forwards;
}

.partner-slide.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content {
    flex: 1;
    text-align: left;
}

.slide-image {
    flex: 0 0 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.slide-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.slide-content h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.slide-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.slide-desc-wrapper {
    max-height: 85px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 8px;
}

/* Custom Scrollbar for the Description Box */
.slide-desc-wrapper::-webkit-scrollbar {
    width: 4px;
}

.slide-desc-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.slide-desc-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.slide-desc-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.btn-slide {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-slide:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 10px;
}

/* Security Status Section (Substituindo Anúncio) */
.security-status-section {
    margin: 40px auto;
}

.security-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: var(--glass-blur);
}

.security-info {
    flex: 1;
}

.security-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.security-title h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.security-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 80% ;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-green {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 768px) {
    .partner-slide.active {
        flex-direction: column-reverse;
        text-align: center;
        gap: 15px;
        padding: 10px 0;
    }
    .slide-content {
        text-align: center;
    }
    .slide-image {
        flex: 0 0 100px;
        height: 100px;
    }
    .security-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .security-info p {
        max-width: 100%;
    }
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    width: 0%;
    transition: width 0.4s ease;
}

.status-text {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Ethics and Legal Summary Sections */
.ethics-section {
    margin-bottom: 60px;
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.mini-legal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
}

.mini-legal-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.mini-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.mini-card-head h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.mini-legal-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    .ad-top, .ad-middle {
        max-width: 100%;
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .trust-badges {
        gap: 12px;
        font-size: 0.75rem;
        flex-direction: row;
    }
    .badge-item svg {
        width: 14px;
        height: 14px;
    }
    .live-stats {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .live-stats strong {
        font-size: 1rem;
    }
}

/* ==================================================
   V12.0 - PDF EDITOR OVERLAY (CLIENT-SIDE)
   ================================================== */
.editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-overlay.hidden {
    display: none !important;
}

.editor-header {
    height: 70px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.editor-tools {
    display: flex;
    gap: 10px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.tool-btn:hover, .tool-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.tool-btn.danger {
    color: #ef4444;
}
.tool-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.tool-btn.danger-outline {
    background: transparent;
    color: #ef4444;
    border-color: #ef4444;
}

.editor-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.editor-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.editor-body {
    flex: 1;
    overflow: auto;
    padding: 30px;
    background: #0b1121;
}

.canvas-wrapper {
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: #fff;
    margin: 0 auto !important;
}

#pdfViewerCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.canvas-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
}

.editor-success-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editor-success-layer.hidden {
    display: none !important;
}

.success-card {
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
}

.shield-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ==================================================
   RESPONSIVIDADE DO EDITOR (MOBILE)
   ================================================== */
@media (max-width: 768px) {
    .editor-header {
        height: auto;
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .editor-tools {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        /* Custom Scrollbar for touch */
        -webkit-overflow-scrolling: touch;
    }

    .editor-tools::-webkit-scrollbar {
        height: 4px;
    }
    .editor-tools::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 4px;
    }

    .tool-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .editor-pagination {
        width: 100%;
        justify-content: space-between;
    }

    .editor-actions {
        width: 100%;
        justify-content: space-between;
    }

    .editor-body {
        padding: 10px;
    }
}
