/* Processing state: visual-only indeterminate animation */
.br-processing-overlay {
    display: none;
}

.br-processing-overlay.br-visible {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 22, 40, 0.52);
    backdrop-filter: blur(5px);
}

.br-processing-content.br-loading-animation {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.br-processing-content.br-loading-animation .br-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(0, 82, 217, 0.14);
    border-top-color: #0052d9;
    border-right-color: #57a4ff;
    border-radius: 50%;
    animation: br-loading-spin 0.85s linear infinite;
}

.br-processing-content.br-loading-animation .br-processing-text,
.br-processing-content.br-loading-animation .br-processing-count {
    display: none;
}

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

@media (prefers-reduced-motion: reduce) {
    .br-processing-content.br-loading-animation .br-spinner {
        animation-duration: 2.5s;
    }
}


* {
    box-sizing: border-box;
}

.br-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Upload Area */
.br-upload-section {
    margin-bottom: 40px;
}

.br-upload-zone {
    background-color: #0052d9;
    border-radius: 12px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: 1px dashed rgba(255, 255, 255, 0.85);
    outline-offset: -14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.br-upload-zone:hover {
    background-color: #0046ba;
}

.br-upload-zone.br-dragover {
    background-color: #003d9e;
    outline-color: #fff;
}

.br-file-input {
    display: none;
}

.br-upload-icon {
    margin-bottom: 20px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.br-upload-zone:hover .br-upload-icon {
    transform: scale(1.05);
}

.br-select-btn {
    background-color: white;
    color: #333;
    border: none;
    padding: 16px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 18px;
}

.br-select-btn:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.br-select-btn svg {
    margin-right: 10px;
}

.br-drop-text {
    color: white;
    font-size: 15px;
    opacity: 0.95;
}

/* Preview Section */
.br-preview-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.br-preview-section.br-visible {
    display: flex;
    opacity: 1;
    gap: 30px;
}

.br-preview-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.br-preview-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.br-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.br-preview-img-wrapper {
    width: 100% !important;
    height: 200px !important;
    background: #f5f5f5;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    position: relative;
}

.br-preview-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.br-preview-name {
    padding: 8px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.br-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: #fff;
    border: 2px solid #fff;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    outline: none;
    overflow: hidden;
}

.br-remove-preview:before {
    content: "×";
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: block;
}

.br-preview-card:hover .br-remove-preview {
    opacity: 1;
}

.br-remove-preview:hover {
    background: #ee2f42;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Action Panel */
.br-action-panel {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.br-stats-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.br-stats-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.br-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.br-stat-value {
    font-weight: 600;
    color: #0052d9;
}

.br-action-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.br-add-more-btn {
    background: white;
    color: #0052d9;
    border: 2px solid #0052d9;
}

.br-add-more-btn:hover {
    background: #f0f5ff;
}

.br-start-btn {
    background: #0052d9;
    color: white;
}

.br-start-btn:hover {
    background: #0046ba;
}

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

/* Limit Modal */
.br-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: br-fadeIn 0.3s ease;
}

.br-modal-overlay.br-visible {
    display: flex;
}

@keyframes br-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.br-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: br-slideUp 0.3s ease;
    text-align: center;
}

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

.br-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.br-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.br-modal-icon {
    margin-bottom: 20px;
}

.br-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.br-modal-body {
    margin-bottom: 30px;
}

.br-limit-info {
    margin: 12px 0;
    font-size: 16px;
    color: #666;
}

.br-limit-label {
    color: #888;
}

.br-limit-attempted {
    color: #ff6b6b;
    font-size: 20px;
}

.br-limit-number {
    color: #0052d9;
    font-size: 20px;
}

.br-limit-message {
    margin: 20px 0 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.br-upgrade-message {
    margin: 15px 0 0 0;
    color: #0052d9;
    font-weight: 600;
    font-size: 16px;
}

.br-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.br-modal-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
}

.br-upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.br-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.br-close-btn {
    background: #f0f0f0;
    color: #666;
}

.br-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .br-modal-content {
        padding: 35px 25px;
        max-width: 90%;
    }
    
    .br-modal-title {
        font-size: 20px;
    }
    
    .br-limit-info {
        font-size: 15px;
    }
    
    .br-modal-actions {
        flex-direction: column;
    }
    
    .br-modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .br-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .br-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 30px 20px;
        animation: br-slideUpMobile 0.3s ease;
    }
    
    @keyframes br-slideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .br-modal-title {
        font-size: 18px;
    }
    
    .br-limit-attempted,
    .br-limit-number {
        font-size: 18px;
    }
    
    .br-modal-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Processing Overlay */
.br-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.br-processing-overlay.br-visible {
    display: flex;
}

.br-processing-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
}

