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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(77, 236, 236, 0.35) 0%, rgba(0, 60, 98, 0.15) 100%);
    color: #111111;
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Layout with Sidebar */
.layout-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar {
    display: none; /* Hidden by default (mobile and tablet) */
}

/* Show sidebar only on very wide screens (1700px and above) */
@media (min-width: 1700px) {
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: 1fr 260px; /* content left, sidebar right */
    }
    
    .sidebar {
        display: block; /* Show sidebar on very wide screens */
        position: sticky;
        top: 120px; /* below header */
        align-self: start;
        height: max-content;
        grid-column: 2; /* place on the right */
        width: auto;
        order: 0;
    }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 12px;
    margin-left: 0; /* keep aligned to sidebar edge */
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #003C62;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 0;
    transition: background 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 60, 98, 0.08);
}

.sidebar-link.is-hidden {
    display: none;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
}

/* Sidebar is hidden on mobile and tablet (max-width: 1024px) - no need for additional rules */

html {
    scroll-behavior: smooth;
}

/* Anchor offset to account for sticky header */
#features,
#analysisForm,
#resultsCard,
#urlComparison,
#guide,
#faq {
    scroll-margin-top: 180px; /* navigate a bit further down so the heading is lower */
}

/* Guide as plain text section */
.guide-section {
    margin-top: 24px;
    text-align: center;
}

.guide-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 50px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 12px;
    justify-content: center;
}

.guide-subtitle {
    color: #111111;
    opacity: 0.8;
    margin-bottom: 16px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px; /* more space between steps */
    align-items: center;
}

.guide-step {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 0 56px; /* more room between number and text */
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.step-badge {
    position: absolute;
    left: 16px;
    top: 2px; /* align with heading baseline */
    width: 32px;
    height: 32px; /* slightly larger number chip */
    border-radius: 0;
    background: #003C62;
    color: #FFFFFF;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.guide-step h4 {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 8px 0; /* clearer separation to text */
}

.guide-step p {
    margin: 0 0 10px 0; /* a bit more breathing room */
}

.step-note {
    font-size: 13px;
    background: rgba(77, 236, 236, 0.12);
    border: 1px solid rgba(77, 236, 236, 0.35);
    color: #111111;
    padding: 8px 10px;
    border-radius: 0;
    margin-top: 2px; /* space after paragraph */
}
.step-content {
    display: flex;
    flex-direction: column;
}

.note-label {
    font-weight: 800;
    margin-right: 6px;
}

.thresholds {
    display: grid;
    gap: 8px;
}

.threshold {
    display: flex;
    gap: 8px;
    align-items: center;
}

.t-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 0;
    font-weight: 800;
    font-size: 12px;
}

.t-text { font-size: 13px; }

.t-high .t-badge {
    background: #0FC27E;
    color: #FFFFFF;
}

.t-low .t-badge {
    background: #FFEA50;
    color: #003C62;
}

.info-list {
    margin-left: 16px;
    list-style: disc;
    display: inline-block;
    text-align: left;
}

/* FAQ section with item blocks */
.faq-section {
    margin-top: 24px;
    text-align: center;
}

