/*
  VERO UI FINALE OBERFLAECHE 260623
  Diese Datei wurde aus den aktiven CSS Schichtdateien in bestehender Reihenfolge erzeugt.
  Ziel: aktuelle sichtbare Form uebernehmen, bevor alte CSS Schichten weiter abgebaut werden.
  Basis Commit: 4c605ca
*/


/* ============================================================
   QUELLE: 01_basis_layout_mobile_alt.css
   ============================================================ */

:root {
  --bg: #f4f1ec;
  --panel: #fffaf3;
  --panel2: #ffffff;
  --text: #17130d;
  --muted: #786f63;
  --line: rgba(30, 24, 16, .12);
  --soft: rgba(30, 24, 16, .06);
  --accent: #2f5f52;
  --accent2: #8a6f3f;
  --danger: #8f3d2f;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(40, 32, 20, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.8), transparent 38%),
    linear-gradient(135deg, #f8f4ed, #eee7dc);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.appShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 243, .72);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandMark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brandName {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .02em;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.userCard {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.userRow {
  display: flex;
  gap: 8px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: white;
  outline: none;
}

input:focus {
  border-color: rgba(47, 95, 82, .45);
  box-shadow: 0 0 0 4px rgba(47, 95, 82, .10);
}

.userRow button,
.softBtn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 10px 14px;
}

.navList {
  display: grid;
  gap: 8px;
}

.navBtn,
.bottomBtn {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  border-radius: 15px;
}

.navBtn.active,
.bottomBtn.active {
  background: var(--text);
  color: white;
}

.marketPill {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
}

.marketPill.open {
  color: #174a21;
  background: #e6f2e3;
}

.marketPill.closed {
  color: #704a12;
  background: #fff0d8;
}