.br-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0052d9;
    border-radius: 50%;
    animation: br-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes br-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.br-processing-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.br-processing-count {
    font-size: 14px;
    color: #666;
}

/* Results Section */
.br-results-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.br-results-section.br-visible {
    display: block;
    opacity: 1;
}

.br-results-header {
    text-align: center;
    padding: 30px 0;
    background: #d4edda;
    border-radius: 8px;
    margin-bottom: 30px;
}

.br-results-header h2 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 24px;
}

.br-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.br-result-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.br-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.br-result-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f8f9fa;
}

.br-result-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.br-result-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.br-download-btn {
    flex: 1;
    padding: 10px;
    background: #0052d9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.br-download-btn:hover {
    background: #0046ba;
}

.br-results-actions {
    margin-top: 25px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.br-download-all-btn,
.br-process-more-btn {
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.br-download-all-btn {
    background: #28a745;
    color: white;
    border: none;
}

.br-download-all-btn:hover {
    background: #218838;
}

.br-process-more-btn {
    background: white;
    color: #0052d9;
    border: 2px solid #0052d9;
}

.br-process-more-btn:hover {
    background: #f0f5ff;
}

/* Info Section */
.br-info-section {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
}

.br-info-left {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.br-info-right {
    flex: 1;
}

.br-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.br-feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0dbb30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.br-feature-text {
    font-size: 16px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .br-container {
        padding: 30px 15px;
    }
    
    .br-upload-zone {
        height: 250px;
    }
    
    .br-select-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .br-preview-section.br-visible {
        flex-direction: column;
    }
    
    .br-action-panel {
        width: 100%;
    }
    
    .br-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .br-info-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .br-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .br-container {
        padding: 20px 10px;
    }
    
    .br-upload-zone {
        height: 220px;
        outline-offset: -10px;
    }
    
    .br-select-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .br-drop-text {
        font-size: 14px;
    }
    
    .br-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .br-action-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .br-processing-content {
        padding: 30px 20px;
        min-width: 280px;
    }
    
    .br-results-grid {
        grid-template-columns: 1fr;
    }
    
    .br-download-all-btn,
    .br-process-more-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* SEO Content Sections */
.br-seo-content {
    max-width: 1200px;
    margin: 60px auto 0;
}

.br-content-section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
}

.br-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 40px 0;
    position: relative;
    padding-bottom: 15px;
}

.br-section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0052d9, #00a0d2);
    border-radius: 2px;
}

.br-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.br-feature-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.br-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 82, 217, 0.15);
    border-color: #0052d9;
}

.br-feature-icon-large {
    font-size: 48px;
    margin-bottom: 15px;
}

.br-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.br-feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.br-why-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.br-why-content {
    max-width: 900px;
    margin: 0 auto;
}

.br-why-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.br-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.br-why-list li {
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #0052d9;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.br-why-list li strong {
    color: #0052d9;
    display: block;
    margin-bottom: 5px;
}

.br-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.br-step-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.br-step-card:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 82, 217, 0.1);
}

.br-step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, #0052d9, #00a0d2);
    color: white;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.br-step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.br-step-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.br-faq-section {
    background: #f8f9fa;
}

.br-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.br-faq-item {
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.br-faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 82, 217, 0.15);
    transform: translateY(-2px);
}

.br-faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #0052d9;
    margin: 0 0 12px 0;
}

.br-faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .br-seo-content {
        margin-top: 40px;
    }
    
    .br-content-section {
        padding: 30px 15px;
    }
    
    .br-section-title {
        font-size: 26px;
    }
    
    .br-features-grid,
    .br-steps-grid,
    .br-faq-grid {
        grid-template-columns: 1fr;
    }
}
/* Testimonials Section */
.br-testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.br-testimonials-section .br-section-title {
    color: white;
}

.br-testimonials-section .br-section-title:after {
    background: white;
}

.br-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.br-testimonial-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.br-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.br-testimonial-stars {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffc107;
}

.br-testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin: 0 0 20px 0;
}

.br-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.br-testimonial-author strong {
    font-size: 16px;
    color: #0052d9;
}

.br-testimonial-author span {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .br-testimonials-grid {
        grid-template-columns: 1fr;
    }
}