.faq-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 50px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 12px;
    justify-content: center;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item + .faq-item {
    margin-top: 12px;
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Desktop: make sidebar fixed so it follows on scroll */
@media (min-width: 1700px) {
    .sidebar {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        right: 24px; /* offset slightly from viewport edge */
        width: 220px; /* slimmer to avoid overlap */
        z-index: 90;
    }
    .layout-with-sidebar {
        grid-template-columns: 1fr; /* content spans full container grid; sidebar overlays */
        padding-right: 0; /* keep content centered; sidebar floats outside container */
    }
}

/* On very wide screens, align sidebar just outside the centered container */
@media (min-width: 1700px) {
    .sidebar {
        right: 24px; /* consistent offset on ultra-wide */
    }
    .layout-with-sidebar {
        padding-right: 0; /* content remains centered */
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #003C62;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 60, 98, 0.3);
    overflow: visible;
}

/* Subheader under the header */
.subheader {
    background: rgba(77, 236, 236, 0.10);
    border-bottom: 1px solid rgba(77, 236, 236, 0.25);
}

.subheader .container {
    padding: 14px 30px;
}

.subheader p {
    color: #111111;
    opacity: 0.9;
    font-size: 14px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    padding: 20px 0;
    overflow: visible;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-left: -200px;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

.claneo-logo {
    height: 150px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
}

.header-info {
    display: flex;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main {
    padding: 32px 0;
}

/* Increase vertical spacing between main sections */
.main .container > section {
    margin-bottom: 72px;
}

/* Extra spacing after dynamic analysis content block */
.content {
    margin-bottom: 72px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 48px;
}

.hero h2 {
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #003C62 50%, #003C62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 20px;
    margin-bottom: 48px;
}

.features-heading {
    font-size: 50px;
    font-weight: 800;
    color: #111111;
    margin: 24px 0 16px 0;
    text-align: center;
    grid-column: 1 / -1; /* span across all columns when inside grid */
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 40px; /* larger block padding */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-height: 220px; /* give cards more presence */
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #003C62;
}

.feature-icon {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    padding: 20px; /* bigger icon container */
    border-radius: 0;
    width: fit-content;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 60, 98, 0.2);
}

.feature-icon i {
    font-size: 32px; /* larger icon */
    color: white;
}

.feature-card h3 {
    font-size: 24px; /* slightly larger title */
    font-weight: 800;
    margin-bottom: 12px;
    color: #111111;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: #64748b;
    font-size: 17px; /* slightly larger description */
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Content Layout */
.content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    margin-top: -45px; /* pull analysis form slightly upward */
}

/* Form Card */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.form-card h3 {
    display: block;
    margin-bottom: 24px;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
}

.form-card .form-group {
    margin-bottom: 0;
    min-width: auto;
}

/* Remove duplicate h3 styles since we hide the title */

/* Remove h3 icon styles since we hide the title */

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

/* Settings row - horizontal layout */
.settings-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.settings-row .form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

/* Keywords horizontal layout */
.keywords-group {
    margin-top: 0;
}

#keywordsContainer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.keyword-input {
    flex: 1;
    min-width: 200px;
}

/* Responsive design for settings row */
@media (max-width: 1024px) {
    .settings-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .header-content {
        height: 100px;
        padding: 15px 0;
    }
    
    .logo {
        margin-left: -100px;
    }
    
    .claneo-logo {
        height: 120px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .settings-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .settings-row .form-group {
        min-width: auto;
    }
    
    .header-content {
        height: 80px;
        padding: 12px 0;
        justify-content: flex-start;
        min-height: 80px;
    }
    
    .logo {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .claneo-logo {
        height: 70px;
        max-width: 200px;
        max-height: 70px;
    }
    
    /* Disable hover effects on mobile/tablet */
    .keyword-row:hover {
        transform: none !important;
    }
    
    .keyword-row.common-url-2:hover {
        background: rgba(0, 60, 98, 0.1) !important;
        box-shadow: none !important;
    }
    
    .keyword-row.common-url-3:hover {
        background: rgba(220, 38, 38, 0.1) !important;
        box-shadow: none !important;
    }
    
    .common-urls-card:hover {
        transform: none !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    }
    
    .pair-item:hover {
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
        border-color: #e2e8f0 !important;
    }
    
    .url-tables-container.url-hover-blur .keyword-row:not(.url-hover-highlight) {
        filter: none !important;
        opacity: 1 !important;
    }
    
    .keyword-row.url-hover-highlight {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    
    #keywordsContainer {
        flex-direction: column;
        gap: 12px;
    }
    
    .keyword-input {
        min-width: auto;
    }
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #374151;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    color: #1e293b;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Verschiebe Dropdown-Pfeil in den Einstellungen nach links */
.settings-row .form-group select {
    padding-right: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #003C62;
    box-shadow: 0 0 0 4px rgba(0, 60, 98, 0.1);
    background: white;
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-display {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    color: #1e293b;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    padding-right: 40px;
    position: relative;
}

.custom-select-display::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.custom-select-display:hover {
    border-color: #003C62;
    background: white;
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -2px;
    max-height: 400px;
    flex-direction: column;
}

.custom-select-dropdown[style*="display: flex"] {
    display: flex !important;
}

.custom-select-search {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.custom-select-search:focus {
    outline: none;
    background: white;
    border-bottom-color: #003C62;
}

.custom-select-options {
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
}

.custom-select-option:hover {
    background-color: #f8fafc;
    color: #003C62;
}

.custom-select-separator {
    padding: 8px 20px;
    color: #94a3b8;
    font-size: 12px;
    cursor: default;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Keywords Input */
.keyword-input {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.keyword-input input {
    flex: 1;
}

.remove-keyword {
    background: #b91c1c;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(185, 28, 28, 0.4);
}

.remove-keyword:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(153, 27, 27, 0.5);
}

.add-keyword-btn {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 10px 14px;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 60, 98, 0.3);
    letter-spacing: 0.01em;
}

.add-keyword-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 60, 98, 0.4);
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
}

/* Submit Button */
.submit-btn {
    width: auto;
    max-width: 350px;
    margin: 0 auto;
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    border: none;
    color: white;
    padding: 16px 28px;
    border-radius: 0;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 60, 98, 0.3);
    text-transform: none;
    letter-spacing: 0.01em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 60, 98, 0.4);
    background: linear-gradient(135deg, #003c62 0%, #0a4a6b 100%);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 60, 98, 0.2);
}

/* Results Card */
.results-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.results-header {
    padding: 32px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.results-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.results-header h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #111111;
    letter-spacing: -0.025em;
}

.results-header h3 i {
    color: #003C62;
    background: rgba(0, 60, 98, 0.1);
    padding: 12px;
    border-radius: 0;
}

.results-header p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.export-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.export-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.export-excel-btn {
    background: linear-gradient(135deg, #0FC27E 0%, #0aa86a 100%);
    color: white;
}

.export-excel-btn:hover {
    background: linear-gradient(135deg, #0aa86a 0%, #088d5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 194, 126, 0.3);
}

.export-csv-btn {
    background: linear-gradient(135deg, #2DB5B5 0%, #1DA5A5 100%);
    color: white;
}

.export-csv-btn:hover {
    background: linear-gradient(135deg, #1DA5A5 0%, #0D9595 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 181, 181, 0.3);
}

.export-pdf-btn {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.export-pdf-btn:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.export-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

@media (max-width: 768px) {
    .results-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .export-buttons {
        flex-direction: column;
        width: 100%;
    }

    .export-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #64748b;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    letter-spacing: -0.01em;
}

.tab-btn:hover {
    color: #003C62;
    background: rgba(29, 78, 216, 0.05);
}

.tab-btn.active {
    color: #003C62;
    border-bottom-color: #003C62;
    background: white;
}

/* Results Content */
.results-content {
    padding: 32px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #003C62;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -0.02em;
}

.card-icon {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 60, 98, 0.2);
}

.card-icon i {
    color: white;
    font-size: 24px;
}

/* Search Volume Container */
.search-volume-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.search-volume-container h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-volume-container h4 i {
    color: #003C62;
    background: rgba(0, 60, 98, 0.1);
    padding: 8px;
    border-radius: 0;
}

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

.search-volume-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.search-volume-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #003C62;
}

.search-volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.search-volume-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.search-volume-badge {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 6px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
}

.search-volume-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.volume-number {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.volume-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overlap Score and Recommendation Container */
.overlap-recommendation-container {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Modern Overlap Score Visualization */
.overlap-score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.overlap-score-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 60, 98, 0.02) 0%, rgba(0, 60, 98, 0.08) 100%);
    border-radius: 0;
}

.overlap-score-circle {
    position: relative;
    width: 240px;
    height: 240px;
    z-index: 2;
}

.score-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: conic-gradient(#4DECEC 0deg 0deg, #f1f5f9 0deg 360deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0, 60, 98, 0.15),
        0 0 0 1px rgba(0, 60, 98, 0.1),
        inset 0 0 0 8px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.score-value {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
    position: relative;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 60, 98, 0.1);
}

.score-label {
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
    z-index: 2;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-circle:hover {
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 60, 98, 0.2),
        0 0 0 2px rgba(0, 60, 98, 0.15),
        inset 0 0 0 8px rgba(255, 255, 255, 0.9);
}

/* Recommendation Card */
.recommendation-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.recommendation-card.success {
    border-color: #0FC27E;
    background: #FFFFFF;
}

.recommendation-card.warning {
    border-color: #FFEA50;
    background: #FFFFFF;
}

.recommendation-card.info {
    border-color: #003C62;
    background: #FFFFFF;
}

.recommendation-card.error {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.recommendation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 0;
    margin-bottom: 8px;
}

.recommendation-card.success .recommendation-icon {
    background: #0FC27E;
    color: #FFFFFF;
    box-shadow: none;
}

.recommendation-card.warning .recommendation-icon {
    background: #FFEA50;
    color: #003C62;
    box-shadow: none;
}

.recommendation-card.info .recommendation-icon {
    background: #003C62;
    color: #FFFFFF;
    box-shadow: none;
}

.recommendation-card.error .recommendation-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
}

.recommendation-icon i {
    font-size: 24px;
}

.recommendation-content h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #111111;
    letter-spacing: -0.02em;
}

.recommendation-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Common URLs Card */
.common-urls-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.common-urls-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.common-urls-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 0;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(0, 60, 98, 0.3);
}

.common-urls-icon i {
    font-size: 24px;
}

.common-urls-content h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.common-urls-number {
    font-size: 48px;
    font-weight: 900;
    color: #003C62;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.common-urls-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* URL Comparison Container */
.url-comparison-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 24px 0;
}

/* URL Legend */
.url-legend {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.url-legend h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-legend h5 i {
    color: #003C62;
}

.legend-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-color.blue {
    background: rgba(0, 60, 98, 0.1);
    border: 1px solid #003C62;
}

.legend-color.red {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
}

.legend-item span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Legend Controls */
.legend-controls {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-top: 16px;
}

.legend-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.legend-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #003C62;
}

.toggle-label {
    user-select: none;
}

/* Hidden Markings */
.keyword-row.markings-hidden {
    background: transparent !important;
    border-left: none !important;
}

.keyword-row.markings-hidden.common-url-2 {
    background: transparent !important;
    border-left: none !important;
}

.keyword-row.markings-hidden.common-url-3 {
    background: transparent !important;
    border-left: none !important;
}

/* Specific Color Markings */
.keyword-row.blue-markings-hidden {
    background: transparent !important;
    border-left: none !important;
}

.keyword-row.red-markings-hidden {
    background: transparent !important;
    border-left: none !important;
}

.url-comparison-container h4 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    color: #1e293b;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 16px;
}

.url-comparison-container h4 i {
    color: #003C62;
    background: rgba(0, 60, 98, 0.1);
    padding: 12px;
    border-radius: 0;
    font-size: 20px;
}

.results-export-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

/* Analysis Container */
.analysis-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.analysis-container h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.analysis-container h4 i {
    color: #003C62;
    background: rgba(0, 60, 98, 0.1);
    padding: 8px;
    border-radius: 0;
}

/* SERP Container removed - no longer needed */

/* Error Message Styles */
.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 0;
    padding: 12px 16px;
    margin: 16px 0;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.1);
    animation: slideIn 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dc2626;
    font-weight: 600;
}

