/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

/* Search Box */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    font-family: inherit;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-main {
    font-weight: 600;
    color: var(--text-primary);
}

.autocomplete-secondary {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Scanning Section */
.scanning-section {
    background: var(--bg-white);
    padding: 60px 20px;
    min-height: 100vh;
}

.scanning-header {
    text-align: center;
    margin-bottom: 50px;
}

.scanning-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.scanning-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Checklist */
/* Scanning Layout - Two Columns */
.scanning-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.scanning-checklist {
    flex: 0 0 450px;
    max-width: 450px;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.checklist-item.processing {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.checklist-item.completed {
    border-color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.05);
}

.checklist-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.checklist-item .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.checklist-item.completed .spinner {
    display: none;
}

.checklist-item.completed .checklist-icon::after {
    content: '✓';
    font-size: 30px;
    color: var(--secondary-color);
    font-weight: bold;
}

.checklist-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.checklist-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Visual Feedback */
.visual-feedback {
    flex: 1;
    min-height: 500px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeInScale 0.4s ease-out;
    position: sticky;
    top: 20px;
}

.visual-feedback.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animation-container {
    text-align: center;
}

.animation-container h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Results Section */
.results-section {
    background: var(--bg-light);
    padding: 60px 20px;
    min-height: 100vh;
}

/* Score Card */
.score-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.score-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.score-display {
    margin: 30px 0;
}

.score-circle {
    position: relative;
    display: inline-block;
}

.score-ring {
    /* transform removed - rotation is handled by SVG transform attribute */
}

.score-ring-progress {
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s ease, stroke 0.5s ease;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

.score-label {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.modules-grid.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.module-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.module-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.module-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
}

.score-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.score-color.green {
    background: var(--secondary-color);
}

.score-color.yellow {
    background: var(--warning-color);
}

.score-color.red {
    background: var(--danger-color);
}

/* Unlock CTA */
.unlock-cta {
    position: relative;
    margin: 40px 0;
}

.unlock-overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.lock-icon {
    margin-bottom: 20px;
}

.unlock-overlay h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.unlock-overlay p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Buttons */
.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.email-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-size: 1.1rem;
}

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

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* NFC Gift */
.nfc-gift {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    text-align: center;
}

.gift-badge {
    display: inline-block;
    background: white;
    color: #f59e0b;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.nfc-gift p {
    color: white;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .scanning-header h2 {
        font-size: 2rem;
    }

    /* Stack layout on mobile */
    .scanning-layout {
        flex-direction: column;
        gap: 20px;
    }

    .scanning-checklist {
        flex: 1;
        max-width: 100%;
    }

    .visual-feedback {
        position: relative;
        top: 0;
        padding: 20px;
    }

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

    .modal-content {
        padding: 30px 20px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Detailed Results */
.detailed-results {
    margin-top: 40px;
}

.top-issues {
    margin-bottom: 40px;
}

.top-issues h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

.issue-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid;
    display: flex;
    gap: 20px;
}

.issue-card.critical {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.issue-card.high {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.issue-card.medium {
    border-color: #f59e0b;
}

.issue-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.issue-content {
    flex: 1;
}

.issue-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.issue-message {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.issue-loss {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    line-height: 1.6;
}

/* Benchmark Card */
.benchmark-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.benchmark-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.benchmark-card p {
    font-size: 1.1rem;
    margin: 10px 0;
}

.benchmark-card strong {
    font-size: 1.4rem;
    font-weight: 700;
}

.benchmark-card .warning {
    background: rgba(239, 68, 68, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
}

.benchmark-card .success {
    background: rgba(16, 185, 129, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
}

/* Strategy CTA */
.strategy-cta {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.strategy-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.strategy-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Utility Classes */
.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.hidden {
    display: none !important;
}

/* Add Social Button */
.add-social-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.add-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-social-btn svg {
    width: 16px;
    height: 16px;
}

/* Social Modal Styles */
#social-modal .modal-content {
    max-width: 500px;
}

#social-modal .form-group {
    margin-bottom: 20px;
}

#social-modal label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

#social-modal .social-icon {
    font-size: 1.5rem;
}

#social-modal input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

#social-modal input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#social-modal input[type="url"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Critical No-Website Alert */
.critical-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 3px solid #ef4444;
    border-radius: 16px;
    padding: 0;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
    animation: slideInDown 0.5s ease-out, pulse-border 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.critical-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
    background-size: 200% 100%;
    animation: gradient-slide 3s linear infinite;
}

.alert-content {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 25px;
}

.alert-icon {
    font-size: 3rem;
    animation: shake 1s ease-in-out infinite;
}

.alert-text h3 {
    color: #991b1b;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.alert-text p {
    color: #7f1d1d;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.alert-loss {
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    font-weight: 600;
    margin-top: 15px !important;
}

.alert-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #991b1b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.alert-close:hover {
    background: rgba(153, 27, 27, 0.1);
    transform: scale(1.1);
}

.alert-cta {
    background: white;
    padding: 20px 25px;
    border-top: 2px dashed #ef4444;
}

.alert-cta p {
    color: #1f2937;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 10px 40px rgba(239, 68, 68, 0.6);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-5deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(5deg);
    }
}

@keyframes gradient-slide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Success Modal */
.success-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 50px 40px;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-checkmark {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #10b981;
    animation: fillGreen 0.4s ease-in-out 0.4s forwards;
}

.checkmark.animate .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #10b981;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark.animate .checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-title {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 800;
}

.success-message {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-details {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #065f46;
}

.success-item:not(:last-child) {
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.success-icon {
    font-size: 1.5rem;
}

#success-modal .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fillGreen {
    100% {
        box-shadow: inset 0 0 0 60px #10b981;
    }
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

/* ==================== Competitor Map Section ==================== */
.competitor-map-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.competitor-map-section h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.map-description {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.competitor-map {
    width: 100%;
    height: 100%;
}

/* Radar Overlay */
.radar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.radar-scanner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
}

@keyframes radar-scan {
    0% {
        width: 0;
        height: 0;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }

    50% {
        width: 400px;
        height: 400px;
        box-shadow: 0 0 50px 20px rgba(99, 102, 241, 0.3);
    }

    100% {
        width: 800px;
        height: 800px;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .competitor-map-section {
        padding: 20px;
    }

    .map-container {
        height: 350px;
    }
}

/* Info Sections - Detailed Results */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

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

.info-item {
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Competitors List */
.competitors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competitor-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    gap: 15px;
}

.competitor-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.competitor-info {
    flex: 1;
}

.competitor-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.competitor-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Website Screenshot */
.website-screenshot {
    margin-bottom: 30px;
    text-align: center;
}

.website-screenshot h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.screenshot-img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.performance-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.performance-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric:last-of-type {
    border-bottom: none;
}

.checks {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.check-item {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.check-pass {
    background: #d1fae5;
    color: #065f46;
}

.check-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Social Media Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.social-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.social-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.social-status {
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-status.active {
    background: #d1fae5;
    color: #065f46;
}

.social-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.comparison-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.comparison-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-row .label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-primary);
}

.bar-container {
    flex: 1;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    height: 32px;
    position: relative;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 1s ease;
}

.bar.metric-good {
    background: linear-gradient(90deg, #10b981, #059669);
}

.bar.metric-bad {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bar.bar-neutral {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.comparison-warning {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-success {
    margin-top: 10px;
    padding: 8px 12px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* SEO Analysis Section */
.seo-score-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.seo-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: bold;
}

.seo-score.good {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.seo-score.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.seo-score.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.seo-score .score-value {
    font-size: 3rem;
    line-height: 1;
}

.seo-score .score-label {
    font-size: 1.5rem;
    opacity: 0.8;
}

.seo-status strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.seo-status p {
    color: #64748b;
    margin: 0;
}

.seo-issues,
.seo-recommendations {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
}

.seo-issues {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.seo-recommendations {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
}

.seo-issues h3,
.seo-recommendations h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #1e293b;
}

.seo-issues ul,
.seo-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.seo-issues li,
.seo-recommendations li {
    margin: 5px 0;
    color: #475569;
}

.seo-details {
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.seo-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #3b82f6;
    user-select: none;
}

.seo-details summary:hover {
    color: #2563eb;
}

.seo-checklist {
    margin-top: 15px;
}

.seo-checklist h4 {
    margin: 15px 0 8px 0;
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

    .performance-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .seo-score-container {
        flex-direction: column;
        align-items: flex-start;
    }


    .competitor-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Website Screenshot Preview (Animation) */
.website-screenshot-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.screenshot-device {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #1f2937;
    padding: 10px;
}

.screenshot-device.desktop {
    max-width: 500px;
    width: 100%;
}

.screenshot-device.mobile {
    max-width: 200px;
    width: 100%;
}

.screenshot-label {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.screenshot-loading {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    animation: screenshot-fade-in 0.8s ease-out;
}

.screenshot-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
}

.scanner-line-horizontal {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.8) 50%,
            transparent 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    animation: scanner-sweep 2s ease-in-out infinite;
}

@keyframes scanner-sweep {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes screenshot-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .website-screenshot-preview {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-device.desktop {
        max-width: 100%;
    }

    .screenshot-device.mobile {
        max-width: 150px;
    }
}

/* Mobile Screenshot in Phone Frame (Step 5) */
.mobile-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    animation: screenshot-fade-in 0.8s ease-out;
}