/* ─── Variables ─── */ :root { --bg: #f7f6f3; --surface: #ffffff; --surface2: #f0eeea; --border: #e2ddd6; --border-focus: #ccc7be; --text: #1a1917; --muted: #6b6560; --dim: #b0aa9f; --accent: #1a56db; --accent2: #1447b8; --green: #0a7c52; --red: #b91c1c; --yellow: #92620a; --ff-mono: 'IBM Plex Mono', monospace; --ff-sans: 'IBM Plex Sans', sans-serif; } /* ─── Reset ─── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } /* ─── Base ─── */ body { background: var(--bg); color: var(--text); font-family: var(--ff-mono); font-weight: 300; min-height: 100vh; overflow-x: hidden; } /* Dot grid overlay */ body::before { content: ""; position: fixed; inset: 0; background-image: radial-gradient(circle, var(--border) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.5; pointer-events: none; z-index: 0; } /* ─── Layout ─── */ .container { max-width: 860px; margin: 0 auto; padding: 0 2rem; } .container--wide { max-width: 1100px; margin: 0 auto; padding: 0 2rem; } .container--narrow { max-width: 720px; margin: 0 auto; padding: 0 2rem; } /* ─── Header ─── */ header { border-bottom: 1px solid var(--border); animation: fadeUp 0.6s ease both; position: relative; z-index: 1; } .back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2rem; transition: color 0.2s; font-family: var(--ff-mono); } .back:hover { color: var(--accent); } .tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; font-family: var(--ff-mono); } h1 { font-family: var(--ff-mono); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); } h1 span { color: var(--accent); font-size: clamp(1.6rem, 2.5vw, 2.8rem); } .header-sub { margin-top: 0.6rem; font-size: 0.78rem; color: var(--muted); } .byline { margin-top: 1.2rem; font-size: 0.72rem; color: var(--muted); display: flex; gap: 1.5rem; font-family: var(--ff-mono); } .byline span { color: var(--accent); } /* ─── Typography ─── */ h2 { font-family: var(--ff-mono); font-size: 1rem; font-weight: 500; color: var(--accent); margin: 2.8rem 0 1rem; letter-spacing: -0.01em; } h2::before { content: "// "; color: var(--dim); font-family: var(--ff-mono); font-weight: 300; } p { font-family: var(--ff-sans); font-size: 0.88rem; line-height: 1.9; color: var(--muted); margin-bottom: 1.2rem; font-weight: 300; } code { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--accent); background: rgba(26, 86, 219, 0.06); padding: 0.1rem 0.4rem; border: 1px solid rgba(26, 86, 219, 0.15); border-radius: 2px; } hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; } .section-label { font-family: var(--ff-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.2rem; } .lead { font-family: var(--ff-sans); font-size: 0.95rem; line-height: 1.9; color: var(--text); font-weight: 300; border-left: 2px solid var(--accent2); padding-left: 1.5rem; margin-bottom: 3rem; } blockquote { margin: 2.5rem 0; padding: 1.6rem 2rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); font-family: var(--ff-mono); font-size: 0.95rem; font-weight: 400; color: var(--text); line-height: 1.6; border-radius: 0 4px 4px 0; } blockquote span { color: var(--accent); } /* ─── Color utilities ─── */ .up { color: var(--green); } .down { color: var(--red); } .neutral { color: var(--muted); } /* ─── Cards ─── */ .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 3rem 0 2.5rem; animation: fadeUp 0.6s 0.1s ease both; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.4rem 1.6rem; transition: border-color 0.2s, box-shadow 0.2s; } .card:hover { border-color: var(--border-focus); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); } .card-label { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.5rem; } .card-value { font-family: var(--ff-mono); font-size: 1.4rem; font-weight: 500; color: var(--text); } /* ─── Nav grid (homepage) ─── */ .nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .nav-item { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2rem 2rem 1.8rem; text-decoration: none; color: var(--text); position: relative; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; animation: fadeUp 0.7s ease both; } .nav-item::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; } .nav-item:hover { border-color: var(--accent2); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); } .nav-item:hover::after { width: 100%; } .nav-item:hover .arrow { transform: translate(4px, -4px); } .nav-number { font-family: var(--ff-mono); font-size: 0.65rem; color: var(--dim); letter-spacing: 0.15em; margin-bottom: 1.4rem; } .nav-title { font-family: var(--ff-mono); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: var(--text); } .arrow { font-size: 1rem; color: var(--accent); transition: transform 0.25s ease; flex-shrink: 0; } .nav-desc { font-family: var(--ff-sans); font-size: 0.78rem; color: var(--muted); line-height: 1.6; font-weight: 300; } /* ─── Table ─── */ .table-wrap { overflow-x: auto; animation: fadeUp 0.6s 0.2s ease both; margin-bottom: 2.5rem; border: 1px solid var(--border); border-radius: 6px; } table { width: 100%; border-collapse: collapse; font-size: 0.78rem; font-family: var(--ff-mono); } thead tr { border-bottom: 1px solid var(--border); background: var(--surface2); } thead th { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 0.7rem 1rem; text-align: right; white-space: nowrap; font-weight: 400; } thead th:first-child { text-align: left; } tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; background: var(--surface); } tbody tr:hover { background: var(--surface2); } tbody td { padding: 1rem; text-align: right; white-space: nowrap; color: var(--text); } tbody td:first-child { text-align: left; } .ticker { font-family: var(--ff-mono); font-weight: 500; font-size: 0.88rem; color: var(--text); } .currency-badge { display: inline-block; font-size: 0.6rem; padding: 0.15rem 0.4rem; border: 1px solid var(--border); color: var(--muted); margin-left: 0.4rem; vertical-align: middle; border-radius: 2px; } .weight-cell { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; } .weight-bar-track { width: 60px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; } .weight-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; opacity: 0.5; } .watchlist-row td { color: var(--muted); } .watchlist-label { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 1.2rem 1rem 0.5rem; } /* ─── Skill bars ─── */ .skills-list { display: flex; flex-direction: column; gap: 0.75rem; } .skill-row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--muted); font-family: var(--ff-mono); } .skill-bar-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; } .skill-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; opacity: 0.6; transform-origin: left; animation: growBar 0.8s ease both; } /* ─── Compare grid ─── */ .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2rem 0; } .compare-col { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.4rem 1.6rem; transition: border-color 0.2s; } .compare-col:hover { border-color: var(--border-focus); } .compare-col h3 { font-family: var(--ff-mono); font-size: 0.82rem; font-weight: 500; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); } .compare-col.bad h3 { color: var(--red); } .compare-col.good h3 { color: var(--green); } .compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; } .compare-col ul li { font-family: var(--ff-sans); font-size: 0.78rem; color: var(--muted); line-height: 1.5; padding-left: 1rem; position: relative; font-weight: 300; } .compare-col.bad ul li::before { content: "—"; position: absolute; left: 0; color: var(--red); } .compare-col.good ul li::before { content: "+"; position: absolute; left: 0; color: var(--green); } /* ─── Experience & Education ─── */ .exp-block { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; margin-bottom: 8px; transition: border-color 0.2s, box-shadow 0.2s; } .exp-block:hover { border-color: var(--border-focus); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); } .exp-block p { font-size: 0.78rem; color: var(--muted); line-height: 1.7; margin-top: 0.4rem; } .edu-item { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); } .edu-item:last-child { border-bottom: none; margin-bottom: 0; } .edu-year { font-family: var(--ff-mono); font-size: 0.65rem; color: var(--yellow); letter-spacing: 0.1em; padding-top: 0.15rem; } .edu-title { font-family: var(--ff-mono); font-size: 0.92rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--text); } .edu-sub { font-family: var(--ff-sans); font-size: 0.78rem; color: var(--muted); line-height: 1.6; font-weight: 300; } .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; } .tag-pill { font-family: var(--ff-mono); font-size: 0.7rem; padding: 0.3rem 0.75rem; border: 1px solid var(--border); color: var(--muted); letter-spacing: 0.05em; border-radius: 3px; transition: border-color 0.15s, color 0.15s; } .tag-pill:hover { border-color: var(--accent2); color: var(--accent); } /* ─── Forms / Login ─── */ .form-group { margin-bottom: 1.2rem; } label { display: block; font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; } input[type="text"], input[type="password"] { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-family: var(--ff-mono); font-size: 0.82rem; padding: 0.7rem 0.9rem; outline: none; border-radius: 4px; transition: border-color 0.2s, box-shadow 0.2s; } input[type="text"]:focus, input[type="password"]:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(26, 71, 184, 0.1); } input::placeholder { color: var(--dim); } .btn { width: 100%; background: var(--accent2); color: #ffffff; font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1rem; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s, opacity 0.2s; } .btn:hover { background: var(--accent); } .btn:active { opacity: 0.85; } /* ─── Footer ─── */ footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; animation: fadeUp 0.6s 0.4s ease both; position: relative; z-index: 1; } footer a { font-family: var(--ff-mono); color: var(--accent); text-decoration: none; font-size: 0.82rem; transition: opacity 0.2s; } footer a:hover { opacity: 0.7; } .footer-copy { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--dim); letter-spacing: 0.05em; } /* ─── Animations ─── */ @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } } @keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } .shake { animation: shake 0.4s ease; } /* ─── Article layout ─── */ article { padding: 3.5rem 0; animation: fadeUp 0.6s 0.1s ease both; position: relative; z-index: 1; } main { padding: 3.5rem 0; position: relative; z-index: 1; } /* ─── Classify grid (cyber page) ─── */ .classify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2rem 0; } .classify-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.4rem 1.3rem; transition: border-color 0.2s, box-shadow 0.2s; } .classify-card:hover { border-color: var(--border-focus); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); } .classify-card h3 { font-family: var(--ff-mono); font-size: 0.88rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); } .classify-card p { font-size: 0.72rem; color: var(--muted); margin: 0; line-height: 1.6; } .level { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.6rem; font-weight: 500; } .level-critical { color: var(--red); } .level-high { color: var(--yellow); } .level-standard { color: var(--green); } /* ─── Principles (cyber page) ─── */ .principles { display: flex; flex-direction: column; gap: 8px; margin: 2rem 0; } .principle { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.2rem 1.4rem; align-items: start; transition: border-color 0.2s; } .principle:hover { border-color: var(--border-focus); } .principle-num { font-family: var(--ff-mono); font-size: 1rem; font-weight: 500; color: var(--accent2); padding-top: 0.1rem; } .principle-title { font-family: var(--ff-mono); font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 0.35rem; } .principle p { font-size: 0.77rem; color: var(--muted); line-height: 1.65; margin: 0; } .counter { color: var(--green); font-size: 0.72rem; font-family: var(--ff-mono); } /* ─── Login panel ─── */ .login-panel { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 2rem; } .login-panel h2 { font-family: var(--ff-mono); font-size: 0.95rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--text); } .login-panel h2::before { display: none; } .login-panel .desc { font-family: var(--ff-sans); font-size: 0.78rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.6; font-weight: 300; } .twofa-group { display: none; margin-bottom: 1.2rem; } .twofa-group.visible { display: block; } .twofa-hint { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--muted); margin-top: 0.4rem; } .btn-login { width: 100%; background: var(--accent2); color: #ffffff; font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1rem; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s, opacity 0.2s; margin-top: 0.4rem; } .btn-login:hover { background: var(--accent); } .btn-login:active { opacity: 0.85; } .login-error { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--red); margin-top: 1rem; display: none; } .login-error.visible { display: block; } /* ─── Private dashboard ─── */ #private-dashboard { display: none; } #private-dashboard.visible { display: block; } .repo-list { display: flex; flex-direction: column; gap: 8px; } .repo-item { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; transition: border-color 0.2s, box-shadow 0.15s; cursor: pointer; text-decoration: none; } .repo-item:hover { border-color: var(--border-focus); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); } .repo-name { font-family: var(--ff-mono); font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; } .repo-desc { font-family: var(--ff-sans); font-size: 0.72rem; color: var(--muted); font-weight: 300; } .repo-badge { font-family: var(--ff-mono); font-size: 0.6rem; padding: 0.2rem 0.5rem; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; flex-shrink: 0; border-radius: 3px; } .repo-badge.private { color: var(--red); border-color: rgba(185, 28, 28, 0.25); background: rgba(185, 28, 28, 0.04); } .repo-badge.active { color: var(--green); border-color: rgba(10, 124, 82, 0.25); background: rgba(10, 124, 82, 0.04); } .logout-btn { margin-top: 1.2rem; font-family: var(--ff-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; transition: color 0.2s; } .logout-btn:hover { color: var(--red); } /* ─── Empty state ─── */ .empty-state { border: 1px dashed var(--border); border-radius: 6px; padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.8rem; min-height: 280px; background: var(--surface); } .empty-icon { font-size: 1.8rem; opacity: 0.2; } .empty-title { font-family: var(--ff-mono); font-size: 0.88rem; font-weight: 500; color: var(--muted); } .empty-sub { font-family: var(--ff-sans); font-size: 0.72rem; color: var(--muted); opacity: 0.6; max-width: 200px; line-height: 1.6; font-weight: 300; } /* ─── Two column main ─── */ main.two-col { padding: 3.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; animation: fadeUp 0.6s 0.1s ease both; position: relative; z-index: 1; } /* ─── Page nav ─── */ .page-nav { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 40px; padding-top: 6px; width: 100%; font-family: var(--ff-mono); } .page-nav a { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border); padding: 5px 12px; border-radius: 3px; text-decoration: none; letter-spacing: 0.04em; transition: color 0.15s, border-color 0.15s, background 0.15s; position: relative; overflow: hidden; } .page-nav a:hover { color: var(--accent); border-color: var(--accent2); background: rgba(26, 86, 219, 0.05); } .page-nav a span { position: relative; z-index: 1; } .page-nav a.active { color: var(--accent); border-color: var(--accent); background: rgba(26, 86, 219, 0.06); } /* ─── Attack table (cyber page) ─── */ .attack-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.76rem; margin: 2rem 0; font-family: var(--ff-mono); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); } .attack-table thead th { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 0.6rem 1rem; text-align: left; border-bottom: 1px solid var(--border); word-wrap: break-word; background: var(--surface2); font-weight: 400; } .attack-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; background: var(--surface); } .attack-table tbody tr:hover { background: var(--surface2); } .attack-table tbody td { padding: 0.9rem 1rem; color: var(--muted); vertical-align: top; line-height: 1.55; text-align: left; word-wrap: break-word; overflow-wrap: break-word; white-space: normal; } .attack-table td:first-child { color: var(--red); font-weight: 500; width: 18%; } .attack-table td:nth-child(2) { width: 40%; } .attack-table td:nth-child(3) { width: 42%; color: var(--green); font-size: 0.72rem; } .attack-table thead th:nth-child(1) { width: 18%; } .attack-table thead th:nth-child(2) { width: 42%; } .attack-table thead th:nth-child(3) { width: 40%; } nav .section-label { margin: 0; padding: 0; } /* ─── Responsive ─── */ @media (max-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } } @media (max-width: 640px) { main.two-col { grid-template-columns: 1fr; gap: 2.5rem; } } @media (max-width: 560px) { .nav-grid { grid-template-columns: 1fr; } .edu-item { grid-template-columns: 1fr; gap: 0.4rem; } .skill-row { grid-template-columns: 70px 1fr; } .compare { grid-template-columns: 1fr; } footer { flex-direction: column; gap: 0.5rem; } .classify-grid { grid-template-columns: 1fr; } } @media (max-width: 420px) { .cards { grid-template-columns: 1fr; } } /* ── Trades accordion ── */ .trades-section { margin-top: 2.5rem; } .trades-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: none; border: none; border-top: 1px solid var(--border, #2a2a3a); border-bottom: 1px solid var(--border, #2a2a3a); width: 100%; padding: 0.85rem 0; color: inherit; font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.07em; text-align: left; user-select: none; } .trades-toggle:hover .toggle-label { color: var(--accent, #f59e0b); } .toggle-label { color: var(--muted, #475569); transition: color 0.15s; } .toggle-label span { color: var(--accent, #f59e0b); } .toggle-icon { color: var(--muted, #475569); font-size: 1rem; transition: transform 0.25s ease; line-height: 1; } .trades-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); } .trades-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; } .trades-body.open { grid-template-rows: 1fr; } .trades-inner { overflow: hidden; } .trades-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 1rem 0 0.75rem; } .filter-btn { background: none; border: 1px solid var(--border, #2a2a3a); border-radius: 4px; color: var(--muted, #475569); font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em; padding: 3px 10px; cursor: pointer; transition: all 0.15s; } .filter-btn:hover, .filter-btn.active { border-color: var(--accent, #f59e0b); color: var(--accent, #f59e0b); background: rgba(245,158,11,0.06); } .trades-table-wrap { overflow-x: auto; padding-bottom: 1.5rem; } .trades-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; } .trades-table thead tr { border-bottom: 1px solid var(--border, #2a2a3a); } .trades-table th { color: var(--muted, #475569); font-weight: 400; letter-spacing: 0.07em; font-size: 0.68rem; padding: 0.5rem 0.75rem; text-align: left; white-space: nowrap; } .trades-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid rgba(42,42,58,0.5); white-space: nowrap; color: var(--text, #e2e8f0); } .trades-table tbody tr:last-child td { border-bottom: none; } .trades-table tbody tr:hover td { background: rgba(255,255,255,0.02); } .trades-table tr.hidden-row { display: none; } .dir-buy { color: #4ade80; } .dir-sell { color: #f87171; } .pnl-pos { color: #4ade80; } .pnl-neg { color: #f87171; } .pnl-zero{ color: var(--muted, #475569); } .trade-code { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.65rem; background: rgba(42,42,58,0.8); color: var(--muted, #475569); letter-spacing: 0.05em; } .trade-ticker { font-weight: 500; color: #f1f5f9; } .trades-count { color: var(--muted, #475569); font-size: 0.68rem; padding: 0 0 0.5rem; } /* ── Live price styles ── */ .price-cell { position: relative; } .price-val { transition: color 0.4s; } .price-val.loading { color: var(--muted, #475569); } .price-val.flash-up { color: #4ade80; } .price-val.flash-down { color: #f87171; } .price-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; color: var(--muted, #475569); margin-left: 0.5rem; vertical-align: middle; } .price-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted, #475569); display: inline-block; } .price-dot.live { background: #4ade80; box-shadow: 0 0 4px #4ade80; } .price-dot.error { background: #f87171; } .price-dot.loading { background: #f59e0b; animation: pulse 1s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } .refresh-btn { background: none; border: 1px solid var(--border, #2a2a3a); border-radius: 4px; color: var(--muted, #475569); font-family: 'DM Mono', monospace; font-size: 0.68rem; padding: 2px 8px; cursor: pointer; letter-spacing: 0.05em; transition: all 0.15s; } .refresh-btn:hover { border-color: var(--accent, #f59e0b); color: var(--accent, #f59e0b); } .section-header-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }