* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: linear-gradient(145deg, #0b0b0f 0%, #1a1015 100%);
    min-height: 100vh;
    color: #f0f0f5;
    padding-top: 70px;
    width: 100%;
    overflow-x: hidden;
}
@media (max-width: 700px) {
    body {
        padding-top: 60px;
    }
}
* {
    cursor: auto;
}
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: rgba(20, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid #ff4d4d;
    border-radius: 8px;
    padding: 14px 20px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(255, 0, 0, 0.3);
    transform: translateX(120%);
    animation: slideToast 0.3s forwards;
    pointer-events: auto;
    border: 1px solid rgba(255, 77, 77, 0.3);
}
@keyframes slideToast { to { transform: translateX(0); } }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 5, 8, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
    z-index: 1000;
    transition: background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}
.nav-container-full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 30px;
}
@media (max-width: 700px) {
    .nav-container-full {
        padding: 0 20px;
        height: 60px;
    }
}
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    margin-right: 24px;
}
.logo:hover {
    opacity: 0.9;
}
.logo-svg {
    filter: drop-shadow(0 4px 8px rgba(255, 60, 60, 0.3));
}
.brand-text {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #ffcaca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo:hover .brand-text {
    text-shadow: 0 0 12px rgba(255, 100, 100, 0.5);
}
.brand-accent {
    font-weight: 800;
    background: linear-gradient(135deg, #ff8a8a, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}
.nav-right-full {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.nav-menu-full {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 2px; 
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #ff4d4d;
    border-radius: 10px;
    transition: background 0.3s ease;
    position: relative;
    transform-origin: 1px;
}

.nav-item-full {
    margin: 0 2px;
}
.nav-link {
    display: block;
    padding: 6px 10px;
    color: #b0b0c0;
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link:hover {
    color: white;
    background: rgba(255, 77, 77, 0.15);
}

@media (max-width: 700px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-right-full {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 5, 8, 0.98);
        backdrop-filter: blur(16px);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid rgba(255, 77, 77, 0.2);
    }
    .nav-right-full.active {
        max-height: 300px;
    }
    .nav-menu-full {
        flex-direction: column;
        width: 100%;
        padding: 10px 20px;
    }
    .nav-item-full {
        width: 100%;
        margin: 5px 0;
    }
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 12px 18px;
    }
}

.sections-full {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 0 30px;
}
@media (max-width: 700px) {
    .sections-full {
        padding: 0 20px;
    }
}
.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.glass-card {
    background: rgba(20, 15, 20, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 32px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 77, 77, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 30px;
}
.glass-card:last-child {
    margin-bottom: 0;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 55px -10px rgba(255, 50, 50, 0.3);
}
h2 { font-size: 2rem; margin-bottom: 28px; font-weight: 600; background: linear-gradient(120deg, #fff, #ffbfbf); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.tool-process-section {
    margin-top: 30px;
}
.tool-process-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(120deg, #fff, #ffbfbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.process-step {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
}
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
    border: 2px solid white;
}
.step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.process-step h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}
.process-step p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.process-hint {
    text-align: center;
    font-size: 1rem;
    color: #ffbfbf;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.category-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    justify-content: center;
    padding: 10px;
    background: rgba(255, 77, 77, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}
.category-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ffbfbf;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

.search-bar-container {
    position: relative;
    max-width: 600px;
    margin: 20px auto 30px;
    width: 100%;
}
.search-bar-input {
    width: 100%;
    padding: 16px 50px 16px 25px;
    border-radius: 60px;
    border: 2px solid rgba(255, 77, 77, 0.3);
    background: rgba(10, 5, 8, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.search-bar-input:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.2), 0 8px 25px rgba(255, 77, 77, 0.4);
}
.search-bar-input:hover {
    border-color: #ff6666;
    background: rgba(20, 10, 15, 0.8);
}
.search-bar-input::placeholder {
    color: rgba(255, 200, 200, 0.7);
    font-style: italic;
}
.search-bar-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 77, 77, 0.3);
    border: 1px solid #ff4d4d;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease, transform 0.1s ease;
    opacity: 0;
    pointer-events: none;
}
.search-bar-input:not(:placeholder-shown) + .search-bar-clear,
.search-bar-clear.visible {
    opacity: 1;
    pointer-events: auto;
}
.search-bar-clear:hover {
    background: #ff4d4d;
    transform: translateY(-50%) scale(1.1);
}

.upload-zone {
    border: 2px dashed rgba(255, 80, 80, 0.5);
    border-radius: 28px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 70, 70, 0.03);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}
