/* ═══════════════════════════════════════════════════════════════
   GetJustly — Global Web Design System
   Petite premium B/W aesthetic
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --gj-bg: #080808;
    --gj-surface: #0c0c0c;
    --gj-surface-hover: #111111;
    --gj-surface-elevated: #141414;
    --gj-border: rgba(255, 255, 255, 0.05);
    --gj-border-hover: rgba(255, 255, 255, 0.10);
    --gj-border-active: rgba(255, 255, 255, 0.18);
    --gj-text: rgba(255, 255, 255, 0.88);
    --gj-text-secondary: rgba(255, 255, 255, 0.50);
    --gj-text-muted: rgba(255, 255, 255, 0.30);
    --gj-text-faint: rgba(255, 255, 255, 0.18);
    --gj-accent: rgba(255, 255, 255, 0.88);
    --gj-accent-hover: rgba(255, 255, 255, 0.95);
    --gj-accent-dim: rgba(255, 255, 255, 0.06);
    --gj-amber: #f59e0b;
    --gj-success: #10b981;
    --gj-danger: #f43f5e;
    --gj-info: #3b82f6;
    --gj-radius: 10px;
    --gj-radius-sm: 6px;
    --gj-radius-lg: 12px;
    --gj-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Override Frappe's own CSS variables for dark mode ──
   Frappe defines vars on ':root, [data-theme="light"]'.
   We must match that specificity to win the cascade.       */
:root,
[data-theme="light"] {
    --bg-color: #080808;
    --fg-color: #0c0c0c;
    --fg-hover-color: #111111;
    --text-color: rgba(255, 255, 255, 0.88);
    --text-muted: rgba(255, 255, 255, 0.40);
    --text-light: rgba(255, 255, 255, 0.30);
    --heading-color: rgba(255, 255, 255, 0.92);
    --border-color: rgba(255, 255, 255, 0.06);
    --dark-border-color: rgba(255, 255, 255, 0.10);
    --table-border-color: rgba(255, 255, 255, 0.06);

    /* Grays — inverted for dark mode */
    --gray-50: #0c0c0c;
    --gray-100: #111111;
    --gray-200: #1a1a1a;
    --gray-300: #2a2a2a;
    --gray-400: rgba(255, 255, 255, 0.25);
    --gray-500: rgba(255, 255, 255, 0.35);
    --gray-600: rgba(255, 255, 255, 0.45);
    --gray-700: rgba(255, 255, 255, 0.55);
    --gray-800: rgba(255, 255, 255, 0.70);
    --gray-900: rgba(255, 255, 255, 0.88);

    /* Controls */
    --control-bg: #0c0c0c;
    --control-bg-on-gray: #111111;
    --field-placeholder-color: rgba(255, 255, 255, 0.25);
    --disabled-control-bg: #0a0a0a;
    --disabled-text-color: rgba(255, 255, 255, 0.20);
    --input-disabled-bg: #0a0a0a;

    /* Surfaces */
    --card-bg: #0c0c0c;
    --navbar-bg: #090909;
    --modal-bg: #141414;
    --toast-bg: #141414;
    --popover-bg: #141414;
    --subtle-fg: #111111;
    --subtle-accent: rgba(255, 255, 255, 0.04);
    --highlight-color: rgba(255, 255, 255, 0.04);
    --yellow-highlight-color: rgba(245, 158, 11, 0.08);
    --avatar-frame-bg: #141414;
    --awesomebar-focus-bg: #0c0c0c;
    --sidebar-select-color: rgba(255, 255, 255, 0.06);
    --placeholder-color: #0a0a0a;

    /* Buttons */
    --btn-default-bg: #141414;
    --btn-default-hover-bg: #1a1a1a;
    --btn-primary: rgba(255, 255, 255, 0.88);
    --primary-color: rgba(255, 255, 255, 0.88);
    --border-primary: rgba(255, 255, 255, 0.88);

    /* Icons */
    --icon-stroke: rgba(255, 255, 255, 0.50);
    --icon-fill: transparent;
    --icon-fill-bg: #0c0c0c;

    /* Scrollbar */
    --scrollbar-thumb-color: rgba(255, 255, 255, 0.12);
    --scrollbar-track-color: #080808;

    /* Shadows — darker for dark mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-inset: inset 0px -1px 0px rgba(255, 255, 255, 0.04);
    --modal-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);

    /* Blue accents for links inside Frappe components */
    --blue-500: #60a5fa;
    --blue-600: #3b82f6;
}