.error-content i {
    font-size: 18px;
    color: #dc2626;
}

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

/* Remove duplicate h4 styles */

/* URL Tables Container */
.url-tables-container {
    display: flex;
    gap: 40px;
    overflow-x: visible;
    padding: 24px 0;
    justify-content: center;
    position: relative;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: #003C62;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.keyword-table-container {
    flex: 1;
    max-width: 400px;
    width: calc(33.333% - 11px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.keyword-table-header {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    color: white;
    padding: 12px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.ai-overview-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 12px;
    background: transparent;
    border-radius: 0;
    margin: 0 0 12px 0;
    position: relative;
    top: -5px;
}

.ai-overview-section i {
    font-size: 18px;
}

.search-volume-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 12px;
    background: transparent;
    border-radius: 0;
    margin: 0 0 12px 0;
    position: relative;
    top: -15px;
}

.search-volume-section .search-volume-badge {
    color: #1e293b;
    font-weight: 600;
    font-size: 16px;
}

/* SERP Features under Search Volume */
.serp-features-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start; /* start chips at the same top within the block */
    padding: 0 12px;
    min-height: 32px;
    margin: 0 0 12px 0;
    position: relative;
    top: -25px;
}

.serp-features-label {
    font-size: 13px;
    color: #003C62;
    font-weight: 700;
}

