/* =========================================================================
   Galactic Stock Exchange 2.0 – Trading-Terminal
   ========================================================================= */
.gx, #gx-tour {
  --gx-up: #16c784; --gx-down: #ea3943; --gx-bg: #070b14; --gx-card: rgba(13, 19, 32, .92);
  --gx-line: rgba(120, 150, 200, .13); --gx-line2: rgba(120, 150, 200, .22); --gx-dim: #7d8aa3; --gx-txt: #d8e1f0;
  font-variant-numeric: tabular-nums; color: var(--gx-txt);
}
.gx .up { color: var(--gx-up); } .gx .down { color: var(--gx-down); }
.gx button { font: inherit; color: inherit; }

/* Laufband */
.gx-ticker { position: relative; overflow: hidden; border: 1px solid var(--gx-line); border-radius: 10px; background: linear-gradient(90deg, #050810, #0b1120 50%, #050810); height: 34px; margin-bottom: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gx-tape { height: 100%; }
.gx-tape-in { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: gxTape var(--gx-dur, 60s) linear infinite; }
.gx-ticker:hover .gx-tape-in { animation-play-state: paused; }
@keyframes gxTape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gx-ti { font-size: .8rem; padding: 0 12px; color: var(--gx-txt); }
.gx-ti b { color: #fff; font-family: var(--font-display); letter-spacing: .05em; }
.gx-ti em { font-style: normal; font-size: .76rem; }
.gx-tn { color: var(--gx-dim); } .gx-tn.up { color: #9ee8c6; } .gx-tn.down { color: #f5a3aa; } .gx-tn.crash { color: #ff6b6b; font-weight: 700; } .gx-tn.ipo { color: var(--gold); }
.gx-dot { font-style: normal; color: rgba(47, 224, 228, .35); font-size: .55rem; }

/* Kopf */
.gx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.gx-brand { display: flex; align-items: center; gap: 12px; }
.gx-logo { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; color: #04121a; background: linear-gradient(135deg, #2fe0e4, #16c784); padding: 10px 11px; border-radius: 12px; box-shadow: 0 0 24px rgba(47, 224, 228, .35); }
.gx-brand h1 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; line-height: 1.1; }
.gx-brand small { color: var(--gx-dim); font-size: .8rem; }
.gx-brand small b { color: var(--gx-txt); }
.gx-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gx-up); margin-right: 7px; box-shadow: 0 0 0 0 rgba(22, 199, 132, .6); animation: gxPulse 1.8s infinite; vertical-align: 1px; }
@keyframes gxPulse { 70% { box-shadow: 0 0 0 8px rgba(22, 199, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0); } }
.gx-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.gx-kpi { background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 12px; padding: 8px 14px; min-width: 130px; display: flex; flex-direction: column; gap: 2px; }
.gx-kpi small { color: var(--gx-dim); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.gx-kpi b { font-size: 1.05rem; color: #fff; }
.gx-kpi .gx-dl { display: block; font-style: normal; font-size: .68rem; color: var(--gx-dim); cursor: help; margin-top: 2px; }
.gx-kpi b.up { color: var(--gx-up); } .gx-kpi b.down { color: var(--gx-down); }
.gx-kpi span { font-size: .74rem; color: var(--gx-dim); }
.gx-mini { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.gx-mini i { display: block; height: 100%; background: linear-gradient(90deg, #2fe0e4, #16c784); }

/* Raster */
.gx-main { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.gx-center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gx-bottom { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.gx-card { background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.gx-h { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 2px 4px 10px; }
.gx-h small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .74rem; color: var(--gx-dim); }
.gx-h2 { margin-top: 16px; }
.gx-empty { color: var(--gx-dim); font-size: .84rem; padding: 6px 4px; margin: 0; }

/* Watchlist */
.gx-watch { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.gx-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 58px auto; gap: 8px; align-items: center; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.gx-row:hover { background: rgba(255,255,255,.035); }
.gx-row.on { background: linear-gradient(90deg, color-mix(in srgb, var(--co) 16%, transparent), rgba(255,255,255,.02)); border-color: color-mix(in srgb, var(--co) 45%, transparent); }
.gx-ava { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; font-style: normal;
  background: color-mix(in srgb, var(--co, #2fe0e4) 18%, #0b1120); border: 1px solid color-mix(in srgb, var(--co, #2fe0e4) 40%, transparent); flex: none; }
.gx-ava.big { width: 54px; height: 54px; font-size: 1.8rem; border-radius: 14px; }
.gx-ava.sm { width: 22px; height: 22px; font-size: .8rem; border-radius: 6px; margin-right: 6px; vertical-align: middle; }
.gx-rn { display: flex; flex-direction: column; min-width: 0; }
.gx-rn b { color: #fff; font-family: var(--font-display); letter-spacing: .05em; font-size: .98rem; }
.gx-rn small { color: var(--gx-dim); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-own { color: var(--gold); font-style: normal; font-size: .6rem; vertical-align: 2px; }
.gx-spark { width: 58px; height: 26px; }
.gx-rp { display: flex; flex-direction: column; align-items: flex-end; }
.gx-rp b { color: #fff; font-size: .9rem; }
.gx-rp em { font-style: normal; font-size: .72rem; }
.gx-row.flash-up { animation: gxFlashUp 1.2s ease; } .gx-row.flash-down { animation: gxFlashDown 1.2s ease; }
@keyframes gxFlashUp { 0% { background: rgba(22, 199, 132, .28); } }
@keyframes gxFlashDown { 0% { background: rgba(234, 57, 67, .28); } }

/* Boersengang */
.gx-ipo { border: 1px dashed color-mix(in srgb, var(--co) 60%, transparent); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--co) 14%, transparent), transparent 60%); }
.gx-ipo-top { display: flex; gap: 10px; align-items: center; }
.gx-ipo-top b { color: #fff; display: block; } .gx-ipo-top small { color: var(--gx-dim); font-size: .72rem; }
.gx-ipo-rep { font-size: .7rem; color: var(--gold); margin-top: 6px; }
.gx-ipo p { font-size: .76rem; color: var(--gx-dim); margin: 6px 0; }
.gx-ipo-kv { display: flex; justify-content: space-between; font-size: .8rem; padding: 2px 0; color: var(--gx-dim); }
.gx-ipo-kv b { color: #fff; }
.gx-cd { color: var(--gold) !important; font-family: var(--font-display); font-size: .95rem; }
.gx-ipo-my { font-size: .76rem; color: var(--gx-up); margin: 6px 0; }
.gx-ipo-form { display: flex; gap: 6px; margin-top: 8px; }
.gx-ipo-form .input { flex: 1; min-width: 0; padding: 8px 10px; font-size: .85rem; }
.gx-note { display: block; color: var(--gx-dim); font-size: .68rem; margin-top: 6px; }

/* Quote */
.gx-quote { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; background: radial-gradient(120% 140% at 0 0, color-mix(in srgb, var(--co, #2fe0e4) 12%, transparent), transparent 55%), var(--gx-card); }
.gx-q-left { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.gx-q-left h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: .03em; line-height: 1.15; }
.gx-q-left h2 small { font-size: .9rem; color: var(--gx-dim); margin-left: 6px; }
.gx-q-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 5px 0; }
.gx-q-tags span { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--gx-txt); }
.gx-q-desc { margin: 0; font-size: .8rem; color: var(--gx-dim); }
.gx-risk { font-size: .66rem; padding: 1px 7px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.gx-risk.r-low { background: rgba(22, 199, 132, .16) !important; color: #5ee3a8 !important; }
.gx-risk.r-mid { background: rgba(245, 166, 35, .16) !important; color: #f7c16a !important; }
.gx-risk.r-high { background: rgba(234, 57, 67, .18) !important; color: #ff8a92 !important; }
.gx-warn { background: rgba(234, 57, 67, .22) !important; color: #ff8a92 !important; animation: gxPulse 1.8s infinite; }
.gx-q-right { text-align: right; }
.gx-q-price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: #fff; line-height: 1; }
.gx-q-price small { font-size: .9rem; color: var(--gx-dim); }
.gx-q-price.tick { animation: gxTick .8s ease; }
@keyframes gxTick { 0% { text-shadow: 0 0 18px rgba(47, 224, 228, .9); transform: scale(1.04); } }
.gx-q-chg { font-size: .95rem; margin-top: 4px; font-weight: 600; }
.gx-q-chg small { color: var(--gx-dim); font-weight: 400; }

/* Chart */
.gx-chartbox { padding: 10px 10px 6px; position: relative; }
.gx-tools { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gx-seg { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid var(--gx-line); border-radius: 10px; padding: 2px; }
.gx-seg button { background: none; border: 0; padding: 5px 11px; border-radius: 8px; font-size: .78rem; color: var(--gx-dim); cursor: pointer; }
.gx-seg button.on { background: rgba(47, 224, 228, .16); color: #fff; }
.gx-chart { position: relative; min-height: 250px; }
.gx-chart-empty { display: flex; align-items: center; justify-content: center; min-height: 250px; color: var(--gx-dim); font-size: .85rem; text-align: center; padding: 20px; }
.gx-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.gx-grid { stroke: var(--gx-line); stroke-width: 1; }
.gx-ax { fill: var(--gx-dim); font-size: 10.5px; font-family: var(--font-body); }
.gx-vol { opacity: .28; }
.gx-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.gx-now { stroke: rgba(255,255,255,.35); stroke-dasharray: 2 3; }
.gx-now-tag.up { fill: var(--gx-up); } .gx-now-tag.down { fill: var(--gx-down); }
.gx-now-txt { fill: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-body); }
.gx-hl { stroke-dasharray: 6 4; stroke-width: 1.2; }
.gx-hlt { font-size: 10.5px; font-weight: 700; font-family: var(--font-body); paint-order: stroke; stroke: #070b14; stroke-width: 3px; }
.gx-hl.avg { stroke: var(--gold); } .gx-hlt.avg { fill: var(--gold); }
.gx-hl.stop { stroke: #ff6b6b; } .gx-hlt.stop { fill: #ff6b6b; }
.gx-hl.lbuy { stroke: #5ee3a8; } .gx-hlt.lbuy { fill: #5ee3a8; }
.gx-hl.lsell { stroke: #7cc4ff; } .gx-hlt.lsell { fill: #7cc4ff; }
.gx-cr { stroke: rgba(255,255,255,.45); stroke-dasharray: 3 3; }
.gx-cr-tag { fill: #2a3448; } .gx-cr-txt { fill: #fff; font-size: 10.5px; font-family: var(--font-body); }
.gx-tip { position: absolute; top: 46px; z-index: 3; pointer-events: none; background: rgba(8, 12, 22, .96); border: 1px solid var(--gx-line2); border-radius: 10px; padding: 8px 10px; font-size: .74rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; min-width: 176px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.gx-tip b { grid-column: 1 / -1; color: #fff; margin-bottom: 3px; }
.gx-tip span { color: var(--gx-dim); } .gx-tip i { font-style: normal; color: #fff; }
.gx-tip i.up { color: var(--gx-up); } .gx-tip i.down { color: var(--gx-down); }

.gx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gx-stats > div { background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gx-stats small { color: var(--gx-dim); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-stats b { color: #fff; font-size: .9rem; }

/* Handel */
.gx-trade { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gx-side { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.04); border-radius: 12px; padding: 3px; }
.gx-side button { border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 700; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gx-dim); cursor: pointer; }
.gx-side button.on.buy { background: var(--gx-up); color: #04150d; box-shadow: 0 4px 18px rgba(22, 199, 132, .35); }
.gx-side button.on.sell { background: var(--gx-down); color: #fff; box-shadow: 0 4px 18px rgba(234, 57, 67, .35); }
.gx-otype { width: 100%; } .gx-otype button { flex: 1; }
.gx-hint { font-size: .74rem; color: var(--gx-dim); margin: 0; min-height: 2.2em; }
.gx-lbl { font-size: .7rem; color: var(--gx-dim); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.gx-inwrap { position: relative; }
.gx-inwrap .input { width: 100%; padding-right: 44px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.gx-inwrap span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gx-dim); font-size: .78rem; pointer-events: none; }
.gx-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gx-chips button { border: 1px solid var(--gx-line2); background: rgba(255,255,255,.03); border-radius: 8px; padding: 6px 0; font-size: .76rem; cursor: pointer; }
.gx-chips button:hover { border-color: #2fe0e4; color: #fff; }
.gx-sum { border-top: 1px solid var(--gx-line); border-bottom: 1px solid var(--gx-line); padding: 8px 2px; display: flex; flex-direction: column; gap: 4px; }
.gx-sum div { display: flex; justify-content: space-between; font-size: .8rem; color: var(--gx-dim); }
.gx-sum div span:last-child { color: var(--gx-txt); }
.gx-sum b { color: #fff; }
.gx-btn { border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; font-family: var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.gx-btn.big { padding: 13px; font-size: 1rem; width: 100%; }
.gx-btn.buy { background: var(--gx-up); color: #04150d; }
.gx-btn.sell { background: var(--gx-down); color: #fff; }
.gx-btn:disabled { opacity: .4; cursor: not-allowed; }
.gx-btn:not(:disabled):hover { filter: brightness(1.1); }
.gx-pos { font-size: .76rem; color: var(--gx-dim); text-align: center; }
.gx-pos b { color: #fff; }
.gx-link { background: none; border: 0; color: #7cc4ff; cursor: pointer; font-size: .76rem; text-decoration: underline; padding: 0 2px; }

/* Depot-Tabelle */
.gx-table { display: flex; flex-direction: column; }
.gx-tr { display: grid; grid-template-columns: 1.2fr .8fr .9fr .9fr 1fr 1fr; gap: 6px; align-items: center; padding: 8px 6px; border: 0; border-top: 1px solid var(--gx-line); background: none; text-align: right; font-size: .82rem; cursor: pointer; width: 100%; }
.gx-tr > span:first-child { text-align: left; color: #fff; font-weight: 700; }
.gx-tr:hover { background: rgba(255,255,255,.03); }
.gx-th { cursor: default; color: var(--gx-dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.gx-th:hover { background: none; }
.gx-tr small { display: block; font-size: .68rem; }

/* Orders */
.gx-order { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--gx-line); font-size: .82rem; }
.gx-order small { display: block; color: var(--gx-dim); font-size: .72rem; }
.gx-order b.k-limit_buy { color: #5ee3a8; } .gx-order b.k-limit_sell { color: #7cc4ff; } .gx-order b.k-stop_sell { color: #ff8a92; }
.gx-order:not(.st-open) { opacity: .6; }
.gx-st { font-size: .7rem; color: var(--gx-dim); white-space: nowrap; }
.gx-order.st-filled .gx-st { color: var(--gx-up); }

/* News */
.gx-nwlist { max-height: 360px; overflow: auto; }
.gx-nw { display: flex; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--gx-line); }
.gx-nw-e { font-size: 1.1rem; }
.gx-nw p { margin: 0; font-size: .8rem; color: var(--gx-txt); }
.gx-nw small { color: var(--gx-dim); font-size: .7rem; }
.gx-nw.crash p { color: #ff8a92; font-weight: 700; } .gx-nw.ipo p { color: var(--gold); }

/* Tour */
#gx-tour { position: fixed; inset: 0; z-index: 400; }
.gx-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(3, 6, 12, .78); border: 2px solid #2fe0e4; transition: all .35s ease; pointer-events: none; }
.gx-tcard { position: fixed; width: min(340px, calc(100vw - 20px)); background: #0d1424; border: 1px solid rgba(47, 224, 228, .5); border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.6); transition: top .3s, left .3s; }
.gx-tcard.center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); text-align: center; }
.gx-tcard small { color: #2fe0e4; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.gx-tcard h3 { margin: 4px 0 6px; font-family: var(--font-display); color: #fff; font-size: 1.25rem; }
.gx-tcard p { margin: 0 0 12px; font-size: .86rem; color: var(--gx-txt); }
.gx-tbtns { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gx-tcard.center .gx-tbtns { justify-content: center; }

/* Responsiv */
@media (max-width: 1280px) {
  .gx-main { grid-template-columns: 250px minmax(0, 1fr) 280px; }
  .gx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .gx-main { grid-template-columns: minmax(0, 1fr) 300px; }
  .gx-watch { grid-column: 1 / -1; position: static; max-height: none; }
  .gx-wl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 8px; }
  .gx-watch .gx-ipo { display: inline-block; width: calc(50% - 6px); vertical-align: top; margin-right: 8px; }
  .gx-bottom { grid-template-columns: 1fr 1fr; }
  .gx-bottom #gx-positions { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .gx-main { grid-template-columns: minmax(0, 1fr); }
  .gx-trade { position: static; }
  .gx-bottom { grid-template-columns: minmax(0, 1fr); }
  .gx-wl { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .gx-row { flex: 0 0 150px; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 2px 8px; padding: 8px; border-color: var(--gx-line); scroll-snap-align: start; }
  .gx-row .gx-ava { width: 30px; height: 30px; font-size: 1rem; grid-row: 1 / 3; }
  .gx-row .gx-rn small, .gx-row .gx-spark { display: none; }
  .gx-row .gx-rp { align-items: flex-start; }
  .gx-watch .gx-ipo { display: block; width: auto; margin-right: 0; }
  .gx-kpis { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .gx-kpi { min-width: 0; }
  .gx-brand h1 { font-size: 1.25rem; }
  .gx-q-price { font-size: 1.9rem; }
  .gx-q-right { text-align: left; }
  .gx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-tr { grid-template-columns: 1.1fr .8fr 1fr 1fr; }
  .gx-tr > span:nth-child(3), .gx-tr > span:nth-child(4) { display: none; }
  .gx-card { padding: 10px; }
}
.gx-tip[hidden] { display: none; }
.gx-h span { display: inline-flex; align-items: center; gap: 6px; }
