/* input(1,1): run-time error CSS1019: Unexpected token, found '{'
input(2,12): run-time error CSS1030: Expected identifier, found ' '
input(2,13): run-time error CSS1031: Expected selector, found '0'
input(2,13): run-time error CSS1025: Expected comma or open brace, found '0'
input(3,13): run-time error CSS1030: Expected identifier, found ' '
input(3,14): run-time error CSS1031: Expected selector, found '0'
input(3,14): run-time error CSS1025: Expected comma or open brace, found '0'
input(4,16): run-time error CSS1030: Expected identifier, found ' '
input(4,27): run-time error CSS1031: Expected selector, found ';'
input(4,27): run-time error CSS1025: Expected comma or open brace, found ';'
input(5,1): run-time error CSS1019: Unexpected token, found '}'
input(672,1): run-time error CSS1019: Unexpected token, found '@'
input(778,1): run-time error CSS1019: Unexpected token, found '@'
input(863,1): run-time error CSS1019: Unexpected token, found '}'
input(865,1): run-time error CSS1019: Unexpected token, found '@'
input(955,1): run-time error CSS1019: Unexpected token, found '@'
input(1053,1): run-time error CSS1019: Unexpected token, found '@'
input(1689,1): run-time error CSS1019: Unexpected token, found '@' */
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-top: 25px !important;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

    .header h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

    .header p {
        font-size: 1.1em;
        opacity: 0.9;
    }

.content {
    padding: 40px;
}
/* Container */
.apps-grid-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.apps-grid-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Grid Layout */
.apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Individual App Link (Pill Style) */
.app-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .app-link:hover {
        background: #f8f9fa;
        border-color: #667eea;
        color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .app-link:active {
        transform: translateY(0);
    }

/* Upload Stage */
.upload-stage {
    display: block;
}

    .upload-stage.hidden {
        display: none;
    }

.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

    .drop-zone:hover, .drop-zone.dragover {
        border-color: #764ba2;
        background: #f0f1ff;
        transform: scale(1.02);
    }

.drop-zone-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: #667eea;
}

.drop-zone-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.drop-zone-hint {
    color: #666;
    font-size: 0.9em;
}

#fileInput {
    display: none;
}

/* Configure Stage */
.configure-stage {
    display: none;
}

    .configure-stage.active {
        display: block;
    }

