@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--salt-black);
    line-height: 1.7;
    min-height: 100vh;
}

/* ===== NAVIGATION (matching saltsec.at) ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    transition: box-shadow var(--transition-base);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(10, 10, 10, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: var(--salt-black);
}



.nav-title {
    font-size: var(--text-sm);
    color: var(--steel-gray);
    font-weight: 500;
    padding-left: var(--space-lg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.02em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.875rem;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--steel-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn:hover {
    color: var(--salt-black);
    border-color: rgba(34, 38, 43, 0.3);
}

.nav-btn.active {
    color: var(--cyber-blue);
    border-color: var(--cyber-blue);
    background: rgba(0, 102, 232, 0.06);
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel-gray);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--salt-black);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Tools Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel-gray);
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-blue);
    transition: width 0.3s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--salt-black);
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.1);
    list-style: none;
    z-index: 1001;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: dropdownReveal 0.2s ease forwards;
}

@keyframes dropdownReveal {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--steel-gray);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--salt-black);
    background: var(--bg-section);
}

.nav-dropdown-menu a::after {
    display: none;
}

/* Nav hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--salt-black);
    position: absolute;
    left: 6px;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
}

/* Footer columns & impressum */
.footer-columns {
    display: flex;
    gap: 3rem;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--steel-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-legal {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1.5rem;
}

.footer-legal-toggle {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    color: var(--steel-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.footer-legal-toggle:hover {
    color: #FFFFFF;
}

.footer-legal-toggle .chevron {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.footer-legal-toggle.open .chevron {
    transform: rotate(180deg);
}

.footer-impressum {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.footer-impressum.open {
    max-height: 500px;
}

.impressum-content {
    padding-top: 1rem;
}

.impressum-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1.5rem;
    font-size: 0.8125rem;
}

.impressum-grid dt {
    color: var(--steel-gray);
    font-weight: 500;
}

.impressum-grid dd {
    color: rgba(255, 255, 255, 0.7);
}

.impressum-grid a {
    color: var(--cyber-blue);
    text-decoration: none;
}

.impressum-grid a:hover {
    text-decoration: underline;
}

.impressum-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--steel-gray);
    line-height: 1.6;
}

.impressum-note a {
    color: var(--cyber-blue);
    text-decoration: none;
}

/* ===== HERO SECTION (Dark, like saltsec.at hero) ===== */
.hero {
    position: relative;
    background: var(--salt-black);
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    overflow: hidden;
    color: #FFFFFF;
}

[data-theme="dark"] .hero {
    background: #050505;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 60px grid overlay like saltsec.at */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Radial gradient accents */
.hero-gradient {
    position: absolute;
    border-radius: 50%;
}

.hero-gradient-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 102, 232, 0.08) 0%, transparent 70%);
}

.hero-gradient-2 {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(27, 183, 216, 0.06) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Privacy Tag (monospace badge like saltsec.at reg-card-tag) */
.privacy-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--signal-cyan);
    background: rgba(0, 102, 232, 0.06);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

.privacy-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    color: var(--steel-gray);
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

/* Input Tabs (underline style like saltsec.at nav-links) */
.input-tabs {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

.input-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--steel-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    position: relative;
}

.input-tab:hover {
    color: #FFFFFF;
}

.input-tab.active {
    color: #FFFFFF;
    border-bottom-color: var(--cyber-blue);
}

.input-panel {
    display: none;
}

.input-panel.active {
    display: block;
}

/* Input Message */
.input-message {
    margin-top: var(--space-md);
    padding: 0.875rem 1rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Textarea (dark variant) */
.header-textarea {
    width: 100%;
    min-height: 240px;
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.04);
    color: #E8E8E8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    resize: vertical;
    transition: all var(--transition-fast);
    outline: none;
}

.header-textarea:focus {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 232, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.header-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Dropzone (dark variant) */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--cyber-blue);
    background: rgba(0, 102, 232, 0.05);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--steel-gray);
}

.dropzone-text {
    font-size: var(--text-base);
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: var(--space-xs);
}

.dropzone-hint {
    font-size: var(--text-sm);
    color: var(--steel-gray);
}

.dropzone-hint strong {
    color: var(--signal-cyan);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.dropzone-hint strong:hover {
    color: #FFFFFF;
}

.file-input {
    display: none;
}

/* Analyze Bar */
.analyze-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-lg);
    gap: var(--space-md);
}

.btn-analyze {
    background: var(--cyber-blue);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-analyze:hover {
    background: #0055C4;
    box-shadow: 0 8px 30px rgba(0, 102, 232, 0.3);
    transform: translateY(-1px);
}

.btn-analyze:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn-analyze:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-clear {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--steel-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-clear:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--steel-gray);
}

.file-info .filename {
    font-family: var(--font-mono);
    font-weight: 500;
    color: #FFFFFF;
}

/* ===== MAIN / RESULTS (Light section) ===== */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

[data-theme="dark"] .main {
    background: transparent;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    display: none;
}

.results-section.visible {
    display: block;
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Result Tabs (pill style) */
.result-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-section);
    border-radius: var(--radius-xl);
    padding: 4px;
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .result-tabs {
    background: var(--graphite);
}

.result-tab {
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.6rem 1rem;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--steel-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.result-tab:hover {
    color: var(--salt-black);
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .result-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #F4F6F8;
}

.result-tab.active {
    background: var(--white);
    color: var(--salt-black);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .result-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #F4F6F8;
}

.result-tab .tab-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

/* ===== CARDS (saltsec.at service-card style) ===== */
.card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--signal-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .card {
    background: var(--bg-section);
    border-color: rgba(255, 255, 255, 0.06);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06);
    transform: translateY(-2px);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(27, 183, 216, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--steel-gray);
    margin-top: var(--space-xs);
}

