/**
 * e-Gov電子送達 ビューアー - 統合スタイルシート
 *
 * 構成:
 * 0. Web Fonts (@font-face)
 * 1. Design Tokens (CSS変数)
 * 2. Base Reset
 * 3. Typography
 * 4. Layout (Header, Main, Footer)
 * 5. Top Page (Hero, Drop Zone)
 * 6. Results Section
 * 7. Cards
 * 8. Detail Panel / Integrated View
 * 9. Buttons
 * 10. Modal
 * 11. XSLT / Preview
 * 12. Attachments
 * 13. Utilities
 * 14. Responsive
 */

/* ===========================================
   0. Web Fonts - Noto Sans JP (Self-hosted)
   =========================================== */
@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-sans-jp/NotoSansJP-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/noto-sans-jp/NotoSansJP-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/noto-sans-jp/NotoSansJP-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/noto-sans-jp/NotoSansJP-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/noto-sans-jp/NotoSansJP-ExtraBold.woff2') format('woff2');
}

/* ===========================================
   1. Design Tokens
   =========================================== */
:root {
    /* Font Family - Noto Sans JP with system font fallback */
    --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Meiryo', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    --font-serif: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;

    /* Typography Scale */
    --text-xs: 0.6875rem;    /* 11px */
    --text-sm: 0.8125rem;    /* 13px */
    --text-base: 0.875rem;   /* 14px */
    --text-md: 0.9375rem;    /* 15px */
    --text-lg: 1.0625rem;    /* 17px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.625rem;    /* 26px */
    --text-3xl: 2rem;        /* 32px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.4;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
    --leading-loose: 2;

    /* Colors - Primary (Blue) */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* Colors - Neutral (Gray) */
    --neutral-25: #fcfcfd;
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;

    /* Colors - Success (Green) */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;

    /* Colors - Amber (Warning) */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;

    /* Spacing - 4px base */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-7: 1.75rem;   /* 28px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 120ms;
    --duration-base: 200ms;
    --duration-slow: 300ms;
}

/* ===========================================
   2. Base Reset
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--neutral-800);
    background: var(--neutral-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================================
   3. Typography
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--neutral-900);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* ===========================================
   4. Layout - Header
   =========================================== */
.header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 var(--space-6);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.header-logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.header-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--neutral-900);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}

.header-subtitle {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--neutral-500);
    line-height: 1;
    letter-spacing: 0.02em;
}

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

.header-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.header-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.header-link:hover {
    background: var(--neutral-100);
    color: var(--neutral-800);
    text-decoration: none;
}

/* ===========================================
   4. Layout - Main Content
   =========================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===========================================
   4. Layout - Footer
   =========================================== */
.footer {
    background: white;
    border-top: 1px solid var(--neutral-200);
    padding: var(--space-4) var(--space-6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--neutral-500);
    line-height: var(--leading-normal);
}

.footer-info .unofficial-badge {
    padding: var(--space-1) var(--space-2);
    background: var(--amber-100);
    color: var(--amber-700);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: var(--space-5);
}

.footer-links a {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--primary-600);
}

/* ===========================================
   5. Top Page
   =========================================== */
.top-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: linear-gradient(165deg,
        var(--neutral-25) 0%,
        #f0f4f8 40%,
        #e8eef5 100%
    );
    position: relative;
}

.top-page::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    top: -300px;
    right: -300px;
    pointer-events: none;
}

.top-page::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.03) 0%, transparent 60%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
}

.top-container {
    max-width: 720px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--success-50) 0%, rgba(34, 197, 94, 0.06) 100%);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--success-700);
    margin-bottom: var(--space-6);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

.security-badge .offline-icon {
    width: 18px;
    height: 18px;
    padding: 3px;
    background: var(--success-500);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

/* Hero Section */
.hero-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--neutral-900);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-5);
    letter-spacing: -0.025em;
}

.hero-title .highlight {
    color: var(--primary-600);
}

.hero-description {
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--neutral-600);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-7);
}

.hero-description strong {
    color: var(--neutral-800);
    font-weight: 600;
}

