:root {
        --primary-color: #e5332d;
        --primary-hover: #c92a25;
        --secondary-color: #2c3e50;
        --light-bg: #f8f9fa;
        --border-color: #e0e0e0;
        --success-color: #28a745;
        --shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .btn-start {
        color: #fff;
        background: var(--primary-color);
    }

    .btn-start:hover {
        background: var(--primary-hover);
        color: #fff;
    }

    /* Main Layout with Ad Spaces */
    .main-content-wrapper {
        display: flex;
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px;
        gap: 20px;
    }

    .ad-sidebar {
        width: 160px;
        min-width: 160px;
        flex-shrink: 0;
    }

    .ad-sidebar-left {
        margin-right: 0;
    }

    .ad-sidebar-right {
        margin-left: 0;
    }

    .ad-placeholder {
        background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
        border: 2px dashed #ccc;
        border-radius: 8px;
        padding: 20px 10px;
        text-align: center;
        color: #999;
        font-size: 12px;
        position: sticky;
        top: 100px;
    }

    .ad-placeholder.vertical {
        min-height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ad-placeholder.horizontal {
        width: 100%;
        min-height: 90px;
        margin: 20px 0;
    }

    .ad-placeholder i {
        font-size: 24px;
        margin-bottom: 10px;
        color: #ccc;
    }

    .main-tool-content {
        flex: 1;
        max-width: 900px;
        margin: 0 auto;
    }

    /* Breadcrumb Styles */
    .breadcrumb-wrapper {
        background: var(--light-bg);
        padding: 15px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .breadcrumb-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .breadcrumb {
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .breadcrumb-item {
        font-size: 14px;
    }

    .breadcrumb-item a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.3s;
    }

    .breadcrumb-item a:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

    .breadcrumb-item.active {
        color: var(--secondary-color);
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: #999;
        font-weight: bold;
    }

    /* Converter Wrapper */
    .img-converter-wrapper {
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 30px;
        margin-bottom: 30px;
    }

    .converter-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .converter-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .converter-subtitle {
        font-size: 1.1rem;
        color: #666;
        margin-bottom: 0;
    }

    /* Rating Display */
    .rating-display {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .rating-stars {
        color: #ffc107;
        font-size: 18px;
    }

    .rating-text {
        font-size: 14px;
        color: #666;
    }

    .rating-text strong {
        color: var(--secondary-color);
    }

    /* Upload Area */
    .upload-area {
        border: 3px dashed var(--border-color);
        border-radius: 12px;
        padding: 50px 30px;
        text-align: center;
        background: var(--light-bg);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .upload-area:hover,
    .upload-area.dragover {
        border-color: var(--primary-color);
        background: rgba(229, 51, 45, 0.05);
    }

    .upload-icon {
        font-size: 60px;
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .upload-text {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .upload-subtext {
        color: #888;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .btn-select-files {
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 12px 30px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .btn-select-files:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
    }

    /* Preview Section */
    .preview-section {
        margin-top: 30px;
    }

    .preview-title {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 20px;
    }

    .image-preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .image-preview-item {
        position: relative;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

    .image-preview-item:hover {
        transform: scale(1.02);
    }

    .image-preview-item img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .image-info {
        padding: 8px;
        background: var(--light-bg);
    }

    .image-name {
        font-size: 11px;
        color: #666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-remove {
        position: absolute;
        top: 5px;
        right: 5px;
        background: var(--primary-color);
        color: #fff;
        border: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .btn-remove:hover {
        background: var(--primary-hover);
        transform: scale(1.1);
    }

    /* Options Section */
    .options-section {
        margin-top: 30px;
        padding: 25px;
        background: var(--light-bg);
        border-radius: 10px;
    }

    .option-group {
        margin-bottom: 20px;
    }

    .option-label {
        display: block;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .btn-option {
        background: #fff;
        border: 2px solid var(--border-color);
        padding: 8px 16px;
        border-radius: 6px;
        margin-right: 8px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.9rem;
    }

    .btn-option:hover {
        border-color: var(--primary-color);
    }

    .btn-option.active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    /* Convert Button */
    .btn-convert {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 30px auto 0;
        padding: 15px 30px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
    }

    .btn-convert:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(229, 51, 45, 0.4);
    }

    .btn-convert:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    /* Popup Styles */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .popup-overlay.show {
        display: flex;
    }

    .popup-content {
        background: #fff;
        padding: 40px;
        border-radius: 15px;
        text-align: center;
        max-width: 400px;
        width: 90%;
        animation: popupSlide 0.3s ease;
    }

    @keyframes popupSlide {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .popup-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .popup-icon.success {
        color: var(--success-color);
    }

    .popup-icon.error {
        color: var(--primary-color);
    }

    .popup-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--secondary-color);
    }

    .popup-message {
        color: #666;
        margin-bottom: 20px;
    }

    .popup-btn {
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 12px 40px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .popup-btn:hover {
        background: var(--primary-hover);
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 4px solid var(--light-bg);
        border-top-color: var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Content Sections */
    .content-section {
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 35px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 3px solid var(--primary-color);
    }

    .section-title i {
        color: var(--primary-color);
        margin-right: 10px;
    }

    /* How To Use Section */
    .how-to-use {
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 35px;
        margin-bottom: 30px;
    }

    .how-to-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 30px;
        text-align: center;
    }

    .step {
        margin-bottom: 25px;
        padding: 20px;
        background: var(--light-bg);
        border-radius: 10px;
        border-left: 4px solid var(--primary-color);
    }

    .step-header {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        background: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .step-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin: 0;
    }

    .step-description {
        color: #555;
        line-height: 1.7;
        margin-left: 50px;
    }

    /* Features Grid */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        margin-top: 25px;
    }

    .feature-card {
        background: var(--light-bg);
        padding: 25px;
        border-radius: 10px;
        text-align: center;
        transition: all 0.3s;
        border: 2px solid transparent;
    }

    .feature-card:hover {
        border-color: var(--primary-color);
        transform: translateY(-5px);
    }

    .feature-icon {
        font-size: 40px;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .feature-desc {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* FAQ Section */
    .faq-item {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .faq-question {
        padding: 18px 20px;
        background: var(--light-bg);
        cursor: pointer;
        font-weight: 600;
        color: var(--secondary-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s;
    }

    .faq-question:hover {
        background: #eee;
    }

    .faq-question i {
        transition: transform 0.3s;
    }

    .faq-question.active i {
        transform: rotate(180deg);
    }

    .faq-answer {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .faq-answer.show {
        padding: 20px;
        max-height: 500px;
    }

    .faq-answer p {
        margin: 0;
        color: #555;
        line-height: 1.7;
    }

    /* Related Tools Section */
    .related-tools {
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 35px;
        margin-bottom: 30px;
    }

    .related-tools-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 25px;
        text-align: center;
    }

    .tools-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .tool-card {
        background: var(--light-bg);
        border-radius: 10px;
        padding: 25px 20px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s;
        border: 2px solid transparent;
    }

    .tool-card:hover {
        border-color: var(--primary-color);
        transform: translateY(-5px);
        text-decoration: none;
    }

    .tool-card-icon {
        font-size: 45px;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .tool-card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 8px;
    }

    .tool-card-desc {
        font-size: 0.85rem;
        color: #666;
    }

    /* SEO Content Section */
    .seo-content {
        background: #fff;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 35px;
        margin-bottom: 30px;
    }

    .seo-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 20px;
        margin-top: 30px;
    }

    .seo-content h2:first-child {
        margin-top: 0;
    }

    .seo-content h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 15px;
        margin-top: 25px;
    }

    .seo-content p {
        color: #555;
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .seo-content ul {
        padding-left: 25px;
        margin-bottom: 20px;
    }

    .seo-content li {
        color: #555;
        line-height: 1.8;
        margin-bottom: 8px;
    }

    .highlight-box {
        background: linear-gradient(135deg, rgba(229, 51, 45, 0.05), rgba(229, 51, 45, 0.1));
        border-left: 4px solid var(--primary-color);
        padding: 20px 25px;
        border-radius: 0 10px 10px 0;
        margin: 25px 0;
    }

    .highlight-box p {
        margin: 0;
        font-weight: 500;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .ad-sidebar {
            width: 120px;
            min-width: 120px;
        }
    }

    @media (max-width: 992px) {
        .main-content-wrapper {
            flex-direction: column;
        }

        .ad-sidebar {
            width: 100%;
            min-width: auto;
        }

        .ad-placeholder.vertical {
            min-height: 100px;
            flex-direction: row;
        }

        .ad-sidebar-left {
            order: -1;
        }
    }

    @media (max-width: 768px) {
        .converter-title {
            font-size: 1.6rem;
        }

        .img-converter-wrapper,
        .content-section,
        .how-to-use,
        .related-tools,
        .seo-content {
            padding: 20px;
        }

        .upload-area {
            padding: 30px 20px;
        }

        .upload-icon {
            font-size: 40px;
        }

        .upload-text {
            font-size: 1.1rem;
        }

        .image-preview-grid {
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        }

        .step-description {
            margin-left: 0;
            margin-top: 10px;
        }

        .tools-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .main-content-wrapper {
            padding: 10px;
        }

        .tools-grid {
            grid-template-columns: 1fr;
        }

        .features-grid {
            grid-template-columns: 1fr;
        }
    }