/* ===== BADGES (like saltsec.at reg-card-tag) ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-pass { background: rgba(34, 197, 94, 0.1); color: var(--status-pass); }
.badge-warn { background: rgba(245, 158, 11, 0.1); color: var(--status-warn); }
.badge-fail { background: rgba(239, 68, 68, 0.1); color: var(--status-fail); }
.badge-neutral { background: rgba(139, 139, 139, 0.1); color: var(--status-neutral); }
.badge-info { background: rgba(0, 102, 232, 0.06); color: var(--cyber-blue); }

/* ===== OVERVIEW GRID ===== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.overview-card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-theme="dark"] .overview-card {
    background: var(--bg-section);
    border-color: rgba(255, 255, 255, 0.06);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--signal-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overview-card:hover {
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06);
    transform: translateY(-2px);
}

[data-theme="dark"] .overview-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(27, 183, 216, 0.2);
}

.overview-card:hover::before {
    opacity: 1;
}

/* Icon box: 48px, radius 10px, subtle background (matches saltsec.at) */
.overview-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--cyber-blue);
}

[data-theme="dark"] .overview-card-icon {
    background: rgba(27, 183, 216, 0.08);
    border: 1px solid rgba(27, 183, 216, 0.12);
}

.overview-card-icon svg {
    width: 22px;
    height: 22px;
}

.overview-card-title {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
}

.overview-card-value {
    font-size: var(--text-xs);
    color: var(--steel-gray);
    line-height: 1.5;
}

/* ===== RISK SCORE ===== */
.risk-score-card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

[data-theme="dark"] .risk-score-card {
    background: var(--bg-section);
    border-color: rgba(255, 255, 255, 0.06);
}

.risk-gauge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    border: 4px solid;
}

.risk-gauge.low { border-color: var(--risk-low); color: var(--risk-low); }
.risk-gauge.medium { border-color: var(--risk-medium); color: var(--risk-medium); }
.risk-gauge.high { border-color: var(--risk-high); color: var(--risk-high); }
.risk-gauge.critical { border-color: var(--risk-critical); color: var(--risk-critical); }

.risk-details h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.risk-details p {
    font-size: var(--text-sm);
    color: var(--steel-gray);
}

/* ===== TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.data-table th {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--steel-gray);
    border-bottom: 2px solid var(--border-subtle);
    font-family: var(--font-mono);
}

.data-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .mono {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

/* ===== FINDINGS LIST (like saltsec.at regulatory cards with left accent) ===== */
.finding-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    background: var(--bg-section);
    transition: all 0.3s ease;
}

[data-theme="dark"] .finding-item {
    background: rgba(255, 255, 255, 0.03);
}

.finding-item:hover {
    box-shadow: 0 8px 30px rgba(10, 10, 10, 0.05);
}

.finding-severity {
    width: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

.finding-severity.pass { background: var(--status-pass); }
.finding-severity.warn { background: var(--status-warn); }
.finding-severity.fail { background: var(--status-fail); }
.finding-severity.info { background: var(--cyber-blue); }

.finding-content h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.finding-content p {
    font-size: var(--text-xs);
    color: var(--steel-gray);
    line-height: 1.5;
}

/* ===== IOC TABLE ===== */
.ioc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

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

.ioc-value { word-break: break-all; flex: 1; }

.ioc-actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.ioc-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--steel-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ioc-btn:hover {
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
}

/* ===== RAW HEADER ===== */
.raw-header {
    background: #0A0A0A;
    color: #E8E8E8;
    border-radius: 12px;
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 2;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    position: relative;
}

/* Grid texture on raw header (like saltsec.at dark sections) */
.raw-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    border-radius: 12px;
}

.raw-header .header-key {
    color: var(--signal-cyan);
    font-weight: 500;
}

.raw-header .header-value {
    color: #C8C8C8;
}

/* ===== MAIL CLIENT ===== */
.client-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
}

.client-icon {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .client-icon {
    background: rgba(27, 183, 216, 0.08);
    border: 1px solid rgba(27, 183, 216, 0.12);
}

.client-icon img,
.client-icon svg {
    width: 40px;
    height: 40px;
}

.client-info h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.client-info .client-category {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--signal-cyan);
    background: rgba(27, 183, 216, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    letter-spacing: 0.05em;
}

/* ===== SENDER MATRIX ===== */
.sender-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

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

.sender-label {
    width: 120px;
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--steel-gray);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sender-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    word-break: break-all;
}

.sender-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sender-status.match { background: var(--status-pass); }
.sender-status.mismatch { background: var(--status-warn); }
.sender-status.suspicious { background: var(--status-fail); }

/* ===== EXPORT BAR ===== */
.export-bar {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.btn-export {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--steel-gray);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-export:hover {
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
}

/* ===== FOOTER (matches saltsec.at footer exactly) ===== */
.footer {
    background: var(--graphite);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-area {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo-img {
    width: 36px;
    height: 36px;
}

.footer-tagline {
    font-size: var(--text-xs);
    color: var(--steel-gray);
    letter-spacing: 0.02em;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.footer-copy {
    font-size: var(--text-xs);
    color: var(--steel-gray);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--steel-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== LOADING ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===== UTILITY ===== */
.text-mono { font-family: var(--font-mono); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--steel-gray); }
.text-pass { color: var(--status-pass); }
.text-warn { color: var(--status-warn); }
.text-fail { color: var(--status-fail); }
.text-cyan { color: var(--signal-cyan); }
.text-blue { color: var(--cyber-blue); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.hidden { display: none !important; }