/* Supported Agencies */
.supported-agencies {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
    flex-wrap: wrap;
}

.agency-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--neutral-700);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.agency-badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* Drop Zone Container */
.drop-zone-container {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); */
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
}

/* Preview Section */
.preview-section {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-50) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    border: 1px solid var(--neutral-200);
}

.preview-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.preview-cards {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
}

.preview-xml {
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    width: 200px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--neutral-600);
    text-align: left;
    line-height: var(--leading-relaxed);
    border: 1px solid var(--neutral-200);
    flex-shrink: 0;
}

.preview-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-2);
    flex-shrink: 0;
}

.preview-arrow svg {
    width: 28px;
    height: 28px;
    color: var(--primary-400);
}

.preview-arrow span {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--neutral-500);
    margin-top: var(--space-1);
}

.preview-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    width: 200px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
    text-align: left;
    flex-shrink: 0;
}

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

.preview-card-source {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary-600);
}

.preview-card-date {
    font-size: 10px;
    font-weight: 500;
    color: var(--neutral-400);
}

.preview-card-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
}

.preview-card-body {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--neutral-500);
    line-height: var(--leading-relaxed);
}

/* Preview CTA */
.preview-cta {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px dashed var(--neutral-300);
    text-align: center;
}

.preview-cta-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
    margin-bottom: var(--space-3);
}

.btn-sample-preview {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-700);
    background: white;
    border: 1px solid var(--primary-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.btn-sample-preview:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.btn-sample-preview svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-500);
}

/* Drop Zone */
.drop-zone {
    display: block;
    width: 100%;
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
    background: transparent;
}

.drop-zone:hover {
    border-color: var(--primary-300);
    background: rgba(59, 130, 246, 0.02);
}

.drop-zone.drag-over {
    border-color: var(--primary-500);
    background: var(--primary-50);
    transform: scale(1.005);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary-100) 0%, white 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.upload-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-500);
}

.drop-title {
    display: block;
    width: 100%;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
    letter-spacing: -0.01em;
}

.drop-subtitle {
    display: block;
    width: 100%;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--neutral-500);
    margin-bottom: var(--space-5);
}

/* Drop Features */
.drop-features {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.drop-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
    white-space: nowrap;
}

.drop-feature svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.drop-feature.zip svg { color: var(--amber-500); }
.drop-feature.multi svg { color: var(--primary-500); }
.drop-feature.secure svg { color: var(--success-500); }

/* File Label */
.file-label {
    display: inline-block;
    cursor: pointer;
}

/* Primary Select Button */
.btn-select-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-family);
    font-size: var(--text-md);
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.01em;
}

.btn-select-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

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

/* Warning Box */
.drop-warning {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding: var(--space-3) var(--space-4);
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--amber-700);
    box-sizing: border-box;
}

.drop-warning svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--amber-500);
}

/* ===========================================
   6. Results Section
   =========================================== */
.results-section {
    display: flex;
    flex-direction: column;
    background: white;
    border-top: 1px solid var(--neutral-200);
}

.results-header {
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-4) var(--space-6);
}

.results-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.results-header-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--neutral-700);
}

.results-header-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
}

/* New file button in results header */
.btn-new-file-results {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-600);
    background: white;
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.btn-new-file-results svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-new-file-results:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

/* Show button only when content is loaded */
.app-state-content .btn-new-file-results {
    display: flex;
}

.results-container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: var(--space-4);
}

/* Empty State */
.results-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
    min-height: 300px;
}

.results-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    color: var(--neutral-300);
}

.results-empty-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--neutral-500);
    margin-bottom: var(--space-2);
}

.results-empty-description {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    line-height: var(--leading-relaxed);
}

/* Content State */
.results-content {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-4);
}

.app-state-content .results-empty {
    display: none;
}

.app-state-content .results-content {
    display: flex;
    align-items: stretch;
}

/* List Panel */
.list-panel {
    width: 100%;
    min-width: auto;
    display: flex;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--neutral-200);
}

.card-list {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-3);
    /* scroll-snap-type: x mandatory; */
}

