@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #f4f6fb;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --panel-border: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.18);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(at 10% 10%, rgba(59, 130, 246, 0.06) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(139, 92, 246, 0.06) 0px, transparent 50%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

/* Glassmorphism Panel Utilities */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
}

/* Main Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.sidebar-logo img {
    height: 32px;
    width: auto;
}

.sidebar-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.sidebar-item a:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
    transform: translateX(4px);
}

.sidebar-item.active a {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}

.sidebar-item.active a i {
    color: var(--primary);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--danger);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-footer-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    transform: translateX(4px);
}

/* Main Content Area */
.admin-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
}

/* Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.header-title h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.header-title p {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.admin-name {
    font-size: 14px;
    font-weight: 600;
}

/* Dashboard Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.metric-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color, var(--primary));
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--card-color, var(--primary));
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.metric-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Tables */
.table-container {
    padding: 24px;
    margin-bottom: 36px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}

.admin-table tr {
    transition: var(--transition);
}

.admin-table tr:hover td {
    background: rgba(15, 23, 42, 0.02);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid-full {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-top: 10px;
}

.form-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-primary {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Login Page Styling */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.login-logo img {
    height: 40px;
}

.login-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.login-card .form-group {
    text-align: left;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content-wrapper {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Toast Messages */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: rgba(16, 185, 129, 0.95);
    border: 1px solid #10b981;
    color: white;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.toast-error {
    background: rgba(239, 68, 68, 0.95);
    border: 1px solid #ef4444;
    color: white;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Utility Classes */
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.w-full { width: 100%; }

/* Tab controls */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

.tab-btn.active {
    color: var(--text-primary);
    background: #eef2ff;
}

/* ==========================================================================
   SEO DASHBOARD & SIMULATOR STYLES
   ========================================================================== */

/* Layout Columns */
.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 1200px) {
    .seo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.seo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.seo-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Page Selector List */
.page-selector-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.page-selector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: var(--transition);
}

.page-selector-item:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateX(4px);
}

.page-selector-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}

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

.page-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    font-size: 14px;
    color: var(--primary);
}

.page-selector-item.active .page-icon-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.page-meta-info {
    display: flex;
    flex-direction: column;
}

.page-name-text {
    font-weight: 600;
    font-size: 14px;
}

.page-url-text {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Circular Health Score */
.seo-score-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.circular-score {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-score svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.circular-score circle {
    fill: none;
    stroke-width: 6;
}

.circular-score .bg-ring {
    stroke: rgba(15, 23, 42, 0.08);
}

.circular-score .score-ring {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease-out;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
}

.circular-score .score-val {
    position: absolute;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Checklist Audit Items */
.audit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.03);
    border-left: 3px solid;
    transition: var(--transition);
}

.audit-item.passed { border-left-color: var(--success); }
.audit-item.warning { border-left-color: var(--warning); }
.audit-item.error { border-left-color: var(--danger); }

.audit-status-icon {
    font-size: 14px;
    margin-top: 2px;
}

.audit-item.passed .audit-status-icon { color: var(--success); }
.audit-item.warning .audit-status-icon { color: var(--warning); }
.audit-item.error .audit-status-icon { color: var(--danger); }

.audit-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audit-title {
    font-size: 13px;
    font-weight: 600;
}

.audit-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* SERP Google & Yandex Mockups */
.serp-selector-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.04);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.serp-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.serp-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.serp-tab-btn i.google-color { color: #4285F4; }
.serp-tab-btn i.yandex-color { color: #FC3F1D; }

.serp-view-container {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Google SERP Card Styles */
.google-serp-wrapper {
    font-family: Arial, sans-serif;
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
}

.google-serp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.google-favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #5f6368;
}

.google-site-info {
    display: flex;
    flex-direction: column;
}

.google-display-name {
    font-size: 12px;
    color: #202124;
    font-weight: 400;
    line-height: 1.3;
}

.google-display-url {
    font-size: 11px;
    color: #5f6368;
    line-height: 1.3;
}

.google-serp-title {
    color: #1a0dab;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
    cursor: pointer;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-serp-title:hover {
    text-decoration: underline;
}

.google-serp-snippet {
    color: #4d5156;
    font-size: 14px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile device mockup frame */
.google-serp-mobile {
    max-width: 360px;
    margin: 0 auto;
    border: 8px solid #1e1e1e;
    border-radius: 20px;
    background: #1e1e1e;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.google-serp-mobile .google-serp-wrapper {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    color: #3c4043;
}

.google-serp-mobile .google-serp-title {
    font-size: 16px;
    color: #1558d6;
}

.google-serp-mobile .google-serp-snippet {
    font-size: 12px;
    color: #3c4043;
}

/* Yandex SERP Card Styles */
.yandex-serp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: #333333;
    font-size: 13px;
    line-height: 1.46;
}

.yandex-serp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.yandex-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #FFCC00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: black;
}

.yandex-display-url {
    color: #007700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yandex-serp-title {
    color: #0000CC;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 3px;
    cursor: pointer;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yandex-serp-title:hover {
    color: #FF0000;
}

.yandex-serp-snippet {
    color: #333333;
    font-size: 13px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Device preview selectors */
.device-selectors {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.device-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.device-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Site-wide Audit Dashboard */
.audit-overall-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    text-align: center;
    margin-bottom: 30px;
}

.audit-overall-score {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    margin-bottom: 16px;
}

.audit-overall-score .score-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.audit-overall-score .score-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.audit-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.audit-progress-card {
    padding: 20px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.audit-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.audit-progress-bar-bg {
    height: 6px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.audit-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease-out;
}

.audit-run-btn-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

/* Crawl Table */
.audit-table-status {
    width: 20px;
    text-align: center;
}

.badge-seo-score {
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 6px;
}

.score-high { background: rgba(16, 185, 129, 0.12); color: #047857; }
.score-medium { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.score-low { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