.serp-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    align-content: flex-start; /* pack multiple rows from the top */
    width: 100%;
    overflow: visible; /* Erlaube Überlappung der Anzahl-Badges */
}

.serp-row-break {
    flex-basis: 100%;
    height: 0;
}

.serp-features-section.empty {
    min-height: 32px; /* reserve space so table doesn't shift */
}

.serp-feature-badge {
    background: #eef2ff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0 8px; /* horizontal only to keep constant height */
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px; /* equal chip height */
    line-height: 32px;
    white-space: nowrap;
    overflow: visible; /* Erlaube Überlappung für Anzahl-Badge */
    text-overflow: ellipsis;
    position: relative;
}

.serp-feature-badge .bi {
    font-size: 16px;
    flex-shrink: 0;
}

.serp-feature-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #003C62;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.serp-feature-badge.empty-slot {
    visibility: hidden; /* reserve space without rendering content */
}

.keyword-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.keyword-table-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.keyword-stats {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}

.top10-label {
    font-size: 14px;
    color: #003C62;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    top: -35px;
    padding: 0 12px;
}

.keyword-table-content {
    padding: 0;
    background: white;
    border-radius: 0;
    border: 1px solid #333333;
    margin-bottom: 16px;
    position: relative;
    top: -35px;
    overflow: hidden;
}