.content {
  min-width: 0;
  padding: 28px;
  padding-bottom: 90px;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.eyebrow,
.cardLabel {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  letter-spacing: -.03em;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.topStats {
  display: flex;
  gap: 10px;
}

.topStats div {
  min-width: 150px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
}

.topStats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.topStats strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.view {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
}

.view.active {
  display: block;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  min-width: 0;
  background: rgba(255,250,243,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.modeLine {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(218,184,108,.18);
  border-radius: 7px;
  background: rgba(22,21,19,.72);
  color: rgba(236,226,205,.72);
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: pre-line;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.modeLine.warning {
  border-color: rgba(218,184,108,.3);
  color: rgba(232,204,139,.82);
}

.modeLine.danger {
  border-color: rgba(220,70,70,.56);
  background: rgba(70,22,24,.9);
  color: rgba(255,224,224,.95);
}

.heroCard {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bigValue {
  font-size: clamp(38px, 7vw, 68px);
  line-height: .95;
  font-weight: 850;
  letter-spacing: -.06em;
  margin: 10px 0;
}

.cardHead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.chartHeadline {
  text-align: right;
  min-width: 210px;
}

.chartHeadline strong {
  display: block;
  font-size: 30px;
}

.chartHeadline span {
  color: var(--accent);
}

.segmented,
.rangeRow,
.paymentRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.segmented.wide {
  background: var(--soft);
  padding: 6px;
  border-radius: 18px;
}

.segBtn,
.tradeMode,
.rangeBtn,
.payBtn,
.payoutBtn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
}

.tradeMode {
  flex: 1;
}

.segBtn.active,
.tradeMode.active,
.rangeBtn.active,
.payBtn.active,
.payoutBtn.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.chartBox {
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.chartSvg {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
}

.chartGrid {
  stroke: rgba(30, 24, 16, .10);
  stroke-width: 1;
}

.chartText {
  fill: var(--muted);
  font-size: 13px;
}

.lineMain {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lineSoft {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lineUsd { stroke: #2f5f52; }
.lineEur { stroke: #6d5c9f; }
.lineChf { stroke: #a86f35; }
.lineRub { stroke: #9b4540; }

.pointDot {
  fill: var(--panel);
  stroke: var(--accent);
  stroke-width: 2;
}

.tradePanel {
  display: none;
  margin-top: 18px;
}

.tradePanel.active {
  display: block;
}

.amountRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.amountRow input {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -.05em;
  padding: 18px;
}

.amountRow span {
  font-size: 22px;
  color: var(--muted);
}

.previewBox {
  margin: 16px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
}

.previewGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.previewItem {
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
}

.previewItem span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.previewItem strong {
  display: block;
  margin-top: 4px;
}

.basketGrid,
.deckungGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.basketTile,
.deckungTile {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
}

.tileTop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  margin-top: 10px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.primaryBtn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 17px 18px;
  background: var(--text);
  color: white;
  font-weight: 750;
  font-size: 18px;
}

.notice {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
}

.notice.error {
  color: var(--danger);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeItem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeDot {
  width: 20px;
  height: 20px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(47, 95, 82, .10);
}

.timeDot.out {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(143, 61, 47, .10);
}

.timeDot.transfer {
  background: var(--accent2);
  box-shadow: 0 0 0 6px rgba(109, 92, 159, .12);
}

.timeCard {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
}

.timeCard strong {
  display: block;
}

.tableWrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  background: rgba(255,255,255,.72);
  position: sticky;
  top: 0;
}

.raw {
  overflow: auto;
  max-height: 420px;
  background: #15130f;
  color: #f4efe6;
  padding: 18px;
  border-radius: 18px;
  white-space: pre-wrap;
  font-size: 13px;
}

.raw.small {
  max-height: 180px;
}

.bottomNav {
  display: none;
}

.empty {
  color: var(--muted);
  padding: 18px;
}

@media (max-width: 900px) {
  .appShell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .navList {
    display: none;
  }

  .marketPill {
    margin-top: 0;
  }

  .content {
    padding: 18px;
    padding-bottom: 92px;
  }

  .topbar,
  .cardHead,
  .topStats,
  .heroGrid {
    display: block;
  }

  .topStats {
    margin-top: 14px;
  }

  .topStats div {
    margin-bottom: 8px;
  }

  .heroGrid {
    margin-bottom: 0;
  }

  .previewGrid,
  .basketGrid,
  .deckungGrid {
    grid-template-columns: 1fr;
  }

  .chartHeadline {
    text-align: left;
    margin-top: 12px;
  }

  .bottomNav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,250,243,.88);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }

  .bottomBtn {
    text-align: center;
    padding: 12px 6px;
  }
}


.fxLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.fxPill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.fxPill b {
  font-weight: 800;
  letter-spacing: .06em;
}

.fxPill em {
  font-style: normal;
  color: inherit;
}

.fxPill.fxUsd { color: #2f5f52; }
.fxPill.fxEur { color: #6d5c9f; }
.fxPill.fxChf { color: #a86f35; }
.fxPill.fxRub { color: #9b4540; }

.fxRangeText {
  color: var(--muted);
  font-size: 13px;
}


.lineCny { stroke: #3f7fbf; }
.lineInr { stroke: #6f8f3a; }
.lineBrl { stroke: #b88a2f; }

.fxCny { border-color: rgba(63,127,191,.35); }
.fxInr { border-color: rgba(111,143,58,.35); }
.fxBrl { border-color: rgba(184,138,47,.35); }


.lineCny { stroke: #3f7fbf; }
.lineInr { stroke: #6f8f3a; }
.lineBrl { stroke: #b88a2f; }

.fxCny {
  border-color: rgba(63,127,191,.45);
  color: #3f7fbf;
}

.fxCny b,
.fxCny em {
  color: #3f7fbf;
}

.fxInr {
  border-color: rgba(111,143,58,.45);
  color: #6f8f3a;
}

.fxInr b,
.fxInr em {
  color: #6f8f3a;
}

.fxBrl {
  border-color: rgba(184,138,47,.45);
  color: #b88a2f;
}

.fxBrl b,
.fxBrl em {
  color: #b88a2f;
}



.userActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.userActions button:disabled {
  opacity: 0.45;
  cursor: default;
}


.scrollTable {
  max-height: 305px;
  overflow: auto;
}

.scrollTable table {
  min-width: 760px;
}


.nowrap {
  white-space: nowrap;
}


.compactScroll {
  max-height: 305px;
  overflow: auto;
}

.compactScroll table {
  min-width: 760px;
}


/* sidebar scroll fix */
@media (min-width: 821px) {
  .sidebar {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }

  .sidebar::-webkit-scrollbar {
    width: 8px;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(30, 24, 16, .18);
    border-radius: 999px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    max-height: none;
    overflow: visible;
  }
}


.loginOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(246, 241, 232, .92);
  backdrop-filter: blur(8px);
}

.loginCard {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(30, 24, 16, .16);
}

.loginCard h1 {
  margin: 8px 0 18px;
  font-size: 28px;
}

.loginCard label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.loginCard input {
  width: 100%;
}

.loginMark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.loginButtons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.logoutBtn {
  margin-top: 10px;
}


.loginOverlay[hidden] {
  display: none !important;
}


.stripeModal[hidden] {
  display: none;
}

.stripeModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 12, 18, 0.56);
  display: grid;
  place-items: center;
  padding: 24px;
}

.stripeBox {
  width: min(460px, 100%);
  background: #fff;
  color: #161821;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  position: relative;
}

.stripeClose {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.stripeBrand {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.stripeText {
  opacity: 0.74;
  margin-bottom: 18px;
  line-height: 1.45;
}

.stripeAmount {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.stripeAmount span {
  opacity: 0.7;
}

.stripeAmount strong {
  font-size: 24px;
}

.stripeLabel {
  display: block;
  font-size: 13px;
  margin: 12px 0;
  opacity: 0.88;
}

.stripeLabel input {
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}

.stripeInline {
  display: flex;
  gap: 8px;
}

.stripeInline input {
  flex: 1;
}

.stripeInline button,
.stripeActions button {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 11px 14px;
  background: #f5f5f7;
  cursor: pointer;
}

.stripeActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.stripeActions button:last-child {
  background: #635bff;
  color: white;
}

.stripeMessage {
  min-height: 20px;
  color: #8a2d2d;
  font-size: 13px;
}
