:root {
    /* Deep Space Background - Ultra Professional Dark Theme */
    --bg-900: #0B0E14;
    --bg-800: #0F1218;
    --bg-700: #13161D;
    --surface-900: #171B24;
    --surface-700: #1E2330;
    --surface-500: rgba(255, 255, 255, 0.04);
    
    /* Premium Brand Colors - Electric Blue to Purple Gradient */
    --brand: #3B82F6;
    --brand-strong: #6366F1;
    --brand-light: #60A5FA;
    --brand-vivid: #8B5CF6;
    
    /* Accent Colors - Cyan to Teal Premium */
    --accent: #0EA5E9;
    --accent-glow: #06B6D4;
    --accent-bright: #22D3EE;
    
    /* Semantic Colors - Modern & Clear */
    --danger: #EF4444;
    --danger-light: #F87171;
    --success: #10B981;
    --success-bright: #34D399;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --info: #3B82F6;
    
    /* Typography - High Contrast for Readability */
    --text-strong: #F1F5F9;
    --text-normal: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    /* Borders & Dividers */
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(59, 130, 246, 0.3);
    
    /* Glass Morphism */
    --glass-bg: rgba(23, 27, 36, 0.75);
    --glass-bg-light: rgba(30, 35, 48, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    /* Shadows - Depth & Elevation */
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-hard: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-glow-brand: 0 0 40px rgba(59, 130, 246, 0.4), 0 0 80px rgba(99, 102, 241, 0.2);
    --shadow-glow-accent: 0 0 40px rgba(14, 165, 233, 0.4), 0 0 80px rgba(6, 182, 212, 0.2);
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #22D3EE 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    
    /* Border Radius - Modern & Consistent */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

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

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brand-strong), var(--accent));
}

@keyframes subtle-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(135deg, var(--bg-900) 0%, var(--bg-800) 100%);
    background-attachment: fixed;
    color: var(--text-strong);
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    display: none;
}