/* ── Base ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
    background: var(--gj-bg) !important;
    color: var(--gj-text) !important;
    font-size: 14px;
    letter-spacing: -0.01em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.2s var(--gj-ease); }
a:hover { color: rgba(255, 255, 255, 0.65); }

/* ── Override Frappe chrome ── */
.container,
.page-content-wrapper,
main.container,
#page-content,
.page_content,
.page-header-wrapper,
.page-header,
.page-breadcrumbs,
.breadcrumb,
.web-footer,
footer.web-footer,
.footer-info,
.footer-links,
.footer-logo-extension,
.web-sidebar,
.page-card,
.page-container,
[id^="page-"] {
    background: var(--gj-bg) !important;
    color: var(--gj-text) !important;
    border-color: var(--gj-border) !important;
}

/* Frappe navbar — comprehensive dark override + sticky */
.web-navbar, .navbar, .navbar-expand, .navbar-light {
    background: #090909 !important;
    border-bottom: 1px solid var(--gj-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
/* Brand logo */
.navbar .navbar-brand {
    color: rgba(255, 255, 255, 0.50) !important;
}
.navbar .navbar-brand img {
    height: 22px !important;
    width: auto;
    filter: brightness(0) invert(1) !important;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.navbar .navbar-brand:hover img { opacity: 0.7; }
/* Nav links */
.navbar .nav-link, .navbar a {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 13px;
}
.navbar .nav-link:hover, .navbar a:hover {
    color: rgba(255, 255, 255, 0.88) !important;
}
/* Mobile toggler — white icon on dark bg */
.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.10) !important;
}
.navbar-light .navbar-toggler-icon,
.navbar-toggler .icon {
    filter: brightness(0) invert(1) !important;
    opacity: 0.5;
}
/* Avatar in navbar */
.navbar .avatar, .navbar .avatar-frame,
.navbar .user-image-wrapper img,
.navbar .avatar-frame img {
    border-color: rgba(255, 255, 255, 0.10) !important;
    border-radius: 50%;
}

/* ── Navbar dropdown — aggressive specificity ──
   Targets every variant Bootstrap/Frappe can produce */
.dropdown-menu,
ul.dropdown-menu,
.dropdown-menu-right,
ul.dropdown-menu-right,
.navbar .dropdown-menu,
.navbar ul.dropdown-menu,
.navbar .dropdown-menu-right,
.navbar ul.dropdown-menu-right,
.navbar-light .dropdown-menu,
.navbar-expand .dropdown-menu,
.navbar-expand-lg .dropdown-menu,
#website-post-login .dropdown-menu {
    background-color: #141414 !important;
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    padding: 4px !important;
}
.dropdown-menu a,
.dropdown-menu .dropdown-item,
ul.dropdown-menu a,
ul.dropdown-menu .dropdown-item,
.dropdown-menu-right a,
.dropdown-menu-right .dropdown-item,
#website-post-login .dropdown-menu a,
#website-post-login .dropdown-item {
    color: rgba(255, 255, 255, 0.65) !important;
    background: transparent !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu a:focus,
.dropdown-menu .dropdown-item:focus,
ul.dropdown-menu a:hover,
ul.dropdown-menu .dropdown-item:hover,
.dropdown-menu-right a:hover,
.dropdown-menu-right .dropdown-item:hover,
#website-post-login .dropdown-menu a:hover,
#website-post-login .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.90) !important;
}
.dropdown-menu .dropdown-divider,
.dropdown-menu-right .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.page-header-wrapper,
.page-breadcrumbs { display: none !important; }