.card-list::after {
    content: '';
    flex: 0 0 var(--space-3);
}

.card-list::-webkit-scrollbar {
    height: 10px;
}

.card-list::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
}

/* Detail Panel */
.detail-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--neutral-50);
    overflow: hidden;
    overflow-x: auto;
}

.detail-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    font-size: var(--text-base);
    padding: var(--space-12);
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--neutral-500);
}

.loading-indicator p {
    font-size: var(--text-sm);
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    color: var(--primary-500);
}

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

/* Loading state */
.app-state-loading .results-content {
    display: none;
}

.app-state-loading .results-empty {
    display: flex;
}

/* Hidden elements for app.js compatibility */
#loading, #error-container {
    display: none;
}

/* ===========================================
   7. Cards
   =========================================== */
.card-list,
.card,
.detail-panel,
.detail-content,
.integrated-view,
.section-card,
.results-content,
.results-section {
    font-family: var(--font-family);
}

.card {
    flex: 0 0 140px;
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: start;
    padding: 16px;
    background: var(--neutral-100);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.card:hover {
    background: var(--neutral-200);
}

.card.active {
    background: var(--primary-50);
    border-color: var(--primary-500);
}

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

.card-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: white;
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

.card-source {
    font-size: var(--text-xs);
    color: var(--primary-600);
    font-weight: 600;
}

.card-date {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

.card-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    color: var(--neutral-800);
}

.card-preview {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.card-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: white;
    border-radius: var(--radius-sm);
    color: var(--neutral-600);
}

.card-badge.signature {
    background: var(--success-100);
    color: var(--success-700);
}

/* ===========================================
   8. Detail Panel / Integrated View
   =========================================== */
.detail-content {
    padding: var(--space-6);
}

.integrated-view {
    padding: 24px;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-header h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-meta-item strong {
    color: var(--neutral-700);
}

/* Signature Badge */
.signature-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--success-100);
    color: var(--success-700);
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.signature-badge-inline.unsigned {
    background: var(--amber-100);
    color: var(--amber-700);
}

/* Section Card */
.section-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.section-header h3 {
    font-size: var(--text-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-800);
}

.section-header .section-icon {
    font-size: 18px;
}

.section-body {
    padding: 20px;
}

/* Cover Letter Summary */
.cover-letter-summary {
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    padding: 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 16px;
    overflow-x: auto;
    word-break: break-word;
}

.cover-letter-summary p {
    margin: 0;
    line-height: 1.8;
    color: var(--neutral-700);
}

/* ===========================================
   9. Buttons
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-500);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-600);
}

.btn-secondary {
    background: white;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-200);
}

.btn-secondary:hover {
    background: var(--neutral-50);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--text-xs);
}

/* Mini Toolbar */
.mini-toolbar {
    display: flex;
    gap: 6px;
}

.btn-toggle-scale {
    min-width: 90px;
    text-align: center;
}

/* ===========================================
   10. Modal
   =========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); */
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-6);
}

.modal-content {
    background: white;
    border-radius: var(--radius-sm);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--neutral-100);
}

.modal-header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.01em;
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.01em;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--neutral-500);
    font-size: 24px;
    transition: all var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-800);
}

.modal-body {
    padding: var(--space-6);
}

/* Modal Preview (Dynamic) */
.modal-preview {
    z-index: 250;
}

.modal-preview .modal-content {
    max-width: 900px;
}

.modal-fullscreen .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
    height: 95vh;
}

/* Help Modal */
.help-section {
    margin-bottom: var(--space-6);
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.help-section h4 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    flex-shrink: 0;
}

.help-section p {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    padding-left: 28px;
}

.help-section p strong {
    color: var(--neutral-800);
    font-weight: 600;
}

