/* ZedMark Signals — shared styles (ZedMark Technologies theme: black, copper & peach) */
:root {
  --bg: #050505;
  --bg2: #0a0a0b;
  --panel: rgba(18, 17, 17, .72);
  --panel2: rgba(255, 255, 255, .045);
  --panel-solid: #0e0d0d;
  --panel-hover: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border2: rgba(255, 255, 255, .14);
  --text: #f5f1ec;
  --muted: #a39b93;
  --dim: #6f6861;
  --accent: #f0a46c;      /* peach / copper */
  --accent2: #f8c9a0;     /* light peach */
  --accent3: #d9783f;     /* deep copper */
  --accent-rgb: 240, 164, 108;
  --green: #22c55e;
  --green2: #4ade80;
  --red: #ef4444;
  --red2: #ff5a5a;
  --gold: #f5c451;
  --gold2: #ffd978;
  --purple: #a78bfa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .6);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, .display { font-family: var(--display); letter-spacing: -.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.up { color: var(--green); }
.down { color: var(--red); }
.gold { color: var(--gold); }
.blue, .accent { color: var(--accent); }
.mono { font-variant-numeric: tabular-nums; }
.grad-text {
  background: linear-gradient(100deg, #fbe1c9 0%, #f4b27f 45%, #e08a52 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
::selection { background: rgba(var(--accent-rgb), .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2623; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ── Starfield & grid backdrop ── */
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-layer { position: relative; z-index: 1; }
.grid-bg {
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  text-decoration: none; color: var(--text); background: var(--panel2);
}
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, #f6b989, #ec9a5f); color: #1c0f06; box-shadow: 0 8px 26px rgba(var(--accent-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { color: #1c0f06; box-shadow: 0 10px 32px rgba(var(--accent-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold { background: linear-gradient(180deg, #ffd978, #eeb02a); color: #1a1200; box-shadow: 0 6px 22px rgba(245, 196, 81, .25); }
.btn-gold:hover { color: #1a1200; box-shadow: 0 8px 28px rgba(245, 196, 81, .45); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(var(--accent-rgb), .5); }
.btn-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #ff8a8a; }
.btn-danger:hover { background: rgba(239, 68, 68, .26); color: #fff; }
.btn-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #6ee7a0; }
.btn-success:hover { background: rgba(34, 197, 94, .26); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border2); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
select.input option { background: #141211; }
textarea.input { resize: vertical; min-height: 110px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.input[readonly] { opacity: .7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-error { color: #ff9a9a; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.form-ok { color: #6ee7a0; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }

/* ── Badges & pills ── */
.badge { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; padding: 5px 12px; border-radius: 8px; min-width: 58px; }
.badge-buy { background: linear-gradient(180deg, #23b45a, #138a40); color: #eafff1; box-shadow: 0 0 18px rgba(34, 197, 94, .22); }
.badge-sell { background: linear-gradient(180deg, #e53b3b, #b81f1f); color: #fff0f0; box-shadow: 0 0 18px rgba(239, 68, 68, .22); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border2); color: var(--muted); white-space: nowrap; }
.pill-green { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #6ee7a0; }
.pill-red { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #ff9090; }
.pill-gold { background: rgba(245, 196, 81, .1); border-color: rgba(245, 196, 81, .4); color: var(--gold2); }
.pill-blue, .pill-accent { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .4); color: var(--accent2); }
.pill-purple { background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .4); color: #cbbcff; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--accent2); background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .35); padding: 5px 14px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 1.8s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Asset icon ── */
.asset-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; flex: none; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .25); }
.asset-icon.sm { width: 26px; height: 26px; font-size: 11.5px; }
.asset-icon.lg { width: 44px; height: 44px; font-size: 18px; }
.asset-icon.xl { width: 52px; height: 52px; font-size: 21px; }
.asset-icon.xs { width: 18px; height: 18px; font-size: 8px; }
.asset-icon.logo { background: transparent; box-shadow: none; }
.asset-icon.logo img { width: 100%; height: 100%; }
.asset-icon.brand { box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .08); }
.asset-icon.brand img { width: 56%; height: 56%; filter: invert(1); }
.asset-icon.txt { letter-spacing: -.02em; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .08); }
.asset-icon.fx { position: relative; background: transparent; box-shadow: none; }
.asset-icon.fx img { position: absolute; left: 0; top: 0; width: 74%; height: 74%; border-radius: 50%; box-shadow: 0 0 0 1.5px #0b0a09; }
.asset-icon.fx img.q { left: auto; top: auto; right: 0; bottom: 0; }

/* ── Panel (glass) ── */
.panel {
  background: linear-gradient(180deg, rgba(22, 20, 19, .78), rgba(12, 11, 11, .82));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin: 0; }
.panel-title svg { width: 21px; height: 21px; color: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; cursor: pointer; }
.link-more svg { width: 15px; height: 15px; }

/* ── Tabs (segmented) ── */
.seg { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border); padding: 3px; border-radius: 11px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 6px 13px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: linear-gradient(180deg, #f6b989, #ec9a5f); color: #1c0f06; box-shadow: 0 4px 14px rgba(var(--accent-rgb), .3); }
.seg.outline button.active { background: rgba(var(--accent-rgb), .12); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(var(--accent-rgb), .04); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset-cell { display: flex; align-items: center; gap: 12px; }
.asset-cell b { display: block; font-size: 14.5px; }
.asset-cell small { color: var(--muted); font-size: 12.5px; }

/* ── Toast ── */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #151312; border: 1px solid var(--border2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; font-size: 14px; animation: slideIn .25s ease-out; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Modal ── */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(180deg, #171514, #0d0c0c); border: 1px solid var(--border2); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 16px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.modal h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.modal.wide { max-width: 1040px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Logo ── */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand .brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: -.01em; }
.brand .brand-name span { color: var(--muted); font-weight: 500; }

/* ── Live crypto banner ── */
.crypto-strip { position: relative; z-index: 2; height: 34px; overflow: hidden; border-bottom: 1px solid var(--border); background: rgba(8, 7, 7, .88); backdrop-filter: blur(8px); font-size: 12.5px; }
.crypto-strip::before, .crypto-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; pointer-events: none; }
.crypto-strip::before { left: 0; background: linear-gradient(90deg, #080707, transparent); }
.crypto-strip::after { right: 0; background: linear-gradient(-90deg, #080707, transparent); }
.cs-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee 70s linear infinite; }
.crypto-strip:hover .cs-track { animation-play-state: paused; }
.cs-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .05); height: 100%; }
.cs-item b { font-weight: 700; color: var(--text); }
.cs-item .cs-p { font-variant-numeric: tabular-nums; color: #ddd5cd; }
.cs-item .cs-c { font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; }
.cs-live { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #0b0a09; border-right: 1px solid var(--border); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); }
.flash-up { animation: flashUp .8s; }
.flash-down { animation: flashDown .8s; }
@keyframes flashUp { from { color: var(--green2); } }
@keyframes flashDown { from { color: var(--red2); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Announcement banner ── */
.announce { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px; font-size: 14px; font-weight: 500; text-align: center; flex-wrap: wrap; }
.announce.promo { background: linear-gradient(90deg, rgba(217, 120, 63, .3), rgba(240, 164, 108, .22), rgba(217, 120, 63, .3)); color: #ffe6d1; border-bottom: 1px solid rgba(var(--accent-rgb), .35); }
.announce.info { background: rgba(80, 140, 255, .14); color: #d6e4ff; border-bottom: 1px solid rgba(80, 140, 255, .3); }
.announce.success { background: rgba(34, 197, 94, .14); color: #c9f7da; border-bottom: 1px solid rgba(34, 197, 94, .3); }
.announce.warning { background: rgba(245, 196, 81, .15); color: #fff0c4; border-bottom: 1px solid rgba(245, 196, 81, .35); }
.announce.danger { background: rgba(239, 68, 68, .16); color: #ffd6d6; border-bottom: 1px solid rgba(239, 68, 68, .35); }
.announce a.announce-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce .announce-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 4px; }
.announce .announce-x:hover { opacity: 1; }
.announce .announce-x svg { width: 16px; height: 16px; }

/* ── Hero art canvas ── */
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Disclaimer ── */
.disclaimer { font-size: 12.5px; color: var(--dim); line-height: 1.6; }

/* ── Emoji images (Apple / Twitter style, chosen by the admin) ── */
img.emoji { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.25em; margin: 0 .04em; object-fit: contain; pointer-events: none; user-select: text; }
html[data-grid="off"] .grid-bg, html[data-grid="off"] .hero-grid { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