/* ── Footer — our custom .gj-footer overrides Frappe's Standard Footer ── */
.web-footer.gj-footer {
    background: var(--gj-bg) !important;
    border-top: 1px solid var(--gj-border) !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Hide any leftover Frappe footer elements */
.footer-powered, .footer-info .footer-logo-extension,
.web-footer .footer-subscribe { display: none !important; }

/* Login page styles are in getjustly_login.css */

/* ═══════════════════════════════════════════
   COMPREHENSIVE DARK MODE
   Covers ALL Frappe web-facing page elements
   ═══════════════════════════════════════════ */

/* ── Page cards / error pages / alerts ── */
.page-card,
.page-card-head,
.msgprint,
.alert {
    background: var(--gj-surface) !important;
    border-color: var(--gj-border) !important;
    color: var(--gj-text) !important;
}
.page-card .page-card-head .indicator-pill {
    color: inherit !important;
}
.page-card p, .page-card .lead, .page-card .text-muted,
.text-muted, .text-secondary {
    color: var(--gj-text-secondary) !important;
}
.page-card .btn-primary-light, .page-card .btn-default,
.btn-default, .btn-secondary, .btn-light {
    background: var(--gj-surface-elevated) !important;
    border-color: var(--gj-border-hover) !important;
    color: var(--gj-text) !important;
}
.btn-default:hover, .btn-secondary:hover, .btn-light:hover {
    background: var(--gj-surface-hover) !important;
    border-color: var(--gj-border-active) !important;
    color: var(--gj-text) !important;
}

/* ── User profile page /me ── */
.user-profile-page,
.web-form,
.web-form-container,
.website-content,
[data-path="me"],
[data-path="update-password"],
[data-path="update-password/"],
.profile-page,
.user-image-wrapper {
    background: var(--gj-bg) !important;
    color: var(--gj-text) !important;
}

/* ── Bootstrap cards, panels, list-groups ── */
.card, .card-body, .card-header, .card-footer,
.panel, .panel-body, .panel-heading, .panel-footer,
.list-group, .list-group-item,
.well, .jumbotron {
    background: var(--gj-surface) !important;
    border-color: var(--gj-border) !important;
    color: var(--gj-text) !important;
}
.card-header, .panel-heading {
    background: var(--gj-surface-elevated) !important;
    border-color: var(--gj-border) !important;
}
.list-group-item {
    border-color: var(--gj-border) !important;
}
.list-group-item:hover {
    background: var(--gj-surface-hover) !important;
}
.list-group-item a, .card a {
    color: rgba(255, 255, 255, 0.65) !important;
}
.list-group-item a:hover, .card a:hover {
    color: rgba(255, 255, 255, 0.90) !important;
}

/* ── Web sidebar (newsletter, my account etc.) ── */
.web-sidebar a,
.web-sidebar .sidebar-item,
.web-sidebar li,
.web-sidebar .list-group-item {
    color: var(--gj-text-secondary) !important;
    background: transparent !important;
    border-color: var(--gj-border) !important;
}
.web-sidebar a:hover,
.web-sidebar a.active,
.web-sidebar .active {
    color: var(--gj-text) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

/* ── Frappe user profile section ── */
.user-details,
.user-profile,
.profile-image-section {
    background: var(--gj-surface) !important;
    border-color: var(--gj-border) !important;
    color: var(--gj-text) !important;
}

/* ── All generic white backgrounds ── */
.py-4, .my-4, .py-3, .my-3 {
    background: transparent !important;
}
main, main > .container, main.container {
    background: var(--gj-bg) !important;
}

/* ── Table / data display ── */
table, .table, th, td, thead, tbody {
    color: var(--gj-text) !important;
    border-color: var(--gj-border) !important;
    background: transparent !important;
}
th, thead th {
    background: var(--gj-surface) !important;
}

/* ── Form controls on web pages ── */
.form-control, .form-select, select,
textarea, input[type="text"], input[type="email"],
input[type="password"], input[type="search"],
input[type="url"], input[type="number"],
input[type="tel"] {
    background: var(--gj-surface) !important;
    border-color: var(--gj-border) !important;
    color: var(--gj-text) !important;
}
.form-control:focus, .form-select:focus,
textarea:focus, input:focus {
    border-color: var(--gj-border-active) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04) !important;
}
::placeholder {
    color: var(--gj-text-muted) !important;
}

/* ── Labels and help text ── */
label, .form-label, .control-label {
    color: var(--gj-text-secondary) !important;
}
.help-block, .form-text, small.text-muted {
    color: var(--gj-text-muted) !important;
}

/* ── Breadcrumbs ── */
.breadcrumb {
    background: transparent !important;
}
.breadcrumb-item, .breadcrumb-item a {
    color: var(--gj-text-muted) !important;
}
.breadcrumb-item.active {
    color: var(--gj-text-secondary) !important;
}

/* ── Modal / dialog ── */
.modal-content {
    background: var(--gj-surface-elevated) !important;
    border-color: var(--gj-border) !important;
    color: var(--gj-text) !important;
}
.modal-header, .modal-footer {
    border-color: var(--gj-border) !important;
}
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* ── /me (My Account) page ── */
.my-account-container .account-info {
    background: var(--gj-surface) !important;
    border-color: var(--gj-border) !important;
}
.my-account-container .account-info .col {
    border-color: var(--gj-border) !important;
}
.my-account-header,
.my-account-name,
.my-account-item {
    color: var(--gj-text) !important;
}
.my-account-item-desc {
    color: var(--gj-text-secondary) !important;
}
.my-account-item-link a {
    color: var(--gj-text-secondary) !important;
}
.my-account-item-link a:hover {
    color: var(--gj-text) !important;
}

/* ── SVG icons on web pages ── */
.icon, svg.icon, [class*="icon"] svg {
    --icon-stroke: rgba(255, 255, 255, 0.50);
    stroke: rgba(255, 255, 255, 0.50);
}
.edit-profile-icon {
    stroke: var(--blue-500) !important;
}

/* ── Web sidebar visible on dark bg ── */
.sidebar-column .list-group-item {
    background: transparent !important;
    border-color: var(--gj-border) !important;
    color: var(--gj-text-secondary) !important;
}
.sidebar-column .list-group-item a {
    color: var(--gj-text-secondary) !important;
}
.sidebar-column .list-group-item.active,
.sidebar-column .list-group-item a:hover {
    color: var(--gj-text) !important;
}

/* ── Global Bootstrap .btn-primary override ── */
/* Ensures dark text on white buttons everywhere */
.btn-primary {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #0a0a0a !important;
    border: none !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0a0a0a !important;
    border: none !important;
}

/* Hide number input spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY — Lighter, tighter
   ═══════════════════════════════════════════ */
h1, h2, h3 {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    letter-spacing: -0.02em;
}
h1 { font-size: 1.375rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }

/* ═══════════════════════════════════════════
   NAVIGATION — Petite, precise
   ═══════════════════════════════════════════ */
.gj-nav {
    background: #090909;
    border-bottom: 1px solid var(--gj-border);
    padding: 0.625rem 0;
}
.gj-nav .brand {
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.02em;
}
.gj-nav a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s var(--gj-ease);
}
.gj-nav a:hover { color: rgba(255, 255, 255, 0.75); }
.gj-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gj-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ═══════════════════════════════════════════
   CARDS — Subtle, refined
   ═══════════════════════════════════════════ */