.security-note {
    background: var(--success-50);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.security-note h4 {
    color: var(--success-700);
}

.security-note h4 svg {
    color: var(--success-600);
}

.security-note p {
    color: var(--success-700);
}

/* ===========================================
   11. XSLT / Preview
   =========================================== */
.xslt-rendered {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: auto;
    max-height: 80vh;
}

.xslt-fit-scale {
    padding: 10px;
    overflow: auto;
    max-height: 80vh;
}

.xslt-fit-scale .xslt-scale-wrapper {
    transform-origin: top left;
}

.xslt-full-scale {
    padding: 20px;
    max-height: 80vh;
    overflow: auto;
}

.xslt-full-scale .xslt-scale-wrapper {
    transform: none;
    width: auto;
}

.xslt-rendered table {
    border-collapse: collapse;
}

.xslt-rendered pre,
.xslt-rendered pre.normal,
.xslt-rendered pre.big,
.xslt-rendered pre.oshirase {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    margin: 0;
    font-family: var(--font-serif);
}

/* XSLT Toolbar */
.xslt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    gap: 16px;
}

.xslt-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xslt-scale-toggle {
    display: flex;
    gap: 4px;
}

.scale-btn {
    padding: 6px 12px;
    min-width: 90px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-align: center;
}

.scale-btn:hover {
    background: var(--neutral-50);
}

.scale-btn.active {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

/* Raw Content */
.raw-content {
    background: #1f2937;
    color: #e5e7eb;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Detail Tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
}

.detail-tab {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.detail-tab:hover {
    background: var(--neutral-50);
}

.detail-tab.active {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

/* CSV Preview */
.csv-preview {
    overflow-x: auto;
}

.csv-preview table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.csv-preview th,
.csv-preview td {
    padding: 8px 12px;
    border: 1px solid var(--neutral-200);
    text-align: left;
}

.csv-preview th {
    background: var(--neutral-50);
    font-weight: 600;
    color: var(--neutral-700);
}

.csv-preview td {
    color: var(--neutral-800);
}

.csv-preview tr:hover td {
    background: var(--neutral-50);
}

/* ===========================================
   12. Attachments
   =========================================== */
.attachment-preview-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.attachment-preview-card:last-child {
    margin-bottom: 0;
}

.attachment-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.attachment-preview-header h4 {
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-700);
}

.attachment-preview-body {
    padding: 16px;
    background: white;
    overflow-x: auto;
}

/* Attachment List */
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.attachment-item:hover {
    background: var(--neutral-100);
}

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

.attachment-icon {
    font-size: 24px;
}

.attachment-name {
    font-weight: 500;
    color: var(--neutral-800);
    word-break: break-word;
}

.attachment-type {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

.attachment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* DTA Notice */
.dta-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
    border-radius: var(--radius-md);
}

.dta-notice-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dta-notice-content {
    flex: 1;
}

.dta-notice-content strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--amber-700);
    margin-bottom: 4px;
}

.dta-notice-content p {
    font-size: var(--text-sm);
    color: var(--amber-700);
    margin: 4px 0;
}

.dta-notice-content a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: var(--primary-600);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
}

.dta-notice-content a:hover {
    text-decoration: underline;
}

.external-link-icon {
    font-size: var(--text-sm);
}

/* ===========================================
   13. Utilities
   =========================================== */
.hidden {
    display: none !important;
}

/* Drawer (for layout modes) */
.drawer {
    position: fixed;
    right: -500px;
    top: 0;
    bottom: 0;
    width: 500px;
    max-width: 100vw;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 150;
    transition: right var(--duration-slow) var(--ease-out);
    overflow-y: auto;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-4);
    border-bottom: 1px solid var(--neutral-200);
}

.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--neutral-500);
    font-size: 24px;
    transition: all var(--duration-fast) var(--ease-out);
}

.drawer-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-800);
}

.drawer-content {
    padding: var(--space-6);
}

/* Detail view mode (mobile) */
.main-content.detail-view .list-panel {
    display: none;
}

/* ===========================================
   14. Responsive
   =========================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-xl);
    }

    .preview-cards {
        flex-direction: column;
        gap: var(--space-3);
    }

    .preview-xml,
    .preview-card {
        width: 100%;
        max-width: 240px;
    }

    .preview-arrow {
        transform: rotate(90deg);
        padding: var(--space-2) 0;
    }

    .drop-features {
        flex-direction: column;
        gap: var(--space-3);
    }

    .supported-agencies {
        gap: var(--space-2);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: var(--space-2);
    }

    .results-content {
        flex-direction: column;
    }

    .list-panel {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid var(--neutral-200);
    }

    .modal-content {
        max-width: 95vw;
        margin: var(--space-4);
    }

    .xslt-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .xslt-toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ===========================================
   15. Header Badges (Trust Indicators)
   =========================================== */
