.extra-page-header {
    color: white !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/static/images/matrix_header_1920.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

:root {
    --color-primary: #0066cc;
    --color-primary-focus: #0071e3;
    --color-primary-on-dark: #2997ff;
    --color-ink: #1d1d1f;
    --color-body: #1d1d1f;
    --color-body-on-dark: #ffffff;
    --color-body-muted: #cccccc;
    --color-ink-muted-80: #333333;
    --color-ink-muted-48: #7a7a7a;
    --color-divider-soft: #f0f0f0;
    --color-hairline: #e0e0e0;
    --color-canvas: #ffffff;
    --color-canvas-parchment: #f5f5f7;
    --color-surface-pearl: #fafafc;
    --color-surface-tile-1: #272729;
    --color-surface-tile-2: #2a2a2c;
    --color-surface-tile-3: #252527;
    --color-surface-black: #000000;
    --color-surface-chip-translucent: #d2d2d7;
    --color-on-primary: #ffffff;
    --color-on-dark: #ffffff;

    --rounded-none: 0px;
    --rounded-xs: 5px;
    --rounded-sm: 8px;
    --rounded-md: 11px;
    --rounded-lg: 18px;
    --rounded-pill: 9999px;

    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 17px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: "SF Pro Text", "Inter", system-ui, -apple-system, sans-serif;
    background-color: var(--color-canvas);
    color: var(--color-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "SF Pro Display", "Inter", system-ui, -apple-system, sans-serif;
    margin: 0;
}

a, a:visited {
    /* text-decoration: none; */
    color: inherit;
}

/* Page Header */
.page-header {
    background-color: var(--color-canvas-parchment);
    color: #ffffff; /* var(--color-ink); */
    text-align: center;
    padding: 64px 20px;
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.trades-page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/trades_header_1920.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.politicians-page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/politicians_header_1920.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.assets-page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/assets_header_1920.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.reports-page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/reports_header_1920.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Global Nav */
.global-nav {
    background-color: var(--color-surface-black);
    color: var(--color-on-dark);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 20px;
}

.global-nav a {
    color: var(--color-on-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.global-nav a:hover {
    opacity: 1;
}

/* Sub Nav */
.sub-nav {
    background-color: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 44px;
    z-index: 99;
    border-bottom: 1px solid var(--color-hairline);
}

.sub-nav-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: 0.231px;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Product Tiles */
.tile {
    width: 100%;
    padding: var(--spacing-section) 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.tile-light {
    background-color: var(--color-canvas);
    color: var(--color-ink);
}

.tile-parchment {
    background-color: var(--color-canvas-parchment);
    color: var(--color-ink);
}

.tile-dark {
    background-color: var(--color-surface-tile-1);
    color: var(--color-on-dark);
}

.tile-content {
    max-width: 980px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-display {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
    margin-bottom: 10px;
}

.display-lg {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 10px;
}

.lead {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: 0.196px;
    margin-bottom: 24px;
    max-width: 600px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-family: "SF Pro Text", sans-serif;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: var(--rounded-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
    display: inline-block;
}

.button-primary:active {
    transform: scale(0.95);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-family: "SF Pro Text", sans-serif;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: var(--rounded-pill);
    transition: transform 0.1s;
    display: inline-block;
}

.button-secondary:active {
    transform: scale(0.95);
}

/* Product Render */
.product-render {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.05) 100%);
    border-radius: var(--rounded-lg);
    margin-top: 40px;
    box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: var(--color-ink-muted-48);
    font-size: 24px;
}

.tile-dark .product-render {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    color: var(--color-body-muted);
}

/* Tables */
.table-container, .trades-table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table, .trades-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: "SF Pro Text", sans-serif;
}

.data-table th, .trades-table th {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink-muted-48);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-hairline);
    letter-spacing: -0.224px;
}

.data-table td, .trades-table td {
    font-size: 17px;
    font-weight: 400;
    color: var(--color-body);
    padding: 16px;
    border-bottom: 1px solid var(--color-divider-soft);
    line-height: 1.47;
}

.data-table tr:hover td, .trades-table tr:hover td {
    background-color: var(--color-surface-pearl);
}

/* Specific Table elements */
.amount-cell {
    font-family: "SF Pro Display", sans-serif;
    font-weight: 600;
}

.tag {
    padding: 4px 8px;
    border-radius: var(--rounded-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-buy { background-color: #e6f4ea; color: #1e7e34; }
.tag-sell { background-color: #fce8e6; color: #c5221f; }

/* Search / Filter */
.filter-section {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.search-input {
    background-color: var(--color-canvas);
    color: var(--color-ink);
    font-family: "SF Pro Text", sans-serif;
    font-size: 15px;
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-pill);
    padding: 8px 16px;
    height: 38px;
    flex: 1 1 auto;
    min-width: 150px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.filter-button-group {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    align-items: center;
}

.filter-button-group .button-primary,
.filter-button-group .button-secondary {
    padding: 0 16px;
    font-size: 15px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.pagination-container .button-secondary {
    padding: 0 16px;
    font-size: 15px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Footer */
.footer {
    background-color: var(--color-surface-black);
    color: var(--color-on-dark);
    padding: 64px 20px;
    font-size: 12px;
    font-family: "SF Pro Text", sans-serif;
    text-align: center;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1068px) {
    .hero-display { font-size: 40px; }
    .display-lg { font-size: 34px; }
}

.search-icon {
    font-size: 14px;
    transition: transform 0.1s;
}

.search-icon:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .search-input { width: 200px; }
    .data-table td, .trades-table td { padding: 12px 8px; font-size: 14px; }
}

@media (max-width: 640px) {
    .hero-display { font-size: 34px; }
    .display-lg { font-size: 28px; }
    .lead { font-size: 21px; }
}