.gj-card {
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius);
    padding: 1rem;
    margin-bottom: 0.625rem;
    transition: border-color 0.25s var(--gj-ease), box-shadow 0.25s var(--gj-ease);
}
.gj-card:hover {
    border-color: var(--gj-border-hover);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.gj-card a { text-decoration: none; color: inherit; }
.gj-card-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}
.gj-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    font-size: 12px;
    color: var(--gj-text-muted);
}
.gj-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ═══════════════════════════════════════════
   BADGES — Quieter, more refined
   ═══════════════════════════════════════════ */
.gj-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.gj-badge-success, .gj-badge-approved, .gj-badge-active, .gj-badge-resolved, .gj-badge-closed {
    background: rgba(16, 185, 129, 0.08); color: #34d399;
}
.gj-badge-warning, .gj-badge-under-review, .gj-badge-awaiting-acceptance, .gj-badge-on-hold {
    background: rgba(245, 158, 11, 0.08); color: #fbbf24;
}
.gj-badge-danger, .gj-badge-rejected, .gj-badge-abandoned {
    background: rgba(244, 63, 94, 0.08); color: #fb7185;
}
.gj-badge-info, .gj-badge-submitted, .gj-badge-new, .gj-badge-assigned, .gj-badge-lawyer-assigned {
    background: rgba(59, 130, 246, 0.08); color: #60a5fa;
}
.gj-badge-draft {
    background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.35);
}
.gj-badge-escalated {
    background: rgba(245, 158, 11, 0.10); color: #fbbf24;
}
.gj-badge-ready-for-matching, .gj-badge-pending-resolution {
    background: rgba(139, 92, 246, 0.08); color: #a78bfa;
}

/* ═══════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════ */
.gj-grid { display: grid; gap: 0.625rem; }
.gj-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gj-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gj-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ═══════════════════════════════════════════
   STATS — Refined numbers
   ═══════════════════════════════════════════ */
.gj-stat { text-align: center; padding: 0.875rem; }
.gj-stat .number, .gj-stat-value {
    font-size: 1.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.03em;
}
.gj-stat .label, .gj-stat-label {
    color: var(--gj-text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
    font-weight: 500;
}

.gj-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════
   TABLES — Lighter
   ═══════════════════════════════════════════ */
.gj-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.gj-table th {
    font-weight: 500;
    color: var(--gj-text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--gj-border);
}
.gj-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    font-size: 13px;
}
.gj-table tbody tr { transition: background 0.15s var(--gj-ease); }
.gj-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.gj-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ═══════════════════════════════════════════
   BUTTONS — White primary, ghost secondary
   ═══════════════════════════════════════════ */
