        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
        }
        
        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .header p {
            font-size: 1.2em;
            opacity: 0.9;
        }
        
        .search-box {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            margin-bottom: 30px;
        }
        
        .search-form {
            display: flex;
            gap: 10px;
        }
        
        .search-input {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        .search-input:focus,
        .tabs button:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .search-btn,
        .tabs button {
            padding: 15px 35px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .search-btn:hover,
        .tabs button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }
        
        .search-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .mode-tabs {
            display: flex;
            gap: 10px;
            border-top: 1px solid #e0e0e0;
            padding-top: 20px;
        }
        
        .mode-tab {
            flex: 1;
            padding: 12px;
            background: #f5f5f5;
            border: 2px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .mode-tab:hover {
            background: #e8e8e8;
        }
        
        .mode-tab.active {
            background: white;
            border-color: #667eea;
            color: #667eea;
        }
        
        .loading {
            text-align: center;
            padding: 40px;
            color: white;
            font-size: 1.2em;
            display: none;
        }
        
        .tabs {
            color: white;
            font-size: 1.2em;
            display: none;
        }
        
        .loading.active,
        .tabs.active {
            display: block;
        }
        
        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        
        .results-container {
            display: none;
        }
        
        .results-container.active {
            display: block;
        }
        
        .result-tabs {
            background: white;
            padding: 20px 30px;
            border-radius: 15px 15px 0 0;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            display: flex;
            gap: 10px;
            margin-bottom: -1px;
        }
        
        .result-tab {
            width: 100%;
            text-align: center;
            padding: 15px 25px;
            background: #f5f5f5;
            border: 2px solid transparent;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .result-tab:hover {
            background: #e8e8e8;
        }
        
        .result-tab.active {
            background: white;
            border-color: #667eea;
            border-bottom-color: white;
            color: #667eea;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .result-section {
            background: white;
            padding: 25px;
        }
        
        .result-section h2 {
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
            font-size: 1.5em;
        }
        
        .result-section h2::before {
            content: "●";
            color: #667eea;
            font-size: 1.2em;
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .info-item {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #667eea;
        }
        
        .info-label {
            font-weight: bold;
            color: #555;
            margin-bottom: 5px;
            font-size: 0.9em;
            text-transform: uppercase;
        }
        
        .info-value {
            color: #333;
            font-size: 1.1em;
            word-break: break-all;
        }
        
        .error {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #dc3545;
            margin: 10px 0;
        }
        
        .days-remaining {
            margin-top: 5px;
            padding: 4px 10px;
            border-radius: 4px;
            display: inline-block;
            font-size: 0.9em;
            font-weight: 600;
        }
        
        .days-good {
            background: #d1fae5;
            color: #10b981;
        }
        
        .days-warning {
            background: #fef3c7;
            color: #f59e0b;
        }
        
        .days-danger {
            background: #fee2e2;
            color: #dc2626;
        }
        /* PageSpeed-style Security Score */
        
        .security-score-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px;
        }
        
        .gauge-container {
            position: relative;
            width: 200px;
            height: 200px;
            margin-bottom: 30px;
        }
        
        .gauge-background {
            position: absolute;
            width: 100%;
            height: 100%;
        }
        
        .gauge-arc {
            fill: none;
            stroke-width: 16;
            stroke-linecap: round;
        }
        
        .gauge-arc-bg {
            stroke: #e0e0e0;
        }
        
        .gauge-arc-fill {
            stroke: #0cce6b;
            stroke-dasharray: 251.2;
            stroke-dashoffset: 251.2;
            transition: stroke-dashoffset 1s ease, stroke 1s ease;
            transform: rotate(-90deg);
            transform-origin: center;
        }
        
        .gauge-score {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        
        .gauge-score-value {
            font-size: 48px;
            font-weight: bold;
            color: #0cce6b;
            line-height: 1;
            transition: color 1s ease;
        }
        
        .gauge-score-label {
            font-size: 14px;
            color: #666;
            margin-top: 5px;
        }
        
        .score-status {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #0cce6b;
            transition: color 1s ease;
        }
        
        .score-description {
            font-size: 14px;
            color: #666;
            max-width: 500px;
            text-align: center;
            margin-bottom: 30px;
        }
        
        .security-checks {
            width: 100%;
            max-width: 800px;
        }
        
        .security-checks .check-item {
            padding: 16px 20px;
            margin-bottom: 12px;
            border-radius: 8px;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            border-left: 4px solid;
            background: #f8f9fa;
            transition: all 0.3s ease;
        }
        
        .security-checks .check-item:hover {
            transform: translateX(5px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .security-checks .check-item.pass {
            background: #f0fdf4;
            border-left-color: #10b981;
        }
        
        .security-checks .check-item.fail {
            background: #fef2f2;
            border-left-color: #ef4444;
        }
        
        .security-checks .check-item.warning {
            background: #fffbeb;
            border-left-color: #f59e0b;
        }
        
        .security-checks .check-icon {
            font-size: 24px;
            flex-shrink: 0;
            margin-top: 2px;
        }
        
        .security-checks .check-content {
            flex: 1;
        }
        
        .check-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        
        .security-checks .check-name {
            font-weight: 600;
            color: #1f2937;
            font-size: 15px;
        }
        
        .security-checks .check-score {
            font-size: 13px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
        }
        
        .security-checks .check-score.negative {
            color: #dc2626;
            background: #fee2e2;
        }
        
        .security-checks .check-score.neutral {
            color: #10b981;
            background: #d1fae5;
        }
        
        .security-checks .check-message {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.5;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .tag {
            display: inline-block;
            padding: 5px 12px;
            background: #667eea;
            color: white;
            border-radius: 15px;
            font-size: 0.9em;
        }
        
        .error {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #dc3545;
        }
        
        .empty-state {
            text-align: center;
            padding: 30px;
            color: #666;
            font-style: italic;
        }
        
        .raw-data {
            margin-top: 15px;
            padding: 15px;
            background: #2d2d2d;
            color: #f8f8f2;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            max-height: 300px;
            overflow-y: auto;
            white-space: pre-wrap;
            word-break: break-all;
        }
        
        .toggle-raw {
            margin-top: 10px;
            padding: 8px 15px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
        }
        
        .toggle-raw:hover {
            background: #5568d3;
        }
        
        .soa-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .soa-item {
            padding: 10px;
            background: white;
            border-radius: 5px;
            border-left: 3px solid #667eea;
        }
        
        .soa-label {
            font-size: 0.8em;
            color: #666;
            margin-bottom: 3px;
        }
        
        .soa-value {
            font-size: 0.95em;
            color: #333;
            font-weight: 500;
        }
        
        .tabs button {
            border: 2px solid #334155
        }
        
        .tab {
            display: none;
            margin-top: 15px
        }
        
        .tab.active {
            display: block
        }
        
        .tech-categories {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .tech-category {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            border-left: 4px solid #667eea;
        }
        
        .tech-category-header {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .tech-icon {
            font-size: 20px;
        }
        
        .tech-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .tech-item {
            background: white;
            padding: 10px 12px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .tech-item-name {
            font-weight: 500;
            color: #333;
        }
        
        .tech-item-version {
            font-size: 0.85em;
            color: #666;
            background: #e9ecef;
            padding: 2px 8px;
            border-radius: 4px;
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 1.8em;
            }
            .search-form {
                flex-direction: column;
            }
            .info-grid {
                grid-template-columns: 1fr;
            }
            .gauge-container {
                width: 160px;
                height: 160px;
            }
            .gauge-score-value {
                font-size: 38px;
            }
            .check-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
        }
        /* Technology Grid Styles */
        
        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .tech-category-box {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 12px;
            border-left: 4px solid #667eea;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .tech-category-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .tech-category-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e0e0e0;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .tech-icon {
            font-size: 18px;
        }
        
        .tech-label {
            font-size: 0.85em;
        }
        
        .tech-items-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .tech-item-card {
            background: white;
            padding: 8px 10px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9em;
            transition: background 0.2s;
        }
        
        .tech-item-card:hover {
            background: #f0f0f0;
        }
        
        .tech-name {
            font-weight: 500;
            color: #333;
            flex: 1;
        }
        
        .tech-version {
            color: #666;
            background: #e9ecef;
            padding: 2px 8px;
            border-radius: 4px;
            font-family: monospace;
        }
        /* Debug Mode Styles */
        
        .summary-box {
            background: white;
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .summary-item {
            text-align: center;
            padding: 20px;
            border-radius: 10px;
            border: 2px solid #e0e0e0;
        }
        
        .summary-number {
            font-size: 3em;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .summary-label {
            font-size: 0.9em;
            color: #666;
            text-transform: uppercase;
        }
        
        .critical-issues {
            border-color: #dc2626;
        }
        
        .critical-issues .summary-number {
            color: #dc2626;
        }
        
        .warnings {
            border-color: #f59e0b;
        }
        
        .warnings .summary-number {
            color: #f59e0b;
        }
        
        .passed-tests {
            border-color: #10b981;
        }
        
        .passed-tests .summary-number {
            color: #10b981;
        }
        
        .category-section {
            background: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .category-header {
            font-size: 1.5em;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .category-section .check-item {
            padding: 20px;
            margin-bottom: 15px;
            border-radius: 10px;
            border-left: 5px solid;
        }
        
        .category-section .check-item.pass {
            background: #f0fdf4;
            border-left-color: #10b981;
        }
        
        .check-item.fail {
            background: #fef2f2;
            border-left-color: #dc2626;
        }
        
        .check-item.warning {
            background: #fffbeb;
            border-left-color: #f59e0b;
        }
        
        .check-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .check-title {
            font-weight: 600;
            font-size: 1.1em;
            color: #333;
        }
        
        .check-badge {
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
        }
        
        .badge-pass {
            background: #d1fae5;
            color: #10b981;
        }
        
        .badge-fail {
            background: #fee2e2;
            color: #dc2626;
        }
        
        .badge-warning {
            background: #fef3c7;
            color: #f59e0b;
        }
        
        .check-message {
            color: #666;
            margin-bottom: 10px;
            line-height: 1.6;
        }
        
        .check-details {
            background: rgba(0, 0, 0, 0.05);
            padding: 10px 15px;
            border-radius: 5px;
            font-size: 0.9em;
            font-family: monospace;
            margin: 10px 0;
            word-break: break-all;
        }
        
        .solution-box {
            margin-top: 15px;
            padding: 15px;
            background: white;
            border: 2px solid #667eea;
            border-radius: 8px;
        }
        
        .solution-title {
            font-weight: 600;
            color: #667eea;
            margin-bottom: 10px;
            font-size: 1.05em;
        }
        
        .solution-steps {
            padding-left: 20px;
            color: #444;
            line-height: 1.8;
        }
        
        .solution-steps li {
            margin-bottom: 8px;
        }
        
        .recommendations {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 20px;
        }
        
        .recommendation-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
            border-left: 4px solid white;
        }
        
        .recommendation-title {
            font-weight: 600;
            font-size: 1.1em;
            margin-bottom: 8px;
        }
        
        .toggle-solution {
            background: #667eea;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            margin-top: 10px;
        }
        
        .toggle-solution:hover {
            background: #5568d3;
        }
        
        .hidden {
            display: none;
        }
        
        @media (max-width: 768px) {
            .info-grid {
                grid-template-columns: 1fr;
            }
            .summary-grid {
                grid-template-columns: 1fr;
            }
            .mode-tabs {
                flex-direction: column;
            }
        }
        /* sitemap styles */
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .stat-card {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            border: 2px solid #e0e0e0;
        }
        
        .stat-number {
            font-size: 3em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }
        
        .stat-label {
            font-size: 0.9em;
            color: #666;
            text-transform: uppercase;
        }
        
        .url-list {
            max-height: 500px;
            overflow-y: auto;
        }
        
        .url-item {
            padding: 15px;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .url-item:hover {
            background: #f8f9fa;
        }
        
        .url-link {
            color: #667eea;
            text-decoration: none;
            word-break: break-all;
        }
        
        .url-link:hover {
            text-decoration: underline;
        }
        
        .badge {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: 600;
            margin-left: 10px;
        }
        
        .badge-blog {
            background: #e0f2fe;
            color: #0369a1;
        }
        
        .badge-product {
            background: #fef3c7;
            color: #d97706;
        }
        
        .badge-page {
            background: #e0e7ff;
            color: #4f46e5;
        }
        
        .export-btn {
            padding: 10px 20px;
            background: #10b981;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .export-btn:hover {
            background: #059669;
        }
        
        .error {
            background: #fee2e2;
            color: #991b1b;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #dc2626;
        }
        
        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .tech-category {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #667eea;
        }
        
        .tech-category h3 {
            font-size: 0.9em;
            color: #667eea;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        
        .tech-list {
            list-style: none;
        }
        
        .tech-list li {
            padding: 5px 0;
            color: #333;
        }
        
        html {
            scroll-behavior: smooth;
        }
        /* Button style */
        
        #backToTop {
            position: fixed;
            bottom: 40px;
            right: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 50px;
            font-size: 18px;
            cursor: pointer;
            /* animation */
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            transition: all 0.3s ease;
        }
        /* khi hiện */
        
        #backToTop.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        
        #backToTop:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }
        
        @media (max-width: 768px) {
            .info-grid {
                grid-template-columns: 1fr;
            }
            .result-tabs {
                flex-wrap: wrap;
            }
            .header h1 {
                font-size: 1.8em;
            }
        }