.keyword-row {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #333333;
    transition: all 0.3s ease;
    align-items: center;
    height: 55px;
}

.keyword-row[style*="background"] {
    border-bottom: 1px solid #333333;
}

.keyword-row[style*="background"] + .keyword-row[style*="background"] {
    border-top: 1px solid #333333;
    margin-top: -1px;
}

.keyword-row:last-child {
    border-bottom: none;
}

.keyword-row:hover {
    transform: scale(1.02);
    transform-origin: center;
    z-index: 5;
    position: relative;
}

.keyword-row[style*="background"]:hover {
    /* Keep the background color from inline style on hover */
    background: inherit !important;
}

.keyword-row.common-url-2 {
    background: rgba(0, 60, 98, 0.1);
    color: #1e293b;
}

.keyword-row.common-url-2:hover {
    background: rgba(0, 60, 98, 0.2);
    box-shadow: 0 2px 8px rgba(0, 60, 98, 0.2);
}

.keyword-row.common-url-3 {
    background: rgba(220, 38, 38, 0.1);
    color: #1e293b;
}

.keyword-row.common-url-3:hover {
    background: rgba(220, 38, 38, 0.2);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.url-tables-container.url-hover-blur .keyword-row:not(.url-hover-highlight) {
    filter: blur(2px);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.keyword-row.url-hover-highlight {
    transform: scale(1.03);
    transform-origin: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(0, 60, 98, 0.7);
    z-index: 10;
    position: relative;
    transition: all 0.2s ease;
    filter: brightness(1.05);
    border-bottom: none !important;
}

.keyword-position {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
    color: #000000 !important;
    font-size: 14px;
    border-radius: 0;
    padding: 8px 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyword-url {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
    justify-content: center;
    min-width: 0;
}

.keyword-url.empty {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    font-style: italic;
}

.url-text {
    font-weight: 400;
    color: #111111;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 36px;
}

/* Pairs Horizontal Analysis */
.pairs-horizontal-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.pair-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.pair-item {
    cursor: pointer;
}

.pair-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #003C62;
}

.pair-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pair-title h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.pair-score {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pair-overlap {
    width: 100%;
}

.pair-score .score-value {
    font-size: 14px;
    font-weight: 700;
    color: white !important;
}

.pair-item .pair-score .score-value {
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.overlap-bar-container {
    background: #FFFFFF;
    border-radius: 0;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.overlap-bar {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    height: 100%;
    border-radius: 0;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

/* Analysis List */
.analysis-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.analysis-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.analysis-header:hover {
    background: rgba(29, 78, 216, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.analysis-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.analysis-icon {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 60, 98, 0.2);
}

.analysis-icon i {
    color: white;
    font-size: 20px;
}

.analysis-info h5 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 16px;
}

.analysis-info p {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.analysis-stats {
    text-align: right;
}

.analysis-item .analysis-stats .overlap-percentage {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.analysis-stats .overlap-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-details {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    display: none;
    background: #f8fafc;
}

.analysis-details.active {
    display: block;
}

.analysis-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.analysis-metric {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.analysis-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #003C62;
}

.analysis-metric-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-metric-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.domains-list {
    margin-top: 16px;
}

.domains-list h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 16px;
}

.domains-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.domain-tag {
    background: linear-gradient(135deg, #003C62 0%, #003C62 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 60, 98, 0.2);
    transition: all 0.3s ease;
}

.domain-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* SERP Data */
.serp-item {
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid #374151;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.serp-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.serp-header:hover {
    background: rgba(6, 182, 212, 0.1);
}

.serp-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.serp-icon {
    background: rgba(6, 182, 212, 0.2);
    padding: 8px;
    border-radius: 0;
}

.serp-icon i {
    color: #06b6d4;
    font-size: 20px;
}

.serp-info h5 {
    font-weight: 600;
    margin-bottom: 4px;
}

.serp-info p {
    font-size: 14px;
    color: #9ca3af;
}

.serp-stats {
    text-align: right;
}

.serp-stats .search-volume {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
}

.serp-stats .search-volume-label {
    font-size: 12px;
    color: #9ca3af;
}

.serp-details {
    padding: 16px;
    border-top: 1px solid #374151;
    display: none;
}

.serp-details.active {
    display: block;
}

.serp-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.serp-metric {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 0;
    padding: 12px;
    text-align: center;
}

.serp-metric-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.serp-metric-value {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.serp-results {
    margin-top: 16px;
}

.serp-results h6 {
    font-weight: 600;
    margin-bottom: 12px;
}

.serp-result-item {
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid #4b5563;
    border-radius: 0;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.serp-position {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.serp-content {
    flex: 1;
}

.serp-result-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: white;
}

.serp-result-url {
    color: #06b6d4;
    font-size: 12px;
    margin-bottom: 4px;
}

.serp-result-description {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 8px;
}

.serp-result-domain {
    background: #4b5563;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    display: inline-block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    color: #64748b;
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
    color: #1e293b;
    background: white;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.loading-spinner i {
    font-size: 48px;
    color: #003C62;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: -0.01em;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .form-card {
        flex-direction: column;
        gap: 24px;
    }
    
    .form-card form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-card .form-group {
        min-width: auto;
    }
    
    .hero {
        padding: 32px 0;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 42px;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .features-heading {
        font-size: 36px !important;
        margin-bottom: 24px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px;
        min-height: auto;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .overlap-recommendation-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .overlap-score-container {
        display: flex;
        justify-content: center;
    }
    
    .overlap-score-circle {
        width: 200px;
        height: 200px;
    }
    
    .score-circle {
        width: 200px;
        height: 200px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .recommendation-card,
    .common-urls-card {
        min-width: auto;
        padding: 20px;
    }
    
    .guide-section h3,
    .faq-section h3 {
        font-size: 32px !important;
        flex-direction: column;
        gap: 8px;
    }
    
    .guide-step {
        padding-left: 48px;
        max-width: 100%;
    }
    
    .step-badge {
        left: 0;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .faq-item {
        padding: 16px;
    }
    
    .url-comparison-container {
        padding: 20px;
        overflow-x: auto;
    }
    
    .url-tables-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .keyword-table-container {
        min-width: 100%;
    }
    
    .keyword-table {
        min-width: 100%;
    }
    
    .results-header {
        padding: 20px;
    }
    
    .results-header h3 {
        font-size: 22px;
    }
    
    .results-content {
        padding: 20px;
    }
    
    .results-export-buttons-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding-top: 24px;
    }
    
    .results-export-buttons-container .export-btn {
        width: 100%;
        justify-content: center;
    }
    
    .analysis-container {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .url-tables-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .keyword-table {
        min-width: 250px;
        max-width: 350px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h2 {
        font-size: 32px;
        margin-top: 20px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .features-heading {
        font-size: 28px !important;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .url-tables-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .keyword-table {
        min-width: auto;
        max-width: none;
    }
    
    .keyword-table-header {
        padding: 12px;
    }
    
    .keyword-table-header h5 {
        font-size: 16px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-direction: row;
        gap: 12px;
        height: 60px;
        min-height: 60px;
        padding: 8px 0;
        justify-content: flex-start;
    }
    
    .header {
        min-height: 60px;
    }
    
    .header-info {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .claneo-logo {
        max-height: 50px;
        height: auto;
        width: auto;
        max-width: 180px;
    }
    
    .overlap-score-circle {
        width: 160px;
        height: 160px;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
    }
    
    .score-value {
        font-size: 28px;
    }
    
    .score-label {
        font-size: 12px;
    }
    
    .guide-section h3,
    .faq-section h3 {
        font-size: 24px !important;
    }
    
    .guide-step {
        padding-left: 44px;
    }
    
    .step-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .guide-step h4 {
        font-size: 15px;
    }
    
    .guide-step p {
        font-size: 14px;
    }
    
    .results-header h3 {
        font-size: 20px;
    }
    
    .results-header h3 i {
        padding: 8px;
        font-size: 18px;
    }
    
    .export-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Sidebar is hidden on mobile/tablet - no styling needed */
    
    #features,
    #analysisForm,
    #resultsCard,
    #urlComparison,
    #guide,
    #faq {
        scroll-margin-top: 120px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .logo {
        margin-left: 0;
        justify-content: center;
    }
    
    .claneo-logo {
        max-height: 50px;
        height: auto;
        max-width: 180px;
        width: auto;
    }
    
    .header-content {
        height: 70px;
        padding: 10px 0;
    }
    
    .submit-btn,
    .add-keyword-btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-right-color: #06b6d4;
    }
}

/* Extra small screens - ensure logo is always visible */
@media (max-width: 484px) {
    .header {
        padding: 4px 0;
        min-height: 50px;
        overflow: visible;
    }
    
    .header-content {
        height: 50px !important;
        min-height: 50px !important;
        padding: 2px 0 !important;
        justify-content: flex-start !important;
        align-items: center;
        overflow: visible;
    }
    
    .header {
        min-height: 50px !important;
        height: auto;
    }
    
    .logo {
        margin-left: 0 !important;
        justify-content: flex-start;
        width: auto;
        display: flex;
        flex-shrink: 0;
        min-width: 0;
        align-items: center;
    }
    
    .claneo-logo {
        max-height: 40px !important;
        height: 40px !important;
        max-width: 140px !important;
        width: auto !important;
        object-fit: contain;
        flex-shrink: 0;
        display: block;
    }
    
    .container {
        padding: 0 4px !important;
        overflow: visible;
    }
    
    .header .container {
        padding: 0 8px !important;
    }
    
    /* Disable hover effects on mobile */
    .keyword-row:hover {
        transform: none !important;
    }
    
    .keyword-row.common-url-2:hover {
        background: rgba(0, 60, 98, 0.1) !important;
        box-shadow: none !important;
    }
    
    .keyword-row.common-url-3:hover {
        background: rgba(220, 38, 38, 0.1) !important;
        box-shadow: none !important;
    }
    
    .common-urls-card:hover {
        transform: none !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    }
    
    .pair-item:hover {
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
        border-color: #e2e8f0 !important;
    }
    
    .url-tables-container.url-hover-blur .keyword-row:not(.url-hover-highlight) {
        filter: none !important;
        opacity: 1 !important;
    }
    
    .keyword-row.url-hover-highlight {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0;
    align-items: flex-start;
    justify-content: center;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.modal-content {
    background-color: #ffffff;
    margin: 20px auto;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    width: 90%;
    max-width: 1200px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    top: 20px;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px 12px 0 0;
    gap: 16px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
    margin: 0;
    flex: 1;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111111;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-stats-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0;
    border: 1px solid #e2e8f0;
}

.modal-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    min-width: 150px;
}

.modal-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
}

.modal-export-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 16px 20px;
        border-radius: 0;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-stats-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .modal-stat-item {
        min-width: auto;
        padding: 12px 24px;
    }
    
    .modal-stat-label {
        font-size: 12px;
    }
    
    .modal-stat-value {
        font-size: 24px;
    }
    
    .modal-export-buttons-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .modal-export-buttons-container .export-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 450px) {
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-header-actions {
        gap: 4px;
    }
    
    .modal-header-actions .export-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .modal-header-actions .export-btn i {
        font-size: 12px;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
}