.header-subtitle-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.header-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.header-badge-local {
    background: linear-gradient(135deg, var(--success-50) 0%, rgba(34, 197, 94, 0.08) 100%);
    color: var(--success-700);
    border: 1px solid var(--success-200);
}

.header-badge-local svg {
    color: var(--success-600);
}

.header-badge-dev {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.header-badge-dev svg {
    color: var(--primary-500);
}

/* ===========================================
   16. Trust Message Section (Above Drop Zone)
   =========================================== */
.trust-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--success-50) 0%, rgba(34, 197, 94, 0.04) 100%);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-lg);
}

.trust-message-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.trust-message-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.trust-message-content {
    flex: 1;
}

.trust-message-text {
    font-size: var(--text-sm);
    color: var(--neutral-700);
    line-height: var(--leading-normal);
    margin: 0;
}

.trust-message-text strong {
    color: var(--success-700);
    font-weight: 700;
}

.trust-message-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.trust-message-link:hover {
    color: var(--primary-700);
    text-decoration: none;
    gap: 6px;
}

.trust-message-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.trust-message-link:hover svg {
    transform: translateX(2px);
}

/* ===========================================
   17. Enhanced Drop Features (Primary Badge)
   =========================================== */
.drop-feature-primary {
    background: linear-gradient(135deg, var(--success-50) 0%, rgba(34, 197, 94, 0.15) 100%) !important;
    border: 1px solid var(--success-300) !important;
    color: var(--success-700) !important;
    font-weight: 700 !important;
}

.drop-feature-primary svg {
    color: var(--success-600) !important;
}

/* ===========================================
   18. About Modal - Trust Pillars
   =========================================== */
.modal-large .modal-content {
    max-width: 700px;
}

.about-trust-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.trust-pillar {
    text-align: center;
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.trust-pillar-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.trust-pillar-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.trust-pillar-icon-local {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.trust-pillar-icon-dev {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.trust-pillar-icon-transparent {
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.trust-pillar-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: var(--space-2);
}

.trust-pillar-desc {
    font-size: var(--text-xs);
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.trust-pillar-desc strong {
    color: var(--neutral-800);
}

.about-divider {
    border: none;
    border-top: 1px solid var(--neutral-200);
    margin: var(--space-5) 0;
}

/* ===========================================
   19. Tech Detail Box
   =========================================== */
.tech-detail-box {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-3);
}

.tech-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-detail-list li {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px dashed var(--neutral-200);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.tech-detail-list li:last-child {
    border-bottom: none;
}

.tech-detail-list li strong {
    flex-shrink: 0;
    min-width: 100px;
    color: var(--neutral-700);
    font-weight: 600;
}

.tech-detail-list li span {
    color: var(--neutral-600);
}

.tech-detail-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--primary-700);
    font-weight: 500;
}

.tech-detail-note svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary-500);
}

/* ===========================================
   20. About Company Section
   =========================================== */
.about-company {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

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

.about-company-header h4 {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0;
}

.about-company-date {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

.about-company p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-3);
}

.about-company-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.about-company-link:hover {
    color: var(--primary-700);
    text-decoration: none;
}

.about-company-link svg {
    width: 14px;
    height: 14px;
}

/* ===========================================
   21. Responsive - New Components
   =========================================== */
@media (max-width: 768px) {
    .header-subtitle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .header-badge {
        display: none; /* Hide badges on mobile header for cleaner look */
    }

    .trust-message {
        flex-direction: column;
        text-align: center;
    }

    .trust-message-icon {
        margin: 0 auto;
    }

    .about-trust-pillars {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .tech-detail-list li {
        flex-direction: column;
        gap: var(--space-1);
    }

    .tech-detail-list li strong {
        min-width: auto;
    }

    .about-company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
}