.app-shell {
    width: 100%;
    margin: 0;
    padding: 32px 32px 48px 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.app-shell.is-collapsed {
    grid-template-columns: 96px 1fr;
}

.sidebar {
    background: var(--surface-900);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: calc(100vh - 64px);
    min-height: auto;
    position: fixed;
    top: 32px;
    left: 32px;
    width: 300px;
    overflow-y: auto;
    overflow-x: visible;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::before {
    display: none;
}

.sidebar.collapsed {
    width: 96px;
    min-width: 96px;
    padding: 24px 12px;
    align-items: center;
}

.sidebar.collapsed .sidebar-section:nth-child(n+3),
.sidebar.collapsed .sidebar-foot,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-widget {
    display: none;
}

.sidebar.collapsed .sidebar-section {
    width: 100%;
    align-items: center;
    gap: 8px;
}

.sidebar.collapsed .sidebar-section:first-of-type {
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed .sidebar-top {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.sidebar.collapsed .brand {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 12px;
    letter-spacing: 0.15em;
    transform: rotate(180deg);
    color: var(--brand-light);
    font-weight: 800;
}

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

.brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 300ms ease;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.icon-button:hover {
    background: var(--brand);
    border-color: var(--brand-strong);
    transform: scale(1.05);
}

.icon-button span {
    width: 18px;
    height: 2px;
    background: currentColor;
    display: block;
    position: relative;
    transition: all 300ms ease;
}

.icon-button span::before,
.icon-button span::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: all 300ms ease;
}

.icon-button span::before {
    top: -6px;
}

.icon-button span::after {
    bottom: -6px;
}

.sidebar.collapsed .icon-button span {
    transform: rotate(180deg);
}

.sidebar.collapsed .icon-button span::before {
    top: -5px;
    width: 14px;
}

.sidebar.collapsed .icon-button span::after {
    bottom: -5px;
    width: 14px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 300ms ease;
}

.sidebar-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: opacity 200ms ease;
}

.sidebar-link {
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-strong);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    display: none;
}

.sidebar-link:hover::before {
    display: none;
}

.sidebar-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.sidebar-link.is-active,
.sidebar-link:hover {
    background: var(--brand);
    color: #ffffff;
}

.sidebar-link.is-active {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.sidebar.collapsed .sidebar-link.is-active {
    animation: pulse-glow 2s ease-in-out infinite, icon-bounce 3s ease-in-out infinite;
}



.sidebar-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-link-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 200ms ease;
}

.sidebar-link:hover .sidebar-link-icon svg {
    transform: scale(1.1);
}

.sidebar-link.is-active .sidebar-link-icon,
.sidebar-link:hover .sidebar-link-icon {
    background: rgba(5, 6, 15, 0.15);
    color: #05060f;
    border-color: transparent;
}

.sidebar-link-label {
    flex: 1;
    white-space: nowrap;
    transition: opacity 140ms ease, transform 140ms ease;
}

/* Im normalen Zustand unsichtbar und nicht takeover von Platz */
.sidebar.collapsed .sidebar-link-label {
    flex: none !important;
    position: absolute;
    left: calc(100% + 16px);
    top: 50%;
    background: var(--surface-700);
    color: var(--text-strong);
    padding: 10px 18px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border);
    z-index: 1000;
    width: auto;
    transform: translateY(-50%) translateX(-10px);
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

/* Aktiver Indikator am linken Rand im eingeklappten Zustand */
.sidebar.collapsed .sidebar-link.is-active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: var(--brand-light);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.sidebar.collapsed .sidebar-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.sidebar.collapsed .sidebar-link-icon svg {
    width: 24px;
    height: 24px;
}

.sidebar.collapsed .sidebar-link.is-active .sidebar-link-icon,
.sidebar.collapsed .sidebar-link:hover .sidebar-link-icon {
    background: rgba(5, 6, 15, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Hover-State zeigt das Tooltip an */
.sidebar.collapsed .sidebar-link:hover .sidebar-link-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Hover-State zeigt das Tooltip an */
.sidebar.collapsed .sidebar-link:hover .sidebar-link-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Tooltip-Pfeil für bessere visuelle Verbindung */
.sidebar.collapsed .sidebar-link:hover .sidebar-link-label::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--surface-700);
}

.sidebar.collapsed .sidebar-link.is-active:hover .sidebar-link-label {
    background: var(--brand);
    color: white;
    border-color: var(--brand-strong);
}

.sidebar.collapsed .sidebar-link.is-active:hover .sidebar-link-label::before {
    border-right-color: var(--brand);
}

.sidebar-widget {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-widget strong {
    font-size: 28px;
}

.sidebar-foot {
    margin-top: auto;
}

.badge {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-live {
    color: #0f2b2d;
    background: var(--accent);
    border-color: transparent;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    padding-right: 32px;
    padding-bottom: 32px;
}

.page-view {
    display: none;
    flex-direction: column;
    gap: 32px;
}

.page-view.is-active {
    display: flex;
}

.page-shell {
    display: contents;
}

.hero {
    background: var(--surface-900);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    letter-spacing: -0.04em;
    margin-top: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.1;
}

.hero-content p {
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    margin-top: 32px;
}

.hero-insights {
    background: var(--surface-700);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 40px;
    display: grid;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding-bottom: 20px;
}

.hero-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 2px;
}

.hero-stat strong {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-hint {
    color: var(--text-muted);
    font-size: 13px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

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

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

.intel-card {
    background: var(--surface-700);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: all 320ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.intel-card::before {
    display: none;
}

.intel-card:hover::before {
    display: none;
}

.intel-card:hover {
    border-color: var(--brand);
}

.intel-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-strong), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intel-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.pulse-card {
    background: var(--surface-700);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.pulse-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.pulse-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.panel {
    background: var(--surface-900);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hard);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.tab-control {
    background: var(--surface-700);
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 6px;
}

.tab-button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: calc(var(--radius-sm) - 2px);
    cursor: pointer;
    transition: 240ms ease;
}

.tab-button.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #070a1b;
}

.tab-content {
    display: none;
}

.tab-content.is-active {
    display: block;
}

.section-grid {
    display: grid;
    gap: 20px;
}

.surface {
    background: var(--surface-900);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.surface::before {
    display: none;
}

.surface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.surface-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-strong);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.control-group.full {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

input,
select,
textarea {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--text-strong);
    font-size: 15px;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-group.stretch textarea {
    min-height: 200px;
}

.edit-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(90, 123, 255, 0.12);
}

.edit-actions {
    display: flex;
    gap: 10px;
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.helper-text {
    color: var(--text-muted);
}

.section-block {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-block-head h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    display: none;
}

.btn:hover::before {
    display: none;
}

.btn.small {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--text-strong);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--text-normal);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
}

.btn-outline {
    background: transparent;
    color: var(--brand-light);
    border: 2px solid var(--brand);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
    opacity: 0.9;
}

.btn-danger {
    background: var(--gradient-danger);
    color: #fff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.6);
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    opacity: 0.85;
}

.align-end {
    display: flex;
    align-items: flex-end;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
}

.table-container {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: rgba(255, 255, 255, 0.04);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.no-data {
    text-align: center;
    color: var(--text-muted);
}

.metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.metric-success {
    background: rgba(61, 214, 208, 0.2);
    color: var(--accent);
}

.metric-warning {
    background: rgba(255, 196, 0, 0.25);
    color: #ffd265;
}

.metric-error {
    background: rgba(255, 95, 109, 0.25);
    color: var(--danger);
}

.metric-info {
    background: rgba(90, 123, 255, 0.25);
    color: var(--brand-strong);
}

.audit-output {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.audit-result {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 280ms ease;
    position: relative;
}

.audit-result::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.audit-result.success::before {
    background: linear-gradient(180deg, var(--success), var(--accent));
    box-shadow: 0 0 20px var(--success);
}

.audit-result.warning::before {
    background: linear-gradient(180deg, var(--warning), #fbbf24);
    box-shadow: 0 0 20px var(--warning);
}

.audit-result.error::before {
    background: linear-gradient(180deg, var(--danger), #dc2626);
    box-shadow: 0 0 20px var(--danger);
}

.audit-result:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.audit-title {
    font-weight: 600;
}

.audit-message {
    color: var(--text-muted);
    margin-top: 8px;
}

.keyword-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.keyword-tag {
    border-radius: 8px;
    border: 1px solid rgba(90, 123, 255, 0.4);
    padding: 6px 10px;
    font-size: 12px;
    color: var(--brand-strong);
}

.audit-summary {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    background: var(--surface-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.audit-summary::before {
    display: none;
}

.audit-summary-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.audit-summary-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.audit-score {
    text-align: center;
    position: relative;
    z-index: 1;
}

.audit-score-value {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 30px currentColor;
}

.audit-score-value.success {
    background: linear-gradient(135deg, var(--success), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.audit-score-value.warning {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.audit-score-value.error {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.audit-score-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.issue-list {
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.issue-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.serp-preview {
    border: 1px solid rgba(90, 123, 255, 0.35);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(90, 123, 255, 0.08);
}

.serp-url {
    color: #9ad67c;
    font-size: 13px;
    margin-bottom: 6px;
}

.serp-title {
    color: #5a8bff;
    font-size: 18px;
    margin-bottom: 6px;
}

.serp-desc {
    color: var(--text-strong);
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.comparison-item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comparison-item.success {
    border-color: rgba(16, 185, 129, 0.6);
}

.comparison-item.warning {
    border-color: rgba(245, 158, 11, 0.5);
}

.comparison-item.error {
    border-color: rgba(239, 68, 68, 0.6);
}

.comparison-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.comparison-item strong {
    font-size: 24px;
    font-weight: 700;
}

.comparison-target {
    color: var(--text-muted);
    font-size: 13px;
}

.comparison-item small {
    color: var(--text-dim);
    font-size: 12px;
}

.section-depth {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--surface-700);
    padding: 24px;
    margin-top: 8px;
}

.section-depth-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-depth-hint {
    color: var(--text-muted);
    font-size: 13px;
}

.section-depth-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-depth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    font-size: 14px;
}

.section-depth-item.success {
    border-left: 3px solid var(--success);
}

.section-depth-item.warning {
    border-left: 3px solid var(--warning);
}

.section-depth-item.empty {
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.cta-snippets {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-snippets li {
    margin-bottom: 6px;
}

.tone-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
}

.tone-words span {
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--success);
}

.tone-words.tone-negative span {
    border-color: rgba(239, 68, 68, 0.5);
    color: var(--danger);
}

.inline-alert {
    border-radius: var(--radius-sm);
    background: rgba(255, 196, 0, 0.08);
    border: 1px solid rgba(255, 196, 0, 0.3);
    padding: 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

.text-muted {
    color: var(--text-muted);
}

.suggestion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.suggestion-item {
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    background: rgba(6, 182, 212, 0.05);
    transition: all 280ms ease;
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '💡';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    opacity: 0.2;
}

.suggestion-item:hover {
    border-color: var(--accent);
}

.suggestion-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--accent);
}

.suggestion-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.suggestion-example {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.suggestion-example strong {
    color: var(--text-strong);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.suggestion-example code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #a5d6a7;
    margin-top: 8px;
    overflow-x: auto;
}

.table-action {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-strong);
    cursor: pointer;
}

.table-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.backlog-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.backlog-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 280ms ease;
    position: relative;
    overflow: hidden;
}

.backlog-card::before {
    display: none;
}

.backlog-card:hover::before {
    display: none;
}

.backlog-card:hover {
    border-color: var(--brand);
}

.form-section {
    margin-top: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-strong), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.insight-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    padding: 28px;
    transition: all 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card:hover {
    border-color: var(--brand);
}

.insight-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--brand-strong);
}

.insight-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 999px;
    transition: width 300ms ease;
}

/* Metric Badges */
.metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
    color: var(--success-bright);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.metric-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.15));
    color: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.metric-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.15));
    color: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.metric-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.15));
    color: var(--brand-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Keyword Tags */
.keyword-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.keyword-tag {
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 8px 14px;
    font-size: 13px;
    color: var(--brand-strong);
    background: rgba(99, 102, 241, 0.1);
    text-align: center;
    font-weight: 600;
    transition: all 280ms ease;
}

.keyword-tag:hover {
    border-color: var(--brand);
    background: rgba(99, 102, 241, 0.15);
}

/* SERP Preview */
.serp-preview {
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    background: rgba(99, 102, 241, 0.05);
}

.serp-url {
    color: var(--success);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.serp-title {
    color: var(--brand-strong);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.serp-desc {
    color: var(--text-strong);
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.6;
}

/* Issue List */
.issue-list {
    list-style: none;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(244, 63, 94, 0.05);
}

.issue-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(244, 63, 94, 0.1);
    color: var(--text-muted);
    transition: all 200ms ease;
}

.issue-item:hover {
    background: rgba(244, 63, 94, 0.08);
    color: var(--text-strong);
}

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

/* Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: calc(100% - 356px);
    margin-left: 356px;
    padding-right: 0;
    padding-bottom: 32px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
}

.app-shell.is-collapsed .content-area {
    margin-left: 144px;
}

/* App Shell */
.app-shell {
    width: 100%;
    margin: 0;
    padding: 32px 32px 48px 32px;
    display: block;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.app-shell.is-collapsed .sidebar {
    width: 88px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-area {
        margin-left: 320px;
    }
    
    .hero {
        padding: 40px;
        gap: 32px;
    }
}

@media (max-width: 1200px) {
    .app-shell {
        padding: 24px 24px 48px 24px;
    }
    
    .sidebar {
        left: 24px;
        width: 280px;
    }
    
    .content-area {
        margin-left: 316px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 28px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .app-shell {
        padding: 16px;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        margin-bottom: 24px;
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-shell {
        padding: 12px;
    }
    
    .hero {
        padding: 24px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .surface {
        padding: 24px;
    }
}

/* Additional UI Components */
.badge-ready {
    background: linear-gradient(135deg, var(--success), var(--accent));
    color: #0a0b14;
    border: none;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.badge-review {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: #0a0b14;
    border: none;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.badge-risk {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.card-head h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Loading States */
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.1) 40px,
        rgba(255, 255, 255, 0.05) 80px
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Enhanced Shadows */
.elevation-1 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.elevation-2 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.elevation-3 {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Stat Card Enhancements */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 320ms ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    border-color: var(--brand);
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-strong), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.backlog-card h4 {
    margin-bottom: 6px;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-strong);
    margin-bottom: 8px;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-ready {
    background: rgba(61, 214, 208, 0.18);
    color: var(--accent);
    border-color: rgba(61, 214, 208, 0.3);
}

.badge-review {
    background: rgba(255, 196, 0, 0.18);
    color: #ffc400;
    border-color: rgba(255, 196, 0, 0.35);
}

.badge-risk {
    background: rgba(255, 95, 109, 0.18);
    color: var(--danger);
    border-color: rgba(255, 95, 109, 0.4);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 8px;
}

.status-chip.success {
    background: rgba(61, 214, 208, 0.18);
    color: var(--accent);
}

.status-chip.warning {
    background: rgba(255, 196, 0, 0.18);
    color: #ffd265;
}

.status-chip.error {
    background: rgba(255, 95, 109, 0.18);
    color: var(--danger);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.insight-card h4 {
    margin-bottom: 8px;
}

@media (max-width: 960px) {
    body {
        padding: 18px;
    }

    .app-shell {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .sidebar {
        position: static;
        height: auto;
        min-height: auto;
        overflow: visible;
        top: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px;
    }

    .content-area {
        order: 2;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-control {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 34px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}
