/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles - Matching Nafezly */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
}

.nav.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.nav-section h3 {
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.3rem;
}

.nav-section a {
    text-decoration: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-section i {
    font-size: 0.8rem;
    width: 16px;
}

.lang-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.lang-btn:hover {
    background: #e9ecef;
}

.menu-btn {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: #e9ecef;
}

/* Main Content */
.main {
    padding: 1.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.2rem;
    color: #212529;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Share Images Section */
.share-section {
    margin-bottom: 2.5rem;
}

.share-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-content h3 {
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.upload-content p {
    color: #6c757d;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.btn-upload {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-upload:hover {
    background: #0056b3;
}

.btn-share {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    width: 100%;
    margin-top: 1rem;
}

.btn-share:hover {
    background: #1e7e34;
}

/* Progress Section */
.progress-section {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #28a745 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Results Section */
.results-section {
    margin-top: 1.5rem;
}

.results-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.results-container {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.result-preview {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.result-details {
    flex: 1;
}

.result-details h4 {
    color: #495057;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-link {
    color: #007bff;
    font-size: 0.85rem;
    word-break: break-all;
    background: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-top: 0.3rem;
    display: block;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.copy-btn,
.download-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.copy-btn:hover,
.download-btn:hover {
    background: #0056b3;
}

.copy-btn.copied {
    background: #28a745;
}

/* Info Section - Two Column Layout */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card,
.about-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.info-card h2,
.about-card h2 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card i {
    color: #007bff;
}

.info-card p,
.about-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Popular Tools */
.popular-tools {
    margin-bottom: 2rem;
}

.popular-tools h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: white;
    padding: 1.2rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.tool-card:hover,
.tool-card.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #007bff;
}

.tool-card i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #007bff;
}

.tool-card span {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.footer-logo {
    height: 35px;
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: #6c757d;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #e9ecef;
    border-radius: 6px;
    text-align: center;
    line-height: 35px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #007bff;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section ul a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        min-width: 280px;
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .share-card {
        padding: 1.2rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .result-item {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .result-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .upload-area {
        padding: 1.5rem 0.8rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .share-card {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success animation */
.success-animation {
    color: #28a745;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Premium Image Sharing CSS - Meta Software */

/* Base styles (same as before with additions) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header with user status */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.subscription-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.subscription-badge.free {
    background: #e9ecef;
    color: #6c757d;
}

.subscription-badge.premium {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #856404;
}

.subscription-badge i {
    font-size: 0.7rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.logout-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.login-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.login-btn:hover {
    background: #0056b3;
}

/* Subscription Alert */
.subscription-alert {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    color: white;
    padding: 0.8rem 0;
    text-align: center;
}

.alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.upgrade-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-alert {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-alert:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Usage Stats */
.usage-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Upload area with plan indication */
.upload-info {
    margin: 0.5rem 0;
}

.free-info,
.premium-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.free-info {
    background: #fff3cd;
    color: #856404;
}

.premium-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Results section improvements */
.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-share.secondary {
    background: #6c757d;
}

.btn-share.secondary:hover {
    background: #5a6268;
}

/* Pricing Section */
.pricing-section {
    margin: 3rem 0;
    text-align: center;
}

.pricing-section h2 {
    color: #495057;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: #007bff;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

.price span {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.price-note {
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 0.5rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.features i.fa-check {
    color: #28a745;
}

.features i.fa-times {
    color: #dc3545;
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-plan.current {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

.btn-plan.featured {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.btn-plan.featured:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    color: #495057;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-modal {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-modal:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Subscription Modal */
.subscription-content {
    display: grid;
    gap: 2rem;
}

.plan-summary {
    text-align: center;
}

.plan-summary h4 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefits {
    list-style: none;
    text-align: right;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #495057;
}

.benefits i {
    color: #28a745;
}

.payment-methods h4 {
    text-align: center;
    color: #495057;
    margin-bottom: 1rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.payment-option:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.payment-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.payment-option i {
    font-size: 1.5rem;
    color: #007bff;
}

.payment-option span {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

/* Result item improvements */
.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 0.8rem;
    position: relative;
}

.result-item.permanent {
    border-left: 4px solid #28a745;
    background: #f8fff8;
}

.result-item.temporary {
    border-left: 4px solid #ffc107;
    background: #fffdf6;
}

.expiry-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ffc107;
    color: #856404;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.expiry-badge.permanent {
    background: #28a745;
    color: white;
}

.permanent-badge {
    background: #28a745;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-status {
        order: -1;
    }

    .usage-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alert-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .results-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        width: 95%;
    }

    .subscription-content {
        gap: 1rem;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for premium features */
.premium-glow {
    animation: premiumGlow 2s ease-in-out infinite alternate;
}

@keyframes premiumGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Success states */
.payment-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