.upload-zone.drag-over {
    background: rgba(255, 70, 70, 0.15);
    border-color: #ff4d4d;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.4);
}
.upload-zone svg {
    transition: transform 0.2s ease;
}
.upload-zone:hover svg {
    transform: translateY(-3px);
}
.fake-link {
    color: #ff7b7b;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}
.hidden-input { display: none; }
.preview-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}
.preview-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.3s ease;
    flex-wrap: wrap;
    position: relative;
}
.preview-card.removing {
    animation: fadeOut 0.2s ease forwards;
    pointer-events: none;
}
@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.95); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.preview-thumb {
    width: 50px;
    height: 50px;
    background: #2a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ff4d4d;
    flex-shrink: 0;
}
.preview-thumb canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-info {
    flex: 1;
    font-size: 0.9rem;
    color: #ddd;
    min-width: 150px;
}
.preview-info strong {
    color: white;
    display: block;
    margin-bottom: 4px;
    word-break: break-word;
}
.preview-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #ffaaaa;
    flex-wrap: wrap;
}
.preview-remove {
    background: rgba(255, 70, 70, 0.2);
    border: 1px solid #ff4d4d;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}
.preview-remove:hover {
    background: #ff4d4d;
    transform: scale(1.1);
}
.split-options {
    background: rgba(255, 70, 70, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    animation: fadeIn 0.3s ease;
}
.split-options.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.split-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffbfbf;
}
.page-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 150px;
    overflow-y: auto;
    padding: 8px 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    align-items: center;
}
.page-checkbox-item {
    background: rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,77,77,0.4);
    transition: background 0.2s ease, transform 0.1s ease;
    color: white;
}
.page-checkbox-item:hover {
    background: rgba(255,77,77,0.2);
    transform: scale(1.02);
}
.page-checkbox-item input {
    accent-color: #ff4d4d;
    width: 18px;
    height: 18px;
}
.split-range-helper, .page-range-single {
    display: flex;
    gap: 10px;
    margin: 16px 0 8px;
    flex-wrap: wrap;
}
.page-range-input {
    flex: 2;
    min-width: 180px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #ff4d4d;
    border-radius: 40px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
}
.page-range-input::placeholder { color: #a77; }
.btn-small {
    background: rgba(255,77,77,0.3);
    border: 1px solid #ff4d4d;
    border-radius: 40px;
    padding: 0 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}
.btn-small:hover { background: #ff4d4d; transform: translateY(-2px); }
.btn-small:active { transform: translateY(0) scale(0.95); }
.hint {
    font-size: 0.8rem;
    color: #b99;
    margin-top: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, #cc2b2b, #a61b1b);
    border: none;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(180, 30, 30, 0.5);
    transition: filter 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.btn-primary:not(:disabled):hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.8);
    background: linear-gradient(135deg, #e03a3a, #b82222);
}
.btn-primary:not(:disabled):active {
    transform: scale(0.98);
}
.btn-primary:disabled {
    opacity: 0.4;
    filter: grayscale(0.6);
    pointer-events: none;
}
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    left: var(--x, 0);
    top: var(--y, 0);
    pointer-events: none;
}
.ripple:active:after {
    transform: scale(2);
    opacity: 1;
}
.home-hero { text-align: center; }
.gradient-text { font-size: 3.2rem; font-weight: 700; background: linear-gradient(135deg, #ff7b7b, #ff4d4d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }

/* Tool Card Styles - Optimized for Performance */
.tool-card {
border-radius:20px;
padding:24px 20px;
cursor:pointer;
transition:transform .2s ease, box-shadow .2s ease;
box-shadow:0 10px 20px rgba(0,0,0,.2);
border:1px solid rgba(255,255,255,.1);
color:white;
text-align:left;
position:relative;
overflow:hidden;
user-select:none;
display:flex;
flex-direction:column;
justify-content:flex-start;
min-height:170px;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 20px;
}


.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tool-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.tool-desc {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Gradient Classes for Tool Cards */
.gradient-1 { background: linear-gradient(135deg, #0f1220 0%, #667eea 45%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #1a0f16 0%, #ff4d8d 100%); }
.gradient-3 { background: linear-gradient(135deg, #0f2027 0%, #6dd5fa 100%); }
.gradient-4 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.gradient-5 { background: linear-gradient(135deg, #1a1408 0%, #f7971e 45%, #ffd200 100%); }
.gradient-6 { background: linear-gradient(135deg, #0b1f1a 0%, #1f8a70 100%); }
.gradient-7 { background: linear-gradient(135deg, #200f3a 0%, #132f63 50%, #ffe88a 100%); }
.gradient-8 { background: linear-gradient(135deg, #1a0f07 0%, #ff8c42 50%, #ffd166 100%); }
.gradient-9 { background: linear-gradient(135deg, #283c86 0%, #45a247 100%); }
.gradient-10 { background: linear-gradient(135deg, #834d00 0%, #ffd200 100%); }
.gradient-11 { background: linear-gradient(135deg, #020024 0%, #00c6ff 100%); }
.gradient-12 { background: linear-gradient(135deg, #1c1c1c 0%, #d49a00 40%, #ff4da6 100%); }
.gradient-13 { background: linear-gradient(135deg, #1e3c72 0%, #2a8bdc 100%); }
.gradient-14 { background: linear-gradient(135deg, #1f3b73 0%, #2a5298 100%); }
.gradient-15 { background: linear-gradient(135deg, #0a1f44 0%, #1f4e79 100%); }
.gradient-16 { background: linear-gradient(135deg, #0f2027 0%, #2ecc71 100%); }
.gradient-17 { background: linear-gradient(135deg, #0a0f1f 0%, #22d3ee 100%); }
.gradient-18 { background: linear-gradient(135deg, #0a0a0a 0%, #9be7ff 100%); }
.gradient-19 { background: linear-gradient(135deg, #0f0f1a 0%, #6a4cff 50%, #ff4fa3 100%); }
.gradient-20 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-21 { background: linear-gradient(135deg, #1a2a1f 0%, #B9FF66 100%); }
.gradient-22 { background: linear-gradient(135deg, #1a1a1a 0%, #ffffff66 100%); }
.gradient-23 { background: linear-gradient(135deg, #1a0f1f 0%, #f093fb 45%, #f5576c 100%); }
.gradient-24 { background: linear-gradient(135deg, #1a0f14 0%, #ff0844 45%, #ffb199 100%); }
.gradient-25 { background: linear-gradient(135deg, #0f172a 0%, #4c1d95 50%, #6366f1 100%); }
.gradient-26 { background: linear-gradient(135deg, #0f1c2e 0%, #4facfe 45%, #00f2fe 100%); }
.gradient-27 { background: linear-gradient(135deg, #140a2a 0%, #8e2de2 45%, #4a00e0 100%); }
.gradient-28 { background: linear-gradient(135deg, #1a0f0c 0%, #f12711 45%, #f5af19 100%); }
.gradient-29 { background: linear-gradient(135deg, #0b1a22 0%, #00b4db 45%, #0083b0 100%); }
.gradient-30 { background: linear-gradient(135deg, #140f1a 0%, #ff6fd8 45%, #3813c2 100%); }
.gradient-31 { background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 70%, #ffd200 100%); }
.gradient-32 { background: linear-gradient(135deg, #020024 0%, #090979 40%, #0f3460 70%, #00ff9d 100%); }
.gradient-33 { background: linear-gradient(135deg, #0a192f 0%, #112240 40%, #1f4068 70%, #3a86ff 100%); }
.gradient-34 { background: linear-gradient(135deg, #020024, #090979, #1f4068, #00c6ff); }

/* Simple Loader - Optimized */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.loading-overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}
.simple-loader {
    background: rgba(20, 15, 20, 0.9);
    border-radius: 20px;
    padding: 30px 40px;
    border: 2px solid #ff4d4d;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 77, 77, 0.3);
    border-top-color: #ff4d4d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.simple-loader .loader-text {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

.watermark-preview-box {
    width: 180px;
    height: 140px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 2px solid #ff4d4d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.watermark-preview-text {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4d;
    text-align: center;
    padding: 8px;
    transform: rotate(-15deg);
    max-width: 90%;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
#signatureCanvas {
    background: white;
    border-radius: 8px;
    cursor: crosshair;
    width: 100%;
    height: 150px;
    touch-action: none;
}
.tool-search-container {
    margin-bottom: 20px;
}
@keyframes searchPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}
.tool-card.search-match {
    animation: searchPulse 0.5s ease-out;
}
.tool-card.search-hidden {
    display: none;
}
#searchResultsCount {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #ffaaaa;
}
#builderPreview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}
#fontsList {
    max-height: 300px;
    overflow-y: auto;
}
#pageDimensionsList {
    max-height: 200px;
    overflow-y: auto;
}
#extractedTextContent {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 15px;
    border: 1px solid rgba(255,77,77,0.3);
}
.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 77, 77, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.counter-label {
    color: #ffbfbf;
}
.counter-number {
    font-weight: 700;
    color: white;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ff7b7b, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.insert-pdf-thumbnail {
    width: 80px;
    height: 100px;
    border: 1px solid #ff4d4d;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    background: white;
}
.insert-pdf-thumbnail.selected {
    border: 3px solid #ff4d4d;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}
.insert-pdf-thumbnail canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    body { padding-top: 60px; }
    .nav-container-full { height: 60px; }
    .brand-text { font-size: 1.3rem; }
    .gradient-text { font-size: 2.2rem; }
    .glass-card { padding: 24px 16px; border-radius: 24px; }
    h2 { font-size: 1.6rem; }
    .upload-zone { padding: 30px 12px; }
    .preview-card { flex-direction: column; align-items: flex-start; }
    .preview-thumb { width: 70px; height: 70px; }
    .split-range-helper { flex-direction: column; }
    .btn-small { padding: 12px; width: 100%; }
    .tool-card { padding: 20px 15px; }
    .tool-icon { font-size: 2rem; }
    .home-desc { font-size: 1rem; }
    .watermark-preview-box { width: 150px; height: 120px; }
    .live-counter { font-size: 0.9rem; padding: 8px 15px; }
    .counter-number { font-size: 1.1rem; }
    .category-filter-container { border-radius: 30px; padding: 8px; }
    .category-filter-btn { padding: 6px 12px; font-size: 0.8rem; }
    .simple-loader { padding: 20px; width: 280px; }
    .simple-loader .loader-text { font-size: 1rem; }
    .spinner { width: 40px; height: 40px; }
    .search-bar-input { padding: 14px 45px 14px 20px; font-size: 1rem; }
}

body, html { overflow-x: hidden; width: 100%; }
img, svg { max-width: 100%; }
footer {
    background: rgba(10, 5, 8, 0.95);
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 77, 77, 0.3);
    width: 100%;
}
footer p {
    font-size: 14px;
    opacity: 0.8;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.nova-footer {
    background: #0b0b0f;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    isolation: isolate;
}
.nova-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3b3b, #ff0000, #b30000);
    z-index: 1;
}
.nova-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2.5rem 2rem;
    position: relative;
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 4rem;
    margin-bottom: 3.5rem;
}
.footer-branding {
    flex: 2;
    min-width: 280px;
}
.footer-branding h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1.2rem 0;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.footer-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1.2rem 0;
}
.footer-description {
    color: #9ca3af;
    font-size: 0.95rem;
    margin: 0 0 2rem 0;
    max-width: 500px;
}
.security-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    font-weight: 500;
    color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.security-badge-modern svg {
    width: 18px;
    height: 18px;
    fill: #34d399;
}
.footer-nav-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    min-width: 300px;
}
.footer-nav-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 1.2rem 0;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.6rem;
}
.footer-nav-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, transparent);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.7rem;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.2s ease;
    display: inline-block;
    position: relative;
}
.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}
.tools-showcase {
    margin: 3.5rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-title-large {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #f3f4f6, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2.5rem 0;
}

.tools-masonry{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
gap:16px;
}

.tool-item-modern {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}
.tool-item-modern:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 59, 59, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.5);
    box-shadow: 
0 0 20px rgba(255, 59, 59, 0.25),
0 20px 30px -15px rgba(0, 0, 0, 0.6);
}

.tool-item-modern h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    color: #f3f4f6;
}
.tool-item-modern p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0 0 0.8rem 0;
    line-height: 1.6;
}
.tool-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.tool-meta span {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.features-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}
.feature-card-modern {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.feature-card-modern:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.feature-icon-large {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 12px rgba(255, 59, 59, 0.4));
}
.feature-card-modern h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #f3f4f6;
}
.feature-card-modern p {
    color: #9ca3af;
    font-size: 0.95rem;
    margin: 0;
}

.footer-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1.5rem;
}
.copyright {
    color: #6b7280;
    font-size: 0.9rem;
}
.footer-legal {
    display: flex;
    gap: 2rem;
}
.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-legal a:hover {
    color: #60a5fa;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}
@media screen and (max-width: 1100px) {
    .features-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 900px) {
    .footer-main {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .footer-container {
        padding: 3rem 1.5rem 1.5rem;
    }
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .features-showcase {
        grid-template-columns: 1fr;
    }
    .benefits-grid-modern {
        grid-template-columns: 1fr;
    }
    .footer-lower {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
@media screen and (max-width: 480px) {
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    .footer-branding h2 {
        font-size: 1.8rem;
    }
    .section-title-large {
        font-size: 1.5rem;
    }
    .tool-item-modern {
        padding: 1.2rem;
    }
}
@media print {
    .nova-footer {
        background: white;
        color: black;
        border-top: 1px solid #ddd;
    }
    .footer-links a,
    .footer-legal a,
    .social-icon {
        color: black !important;
    }
}

footer a {
  cursor: pointer;
  user-select: none;
}

.tool-grid-modern{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
gap:16px;
margin-top:30px;
}

.tools-container{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:18px;
margin-top:30px;
width:100%;
}

@media (max-width:700px){

.tools-container{
grid-template-columns:repeat(2,1fr);
gap:14px;
}

.tool-card{
padding:18px 14px;
min-height:150px;
}

}