.configure-layout {
    /*display: grid;*/
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.preview-panel {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .preview-panel h3 {
        margin-bottom: 15px;
        color: #333;
        font-size: 1.3em;
    }

.preview-image-container {
    width: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#configurePreviewImage {
    max-width: 100%;
    max-height: 600px;
    border-radius: 10px;
}

.options-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .option-card:hover {
        border-color: #667eea;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    }

    .option-card h3 {
        color: #333;
        margin-bottom: 15px;
        font-size: 1.2em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .option-card h4 {
        color: #333;
        margin-bottom: 15px;
        font-size: 1.2em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .option-card h3::before {
        content: '⚙️';
        font-size: 1.3em;
    }

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .checkbox-item:hover, .radio-item:hover {
        background: #f0f1ff;
        transform: translateX(5px);
    }

    .checkbox-item input[type="checkbox"], .radio-item input[type="radio"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .checkbox-item label, .radio-item label {
        cursor: pointer;
        flex: 1;
        font-size: 1em;
    }

.process-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .process-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .process-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.cancel-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .cancel-btn:hover {
        border-color: #667eea;
        color: #667eea;
    }

.forum-btn {
    /* width: 100%; */
    padding: 12px;
    background: linear-gradient(135deg, #FF8C00, #FF8C00);
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

    .forum-btn:hover {
        background-color: mediumslateblue;
    }



/* Results Stage */
.results-stage {
    display: none;
}

    .results-stage.active {
        display: block;
    }

.detection-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
}

    .detection-info h3 {
        margin-bottom: 15px;
        color: #333;
        font-size: 1.3em;
    }

.detection-summary {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
}

.detection-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}



.detection-item strong {
    color: #667eea;
    font-size: 1.1em;
}

.result-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.image-container {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

    .image-container h3 {
        margin-bottom: 15px;
        color: #333;
        font-size: 1.3em;
    }

    .image-container img {
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

.action-buttons {
    /*display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
}

.download-btn {
    padding: 18px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

    .download-btn:hover {
        background: #059669;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

.new-image-btn {
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .new-image-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* ✅ ADD THIS LINE */
}

    .modal-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto; /* ✅ ADD THIS LINE */
    }

/* Modal Container */
.language-modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}

    .language-modal-container.active {
        display: block;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }

/* Modal Header */
.language-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

    .language-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* Modal Body */
.language-modal-body {
    padding: 1.5rem;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
}

/* Search Input */
.language-search {
    position: relative;
    margin-bottom: 1.25rem;
}

.language-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

    .language-search-input:focus {
        border-color: #667eea;
    }

.language-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    /* min-height: 90px; */
}

    .language-option:hover {
        transform: translateY(-4px);
        border-color: #667eea;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
        color: #667eea;
    }

    .language-option:active {
        transform: translateY(-2px);
    }

.language-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.language-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

    .no-results.active {
        display: block;
    }

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Trigger Button (example) */
.language-trigger-btn {
    padding: 0.625rem 1.25rem;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

    .language-trigger-btn:hover {
        background: #5568d3;
    }

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

    .loading.active {
        display: block;
    }

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
}

.loading-hint {
    color: #888;
    font-size: 0.95em;
}

/* Error Message */
.error-message {
    display: none;
    background: #fee;
    color: #c00;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #c00;
    font-size: 1em;
}


    .error-message.active {
        display: block;
    }

/* Success Badge */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 10px;
}

    .success-badge::before {
        content: '✓';
        font-size: 1.2em;
    }

.warning-badge {
    /* display: inline-flex; */
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 400;
    margin-left: 10px;
    border-color: #ffeeba;
}

.mobile-hints {
    background: #e3f2fd;
    border-radius: 15px;
    padding: 15px;
    border-left: 4px solid #2196f3;
    margin-bottom: 15px;
}

    .mobile-hints h4 {
        color: #1976d2;
        margin-bottom: 10px;
    }

    .mobile-hints ul {
        list-style: none;
        padding: 0;
    }

    .mobile-hints li {
        padding: 5px 0;
        color: #555;
        font-size: 0.9em;
    }

        .mobile-hints li::before {
            content: "👆 ";
            margin-right: 5px;
        }
/* Prevent double-tap zoom on iOS */
canvas {
    touch-action: manipulation;
}

button, .detection-item, .redaction-option {
    touch-action: manipulation;
}
/* Responsive */
@@media (max-width: 968px) {
    .configure-layout {
        grid-template-columns: 1fr;
    }

    .result-images, .action-buttons {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .canvas-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .detection-item {
        font-size: small;
        min-height: auto;
    }

    .detections-panel h3 {
        font-size: 1em;
    }

    .detection-type {
        font-size: 0.5em;
    }

    .btn-add-box {
        padding: 5px !important;
        font-size: 0.6em !important;
        margin-bottom: 5px !important;
    }
}

.preview-canvas-container {
    padding: 10px;
    order: 1; /* Canvas on top */
}


.preview-sidebar {
    order: 2; /* Controls below */
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 100;
    padding: 15px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.detections-panel {
    max-height: 200px; /* Scrollable list */
}

.detections-list {
    max-height: 150px;
}



.redaction-option {
    padding: 15px;
    min-height: 60px;
}

.preview-actions button {
    padding: 18px 30px;
    font-size: 1.2em;
    min-height: 60px;
}

/*  .tips-panel {
                                                                                                    display: none !important;
                                                                                                } */

.mobile-hints {
    display: block !important;
}

}

@@media (max-width: 768px) {
    .seo-section {
        padding: 30px 15px;
        margin: 40px auto;
    }

        .seo-section h2 {
            font-size: 1.8em;
        }

        .seo-section h3 {
            font-size: 1.4em;
        }

    .features-grid,
    .use-cases-grid,
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 20px;
        padding-right: 45px;
    }

        .faq-question::after {
            right: 20px;
            font-size: 1.5em;
        }

    .faq-answer {
        font-size: 1em;
        padding-left: 40px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 40px;
    }

    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .language-option {
        padding: 0.875rem 0.5rem;
        min-height: 80px;
    }

    .language-flag {
        font-size: 1.75rem;
    }

    .language-name {
        font-size: 0.85rem;
    }

    .language-modal-body {
        padding: 1rem;
    }

    .language-modal-container {
        width: 95%;
        max-width: none;
    }

    .language-trigger-btn {
        margin-right: 5px;
    }

    .apps-grid {
        gap: 0.5rem;
    }

    .app-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .apps-grid-title {
        font-size: 1.25rem;
    }
}

@@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: 1fr;
    }

    .language-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        min-height: auto;
    }

    .language-flag {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0.75rem;
    }

    .language-name {
        text-align: left;
        font-size: 1rem;
    }
}
/* Preview & Adjust Stage */
.preview-adjust-stage {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

    .preview-adjust-stage.active {
        display: block;
    }

.preview-header {
    text-align: center;
    margin-bottom: 30px;
}

    .preview-header h2 {
        color: #333;
        font-size: 2em;
        margin-bottom: 10px;
    }

    .preview-header p {
        color: #666;
        font-size: 1.1em;
    }

.preview-layout {
    /*display: grid;*/
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.btn-add-box {
    /* width: 100%;
                                                                    padding: 15px;
                                                                    background: #10b981;
                                                                    color: white;
                                                                    border: none;
                                                                    border-radius: 10px;
                                                                    font-size: 1.1em;
                                                                    cursor: pointer;
                                                                    transition: all 0.3s ease; */
    padding: 10px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

    .btn-add-box:hover {
        background: #059669;
        transform: translateY(-2px);
    }

.delete-box-btn {
    background: transparent;
    color: red;
    border: none;
    padding-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    /* margin-top: 5px; */
}

    .delete-box-btn:hover {
        color: black;
    }
/* CRITICAL: Mobile responsive */
@@media (max-width: 968px) {
    .preview-layout {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

.preview-canvas-container {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /*width: 100%;*/
    max-width: 100%;
    overflow: hidden; /* Add this */
}

    .preview-canvas-container h3 {
        margin-bottom: 15px;
        color: #333;
    }

.canvas-wrapper {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden; /* Changed back to hidden */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detections-panel {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    overflow-y: scroll;
    /* overflow-x:scroll; */
}

    .detections-panel h3 {
        color: #333;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.detection-count {
    background: #667eea;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9em;
}

.detections-list {
    display: flex;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: scroll; /* optional: hide horizontal scroll */
}

.detection-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-right: 10px;
}

    .detection-item:hover {
        border-color: #667eea;
        transform: translateX(5px);
    }

    .detection-item.selected {
        border-color: #764ba2;
        background: #f0f1ff;
    }

.detection-type {
    font-weight: bold;
    color: #667eea;
    text-transform: uppercase;
    font-size: 0.85em;
    display: flex;
}

.detection-coords {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.tips-panel {
    background: #e8f5e9;
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #4caf50;
}

    .tips-panel h4 {
        color: #2e7d32;
        margin-bottom: 10px;
    }

    .tips-panel ul {
        list-style: none;
        padding: 0;
    }

    .tips-panel li {
        padding: 5px 0;
        color: #555;
        font-size: 0.9em;
    }

        .tips-panel li::before {
            content: "✓ ";
            color: #4caf50;
            font-weight: bold;
            margin-right: 5px;
        }

.redaction-selector {
    background: #fff8e1;
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #ffc107;
}

    .redaction-selector h4 {
        color: #f57c00;
        margin-bottom: 15px;
        font-size: 1.1em;
    }

.redaction-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redaction-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

    .redaction-option:hover {
        border-color: #ffc107;
        background: #fffbf0;
    }

    .redaction-option input[type="radio"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .redaction-option label {
        cursor: pointer;
        flex: 1;
        font-size: 1em;
        font-weight: 500;
    }

.preview-actions {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

    .preview-actions button {
        flex: 1;
        padding: 15px 30px;
        font-size: 1.1em;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .preview-actions .btn-back {
        background: #e0e0e0;
        color: #333;
    }

        .preview-actions .btn-back:hover {
            background: #d5d5d5;
            transform: translateY(-2px);
        }

    .preview-actions .btn-apply {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: bold;
    }

        .preview-actions .btn-apply:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }

.seo-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 10px 20px;
}

    .seo-section h2 {
        font-size: 2.2em;
        color: #333;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.3;
    }

    .seo-section h3 {
        font-size: 1.6em;
        color: #667eea;
        margin: 30px 0 15px;
        text-align: center;
    }

    .seo-section p {
        font-size: 1.1em;
        line-height: 1.8;
        color: #555;
        margin-bottom: 15px;
    }

    .seo-section ul, .seo-section ol {
        margin-left: 30px;
        margin-bottom: 20px;
    }

    .seo-section li {
        font-size: 1.05em;
        line-height: 1.7;
        color: #555;
        margin-bottom: 10px;
    }

/* Features Grid (Used for feature cards) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }

    .feature-card h4 {
        color: #667eea;
        font-size: 1.3em;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .feature-card p {
        color: #666;
        font-size: 1em;
        line-height: 1.6;
        margin: 0;
    }

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 10px 0;
}

.use-case {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

    .use-case:hover {
        background: #f0f1ff;
        border-left-width: 6px;
    }

    .use-case h4 {
        color: #333;
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .use-case p {
        color: #666;
        font-size: 0.95em;
        line-height: 1.6;
        margin: 0;
    }

/* FAQ Accordion Styles */
.faq-container {
    max-width: 900px;
    margin: 30px auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    }

.faq-question {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
    padding: 25px;
    padding-right: 50px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        background: #f8f9ff;
        color: #667eea;
    }

    .faq-question::before {
        content: "Q:";
        color: #667eea;
        font-weight: bold;
        flex-shrink: 0;
    }

    /* Accordion toggle icon */
    .faq-question::after {
        content: "+";
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.8em;
        color: #667eea;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

.faq-item.active .faq-question::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    font-size: 1.05em;
    color: #555;
    line-height: 1.7;
    padding: 0 25px;
    padding-left: 55px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust based on your longest answer */
    padding: 0 25px 25px 55px;
}

/* Steps Container (for "How It Works") */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.step p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

/* Benefits List (checkmark list) */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.benefit {
    background: #e8f4fd;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

    .benefit:hover {
        background: #dae8f5;
        transform: translateX(5px);
    }

    .benefit::before {
        content: "✓";
        color: #10b981;
        font-size: 1.5em;
        font-weight: bold;
    }

    .benefit span {
        color: #333;
        font-size: 1.05em;
    }
/* Modal Styles */
.modal-overlay-add-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}



.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
        font-size: 1.5em;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

    .modal-close:hover {
        color: #667eea;
        transform: rotate(90deg);
    }

.modal-body {
    padding: 30px;
}

    .modal-body p {
        color: #666;
        font-size: 1.05em;
        line-height: 1.6;
        margin-bottom: 20px;
    }

.detection-type-selector {
    margin-top: 20px;
}

    .detection-type-selector label {
        display: block;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        font-size: 1.05em;
    }

    .detection-type-selector select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 1em;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .detection-type-selector select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal-cancel {
    padding: 12px 30px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-modal-cancel:hover {
        background: #d0d0d0;
        transform: translateY(-2px);
    }

.btn-modal-confirm {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-modal-confirm:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

/* Mobile responsive */
@@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
        width: 100%;
    }
}
/*================ Login button and dropdown menu styles===============*/
/* USER AUTHENTICATION DROPDOWN - COMPLETE WITH SIZE LOCK FIX */

/* User Authentication Section */
.user-auth-section {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Pro Badge */
.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pro-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pro-text {
    font-weight: 700;
}

/* User Menu Container */
.user-menu-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

    /* Dropdown Wrapper */
    .user-menu-container .dropdown {
        position: relative;
    }

/* ========================================
   USER MENU BUTTON - SIZE LOCKED
   ======================================== */

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 14px;
    color: #334155;
    /* ✅ LOCK SIZE - Prevents shift */
    min-height: 48px;
    box-sizing: border-box;
}

    /* ✅ CRITICAL: Maintain EXACT same size in all states */
    .btn-user-menu:hover,
    .btn-user-menu:focus,
    .btn-user-menu:active,
    .btn-user-menu[aria-expanded="true"],
    .btn-user-menu.show {
        /* Lock dimensions */
        padding: 8px 16px !important;
        border-width: 1px !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    /* Hover state - color change only */
    .btn-user-menu:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    /* Focus state - add outline without changing size */
    .btn-user-menu:focus,
    .btn-user-menu:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    /* Active/Expanded state - color change only */
    .btn-user-menu[aria-expanded="true"],
    .btn-user-menu.show {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

.user-menu-container .btn-user-menu.show {
    padding: 8px 16px !important;
    border: 1px solid #cbd5e1 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    transform: none !important;
}
/* User Avatar (Small) - Fixed size */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* User Name - Fixed constraints */
.user-name {
    font-weight: 500;
    max-width: 150px;
    min-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Icon - Fixed width */
.dropdown-icon {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.3s ease;
    width: 12px;
    flex-shrink: 0;
    text-align: center;
}

.btn-user-menu[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* ========================================
   DROPDOWN MENU
   ======================================== */

.user-dropdown {
    position: absolute !important;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 280px;
    padding: 8px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    z-index: 1050;
    background: white;
}

    .user-dropdown:not(.show) {
        display: none;
    }

    .user-dropdown.show {
        display: block;
    }

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown.show {
    animation: dropdownSlide 0.2s ease forwards;
}

/* Dropdown Header */
.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name-large {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* Dropdown Items */
.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .user-dropdown .dropdown-item i {
        width: 18px;
        font-size: 16px;
        color: #64748b;
        flex-shrink: 0;
    }

    .user-dropdown .dropdown-item:hover {
        background: #f8fafc;
        color: #1e293b;
        text-decoration: none;
    }

        .user-dropdown .dropdown-item:hover i {
            color: #3b82f6;
        }

    .user-dropdown .dropdown-item:active {
        background: #f1f5f9;
    }

/* External Link Icon */
.external-icon {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.5;
}

/* Logout Item */
.logout-item {
    color: #dc2626 !important;
}

    .logout-item i {
        color: #dc2626 !important;
    }

    .logout-item:hover {
        background: #fef2f2 !important;
        color: #b91c1c !important;
    }

        .logout-item:hover i {
            color: #b91c1c !important;
        }

/* Divider */
.user-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: #f1f5f9;
}

/* ========================================
   LOGIN BUTTON (Unauthenticated)
   ======================================== */

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

    .btn-login:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }

    .btn-login i {
        font-size: 16px;
    }

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .btn-user-menu {
        padding: 8px 12px;
        min-height: 48px;
    }

        .btn-user-menu:hover,
        .btn-user-menu:focus,
        .btn-user-menu[aria-expanded="true"] {
            padding: 8px 12px !important;
            min-height: 48px !important;
        }

    .user-dropdown {
        min-width: 260px;
        right: -20px;
    }

    .pro-text {
        display: none;
    }

    .pro-badge {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .user-email {
        font-size: 12px;
    }

    .user-name-large {
        font-size: 14px;
    }

    .user-dropdown {
        right: -40px;
    }
}

#userDropdown,
#userDropdown:hover,
#userDropdown:focus,
#userDropdown.show,
#userDropdown[aria-expanded="true"] {
    padding: 8px 16px !important;
    border: 1px solid #e2e8f0 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

    #userDropdown.show,
    #userDropdown[aria-expanded="true"] {
        background: #f8fafc !important;
        border-color: #cbd5e1 !important;
        display: flex;
    }

/*=====================Usage Stats page==================*/
.stats-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin: 0;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.overview-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

    .overview-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2563eb, #10b981);
    }

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.overview-item {
    text-align: center;
}

.overview-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.overview-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.app-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

    .app-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.app-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.usage-progress {
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.progress-numbers {
    font-size: 0.8rem;
    color: #6b7280;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

    .progress-bar.warning {
        background: linear-gradient(90deg, #f59e0b, #d97706);
    }

    .progress-bar.danger {
        background: linear-gradient(90deg, #ef4444, #dc2626);
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.reset-info {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.reset-icon {
    font-size: 1.2rem;
    color: #d97706;
    margin-right: 0.5rem;
}

.reset-text {
    color: #92400e;
    font-weight: 500;
    margin: 0;
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

    .retry-btn:hover {
        background: #1d4ed8;
    }

.no-access-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.upgrade-btn {
    background: linear-gradient(135deg, #CD853F, #FF4500);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

    .upgrade-btn:hover {
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
    }

.app-badge {
    background-color: #9ad5fc;
    padding: 0.25rem 0.5rem;
    margin-right: 5px;
    margin-top: 10px;
    color: black;
    /* border-radius: 0.5rem; */
    text-decoration: none;
    font-size: 0.9rem;
}

.app-links-container {
    max-width: calc(100% - 150px); /* Adjust this value based on the width of the language switcher */
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Banner Container */
.promo-banner {
    position: relative;
    /* width: 100%;
    min-height: 120px;*/
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    overflow: hidden;
    padding: 1rem 1.5rem;
    margin: 1rem 1rem 1rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

    /* Decorative Circles */
    .promo-banner::before,
    .promo-banner::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        opacity: 0.1;
    }

    .promo-banner::before {
        width: 300px;
        height: 300px;
        background: white;
        top: -100px;
        left: -50px;
    }

    .promo-banner::after {
        width: 200px;
        height: 200px;
        background: white;
        bottom: -60px;
        right: 10%;
    }

/* Content Container */
.promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Text Section */
.promo-text {
    flex: 1;
    color: white;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.promo-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

/* CTA Button */
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #fbbf24;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    white-space: nowrap;
}

    .promo-cta:hover {
        background: #f59e0b;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    }

    .promo-cta:active {
        transform: translateY(0);
    }

    /* Arrow Icon */
    .promo-cta::after {
        content: '→';
        font-size: 1.25rem;
        transition: transform 0.3s ease;
    }

    .promo-cta:hover::after {
        transform: translateX(4px);
    }

/* Decorative Badge (Optional) */
.promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promo-banner {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-subtitle {
        font-size: 0.9rem;
    }

    .promo-cta {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .promo-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    .promo-banner::before {
        width: 200px;
        height: 200px;
        top: -80px;
    }

    .promo-banner::after {
        width: 150px;
        height: 150px;
    }
}