.gj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.125rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 13px;
    transition: all 0.2s var(--gj-ease);
    font-family: inherit;
    text-decoration: none;
    letter-spacing: -0.005em;
    gap: 6px;
}
.gj-btn-primary {
    background: rgba(255, 255, 255, 0.88);
    color: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}
.gj-btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.04), 0 1px 3px rgba(0, 0, 0, 0.12);
}
.gj-btn-primary:active {
    background: rgba(255, 255, 255, 0.78);
    color: #0a0a0a;
    transform: translateY(0) scale(0.995);
}
.gj-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.60);
    border: 1px solid var(--gj-border-hover);
}
.gj-btn-secondary:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: var(--gj-border-active);
    background: rgba(255, 255, 255, 0.02);
}
/* Accent button — white primary style */
.gj-btn-accent {
    background: var(--gj-accent);
    color: #0a0a0a;
}
.gj-btn-accent:hover {
    background: var(--gj-accent-hover);
    box-shadow: 0 4px 14px var(--gj-accent-dim);
    color: #0a0a0a;
}

/* ═══════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════ */
.gj-section-title {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gj-text-muted);
    margin-bottom: 0.625rem;
}

/* ═══════════════════════════════════════════
   PAGE HEADER — Lighter
   ═══════════════════════════════════════════ */
.gj-page-header { margin-bottom: 1.25rem; }
.gj-page-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.02em;
}
.gj-page-header p {
    color: var(--gj-text-muted);
    font-size: 13px;
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.gj-empty { text-align: center; padding: 2.5rem 1rem; color: var(--gj-text-muted); }
.gj-empty h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.gj-empty p { font-size: 13px; margin-bottom: 1rem; }
.gj-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    color: #0a0a0a;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s var(--gj-ease);
}
.gj-empty a:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0a0a0a;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   NAVIGATION LINKS
   ═══════════════════════════════════════════ */
.gj-nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
}
.gj-nav-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 0.375rem 0.5rem;
    border-radius: var(--gj-radius-sm);
    transition: all 0.2s var(--gj-ease);
    white-space: nowrap;
}
.gj-nav-links a:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
}
.gj-nav-links a.active {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.04);
}
.gj-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.50);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.gj-text-muted { color: var(--gj-text-muted); }
.gj-text-sm { font-size: 12px; }
.gj-mt-1 { margin-top: 0.5rem; }
.gj-mt-2 { margin-top: 1rem; }
.gj-mb-1 { margin-bottom: 0.5rem; }
.gj-flex { display: flex; }
.gj-flex-between { display: flex; justify-content: space-between; align-items: center; }

.gj-stars { color: #fbbf24; font-size: 0.8125rem; }

/* ═══════════════════════════════════════════
   EVIDENCE PAGE
   ═══════════════════════════════════════════ */
.evidence-hash {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.5rem;
    border-radius: var(--gj-radius-sm);
    word-break: break-all;
    color: var(--gj-text-muted);
}
.evidence-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gj-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}
.evidence-row { display: flex; gap: 0.625rem; align-items: flex-start; }
.evidence-details { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════
   LOADING
   ═══════════════════════════════════════════ */
.gj-loading { text-align: center; padding: 2rem; color: var(--gj-text-muted); }
.gj-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.40);
    border-radius: 50%;
    animation: gj-spin 0.6s linear infinite;
}
@keyframes gj-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.12); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .gj-nav-toggle { display: block; }
    .gj-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 0.5rem;
    }
    .gj-nav-links.open { display: flex; }
    .gj-nav-links a {
        padding: 0.5rem;
        border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
    }
    .gj-nav-inner { flex-wrap: wrap; }
    .gj-grid-2, .gj-grid-3, .gj-grid-4 { grid-template-columns: 1fr; }
    .gj-table { font-size: 12px; }
}

@media (max-width: 640px) {
    .gj-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .gj-table { min-width: 500px; }
    .gj-btn { min-height: 40px; }
    .gj-empty a { min-height: 40px; }
    h1, h2 { word-wrap: break-word; overflow-wrap: break-word; }
    .gj-container { padding: 0 0.75rem; }
    .gj-card { padding: 0.875rem; border-radius: 8px; }
    .gj-card-meta { font-size: 11px; gap: 0.375rem; }
    .gj-page-header h2 { font-size: 1.125rem; }
    .gj-page-header p { font-size: 12px; }
    .gj-flex-between { flex-wrap: wrap; gap: 0.625rem; }
    .gj-stat .number, .gj-stat-value { font-size: 1.375rem; }
    .gj-stats { grid-template-columns: repeat(2, 1fr); }
    .evidence-hash { font-size: 9px; }
    .evidence-row { gap: 0.5rem; }
}
