:root {
  --ios-bg: #020812;
  --ios-bg-2: #06111f;
  --ios-panel: rgba(8, 20, 34, .94);
  --ios-panel-2: rgba(11, 27, 45, .92);
  --ios-panel-3: rgba(16, 36, 57, .84);
  --ios-text: #f4f8ff;
  --ios-soft: #d6e4f5;
  --ios-muted: #8da0b8;
  --ios-faint: #53687f;
  --ios-border: rgba(118, 156, 205, .16);
  --ios-border-strong: rgba(102, 171, 255, .34);
  --ios-blue: #2997ff;
  --ios-blue-2: #174bff;
  --ios-green: #4ade80;
  --ios-green-2: #22c55e;
  --ios-yellow: #facc15;
  --ios-orange: #fb923c;
  --ios-red: #ff4d5e;
  --ios-purple: #8b5cf6;
  --ios-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.03);
  --ios-radius: 16px;
  --ios-radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(.ios-shell) { background: #020812; }
.ios-shell,
.ios-shell * { box-sizing: border-box; }
.ios-shell {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ios-text);
  background:
    radial-gradient(circle at 8% 2%, rgba(41,151,255,.22), transparent 26rem),
    radial-gradient(circle at 75% 0%, rgba(34,197,94,.09), transparent 28rem),
    linear-gradient(180deg, #020812 0%, #06111f 52%, #030914 100%);
}
.ios-shell a { color: inherit; text-decoration: none; }
.ios-shell button,
.ios-shell input { font-family: inherit; }
.ios-shell h1,
.ios-shell h2,
.ios-shell h3,
.ios-shell h4,
.ios-shell p { margin-top: 0; }

.ios-pro-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
}
.ios-icon-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 12px;
  background: linear-gradient(180deg, rgba(3, 12, 24, .96), rgba(4, 13, 25, .90));
  border-right: 1px solid rgba(130, 175, 232, .14);
  z-index: 30;
}
.ios-rail-logo,
.ios-mark {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}
.ios-rail-logo { width: 42px; height: 42px; margin-bottom: 8px; }
.ios-rail-logo span,
.ios-mark span { display:block; width: 7px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #72a7ff, #174bff); box-shadow: 0 0 18px rgba(41,151,255,.45); }
.ios-rail-logo span:nth-child(1), .ios-mark span:nth-child(1) { height: 15px; }
.ios-rail-logo span:nth-child(2), .ios-mark span:nth-child(2) { height: 26px; }
.ios-rail-logo span:nth-child(3), .ios-mark span:nth-child(3) { height: 36px; }
.ios-icon-rail a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #7f95b0;
  border: 1px solid transparent;
  font-weight: 800;
  transition: .18s ease;
}
.ios-icon-rail a:hover,
.ios-icon-rail a.active {
  color: #eaf3ff;
  background: rgba(41,151,255,.16);
  border-color: rgba(41,151,255,.25);
  box-shadow: 0 0 26px rgba(41,151,255,.13);
}
.ios-rail-spacer { flex: 1; }

.ios-main {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px;
}
.ios-pro-main {
  border: 1px solid rgba(97, 151, 225, .20);
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(9, 20, 34, .76), rgba(5, 13, 24, .54)),
    radial-gradient(circle at 15% 15%, rgba(41,151,255,.12), transparent 26rem),
    radial-gradient(circle at 78% 8%, rgba(74,222,128,.08), transparent 24rem);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), var(--ios-shadow);
}

.ios-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.ios-brandline {
  display:flex;
  gap: 18px;
  align-items:center;
  min-width: 0;
}
.ios-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.ios-brandline h1 {
  color: var(--ios-text);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0;
  text-transform: uppercase;
}
.ios-brandline p {
  color: var(--ios-muted);
  margin: 4px 0 0;
  font-size: 14px;
  letter-spacing: .01em;
}
.ios-top-actions { display:flex; align-items:center; gap: 14px; }
.ios-alert-badge {
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border:1px solid rgba(250,204,21,.25);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(250,204,21,.10), rgba(250,204,21,.04));
  min-width: 140px;
}
.ios-alert-badge > span,
.ios-strip-icon.dot {
  width: 15px; height: 15px; border-radius: 99px; display:inline-block; background: var(--ios-yellow); box-shadow:0 0 22px rgba(250,204,21,.45);
}
.ios-alert-badge small,
.ios-status-strip small {
  display:block;
  color: var(--ios-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.ios-alert-badge strong { color: var(--ios-yellow); font-size: 17px; text-transform: uppercase; }
.ios-updated { text-align:right; color: var(--ios-soft); font-size: 13px; min-width: 175px; }
.ios-updated small { display:block; color: var(--ios-muted); margin-top: 3px; }
.ios-icon-button {
  width: 43px;
  height: 43px;
  border-radius: 999px;
  border: 1px solid var(--ios-border);
  background: rgba(255,255,255,.04);
  color: var(--ios-soft);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.ios-mobile-menu { display:none; }
.ios-tabnav {
  display:grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 20px;
  border:1px solid rgba(93, 137, 193, .13);
  border-radius: 13px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(17,35,55,.76), rgba(10,25,42,.70));
}
.ios-tabnav a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 54px;
  padding: 0 12px;
  color: #a7b6c9;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.04);
  position:relative;
}
.ios-tabnav a:last-child { border-right: 0; }
.ios-tabnav a.active,
.ios-tabnav a:hover { color: #fff; background: rgba(41,151,255,.08); }
.ios-tabnav a.active::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background: linear-gradient(90deg, #174bff, #36a8ff);
  box-shadow: 0 0 18px rgba(41,151,255,.7);
}

.ios-command-center,
.ios-card,
.ios-results,
.investmentos-content-card {
  border: 1px solid var(--ios-border);
  background:
    linear-gradient(180deg, rgba(13, 29, 47, .92), rgba(7, 18, 31, .91)),
    radial-gradient(circle at top left, rgba(41,151,255,.07), transparent 18rem);
  border-radius: var(--ios-radius);
  box-shadow: var(--ios-shadow);
}
.ios-command-center {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  padding: 20px;
  margin-bottom: 18px;
}
.ios-command-center h2 {
  color: #fff;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height:1.05;
  letter-spacing:-.04em;
  margin:0 0 8px;
}
.ios-eyebrow {
  color: #59b8ff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 950;
  margin: 0 0 8px;
}
.ios-muted { color: var(--ios-muted); line-height:1.55; margin:0; }
.ios-analysis-bar {
  display:grid;
  grid-template-columns:minmax(260px, 1fr) auto;
  gap:10px;
  min-width: min(520px, 100%);
}
.ios-shell input,
.ios-shell button,
.ios-button {
  border: 1px solid var(--ios-border);
  border-radius: 13px;
  min-height: 48px;
  padding: 12px 15px;
  font-size: 14px;
}
.ios-shell input {
  background: rgba(255,255,255,.055);
  color: var(--ios-text);
  outline: none;
}
.ios-shell input::placeholder { color: rgba(210,226,245,.52); }
.ios-shell input:focus { border-color: rgba(41,151,255,.60); box-shadow:0 0 0 4px rgba(41,151,255,.10); }
.ios-shell button,
.ios-button {
  background: linear-gradient(135deg, #1d6bff, #0aa4ff);
  color:white;
  cursor:pointer;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.ios-shell button:hover { transform: translateY(-1px); filter:brightness(1.05); }
.ios-secondary { background: rgba(255,255,255,.075) !important; }

.ios-dashboard-grid {
  display:grid;
  grid-template-columns: 1.02fr 1.10fr 1.18fr;
  gap: 16px;
  align-items: stretch;
}
.ios-card { padding: 18px; min-width: 0; }
.ios-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap: 14px; margin-bottom: 14px; }
.ios-card-head.compact { align-items:center; }
.ios-card h3 {
  color: #f8fbff;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0;
}
.ios-card-note { color: var(--ios-muted); font-size: 11px; font-weight: 700; }
.ios-card-link {
  display:inline-block;
  color: #48b7ff;
  margin-top: 12px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing:.04em;
}

.ios-market-card { min-height: 438px; }
.ios-market-list { display:grid; gap: 13px; }
.ios-market-row {
  display:grid;
  grid-template-columns: minmax(80px, 1fr) 110px 100px;
  gap: 10px;
  align-items:center;
  padding-bottom: 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.ios-market-row:last-child { border-bottom:0; }
.ios-market-row strong { color:#fff; font-size: 14px; }
.ios-market-row .ios-price { color:#fff; text-align:right; font-weight: 800; }
.ios-market-row .ios-change { text-align:right; font-weight: 900; font-size: 14px; }
.ios-sparkline { width: 100%; height: 24px; display:block; grid-column: 1 / 3; margin-top: 4px; }
.ios-market-label { display:grid; gap: 3px; }
.ios-sparkline path,
.ios-mini-chart path { fill:none; stroke: var(--ios-green); stroke-width: 2.4; stroke-linecap:round; stroke-linejoin:round; filter: drop-shadow(0 0 6px rgba(74,222,128,.22)); }
.ios-sparkline.negative path { stroke: var(--ios-red); filter: drop-shadow(0 0 6px rgba(255,77,94,.22)); }
.ios-loading-line { color: var(--ios-muted); padding: 18px; border:1px dashed var(--ios-border); border-radius: 12px; }
.ios-positive { color: var(--ios-green) !important; }
.ios-negative { color: var(--ios-red) !important; }
.ios-neutral { color: var(--ios-muted) !important; }

.ios-portfolio-card { min-height: 438px; }
.ios-portfolio-metrics {
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-top:1px solid rgba(255,255,255,.07);
  border-left:1px solid rgba(255,255,255,.07);
  margin-bottom: 18px;
}
.ios-portfolio-metrics div { padding: 15px; border-right:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.07); }
.ios-portfolio-metrics span { display:block; color: var(--ios-muted); font-size: 11px; }
.ios-portfolio-metrics strong { display:block; color:#fff; font-size: clamp(17px, 1.5vw, 25px); margin-top:5px; }
.ios-portfolio-metrics small { color: var(--ios-muted); font-size: 12px; }
.ios-asset-wrap { display:grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items:center; }
.ios-donut {
  width: 168px; height:168px; border-radius:50%;
  background: conic-gradient(#2185d6 0 68.4%, #8b5cf6 68.4% 80.7%, #f59e0b 80.7% 90.4%, #4ade80 90.4% 98.3%, #94a3b8 98.3% 100%);
  position:relative;
  box-shadow: inset 0 0 24px rgba(0,0,0,.42), 0 0 30px rgba(33,133,214,.16);
}
.ios-donut::after { content:""; position:absolute; inset:38px; border-radius:50%; background:#071827; box-shadow: inset 0 0 18px rgba(0,0,0,.45); }
.ios-allocation { display:grid; gap: 12px; }
.ios-allocation span { display:flex; align-items:center; gap:8px; color: var(--ios-soft); font-size: 13px; }
.ios-allocation strong { margin-left:auto; color:#fff; }
.ios-allocation i { width:12px; height:12px; border-radius:99px; display:inline-block; }
.ios-allocation .b { background:#2185d6; } .ios-allocation .p { background:#8b5cf6; } .ios-allocation .o { background:#f59e0b; } .ios-allocation .g { background:#4ade80; } .ios-allocation .s { background:#94a3b8; }

.ios-scorecard-card { min-height: 438px; }
.ios-gauge {
  --score: 72;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  margin: 12px auto 18px;
  position:relative;
  display:grid;
  place-items:end center;
  padding-bottom: 9px;
  color:#fff;
}
.ios-gauge::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius: 220px 220px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--ios-green) calc(var(--score) * .5%), rgba(55,74,92,.46) 0 50%, transparent 0);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 54%, #000 55% 69%, transparent 70%);
  mask: radial-gradient(circle at 50% 100%, transparent 0 54%, #000 55% 69%, transparent 70%);
  filter: drop-shadow(0 0 14px rgba(74,222,128,.22));
}
.ios-gauge span { font-size: 38px; font-weight: 900; letter-spacing:-.05em; z-index:1; }
.ios-gauge span small { font-size: 15px; color: var(--ios-muted); margin-left:2px; }
.ios-gauge strong { z-index:1; text-transform:uppercase; color: var(--ios-green); font-size: 15px; margin-top:2px; }
.ios-gauge.small { width: 116px; margin:0; }
.ios-gauge.small span { font-size: 23px; }
.ios-gauge.small strong { font-size: 11px; }
.ios-meter-list { display:grid; gap: 9px; }
.ios-meter-list div { display:grid; grid-template-columns: 112px 1fr 54px; gap: 10px; align-items:center; color: var(--ios-soft); font-size: 12px; }
.ios-meter-list i { height:4px; border-radius:9px; background: linear-gradient(90deg, #63e559, #2997ff); position:relative; overflow:hidden; }
.ios-meter-list i::after { content:""; position:absolute; left:var(--w); right:0; top:0; bottom:0; background: rgba(255,255,255,.12); }
.ios-meter-list strong { color:#cbd8e8; text-align:right; font-weight: 700; }

.ios-heatmap { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); grid-auto-rows: 75px; gap: 4px; }
.ios-heat-tile { border:1px solid rgba(255,255,255,.06); border-radius: 7px; padding: 10px; display:flex; flex-direction:column; justify-content:center; background: rgba(34,197,94,.15); overflow:hidden; }
.ios-heat-tile.large { grid-column: span 2; grid-row: span 2; align-items:center; text-align:center; }
.ios-heat-tile.medium { grid-column: span 2; }
.ios-heat-tile.negative { background: rgba(255,77,94,.20); }
.ios-heat-tile strong { color:#fff; font-size: 26px; line-height:1; }
.ios-heat-tile.medium strong { font-size: 18px; }
.ios-heat-tile:not(.large):not(.medium) strong { font-size: 15px; }
.ios-heat-tile em { font-style:normal; color: var(--ios-green); font-weight: 800; margin-top: 7px; }
.ios-heat-tile.negative em { color: #ff7a87; }
.ios-heat-tile small { color: rgba(244,248,255,.68); margin-top: 7px; }

.ios-news-list, .ios-econ-list, .ios-events-list { display:grid; gap:0; }
.ios-news-list div { display:grid; grid-template-columns: 24px 1fr 42px; gap: 10px; align-items:center; padding: 11px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.ios-news-list div:last-child, .ios-events-list div:last-child, .ios-econ-list div:last-child { border-bottom:0; }
.ios-news-list p { margin:0; color: var(--ios-soft); font-size: 13px; line-height: 1.35; }
.ios-news-list small { display:block; color: var(--ios-muted); font-size: 12px; margin-top:2px; }
.ios-news-list time { color: var(--ios-muted); font-size: 11px; text-align:right; }
.ios-news-icon { width:18px; height:18px; display:grid; place-items:center; border-radius:4px; color:#06111f; font-size:11px; font-weight:900; }
.ios-news-icon.green { background: var(--ios-green); } .ios-news-icon.yellow { background: var(--ios-yellow); } .ios-news-icon.blue { background: #38bdf8; } .ios-news-icon.red { background: var(--ios-red); } .ios-news-icon.orange { background: var(--ios-orange); }
.ios-econ-list div, .ios-events-list div { display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 13px 0; border-bottom:1px solid rgba(255,255,255,.06); color: var(--ios-soft); font-size: 13px; }
.ios-econ-list strong, .ios-events-list time { color:#fff; font-weight: 800; }
.ios-events-list time { color: var(--ios-muted); font-weight: 600; white-space: nowrap; }

.ios-watch-card { grid-column: span 2; }
.ios-watch-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ios-watch-table { width: 100%; min-width: 770px; border-collapse: collapse; }
.ios-watch-table th { color: var(--ios-muted); text-align:left; font-size: 11px; text-transform:uppercase; letter-spacing:.08em; padding: 9px 7px; border-bottom:1px solid rgba(255,255,255,.08); }
.ios-watch-table td { padding: 10px 7px; border-bottom:1px solid rgba(255,255,255,.055); color: var(--ios-soft); font-size: 13px; vertical-align:middle; }
.ios-watch-table tr:last-child td { border-bottom:0; }
.ios-watch-table strong { color:#fff; font-size: 15px; }
.ios-rating { font-weight: 900; text-transform:uppercase; font-size: 12px; }
.ios-rating.buy { color: var(--ios-green); }
.ios-rating.hold { color: var(--ios-yellow); }
.ios-rating.review { color: #38bdf8; }
.ios-mini-button { min-height: 34px !important; padding: 8px 10px !important; border-radius: 9px !important; background: rgba(255,255,255,.055) !important; font-size: 12px !important; }
.ios-table-spark { width: 84px; height: 24px; display:block; }
.ios-table-spark path { fill:none; stroke: var(--ios-green); stroke-width:2; stroke-linecap:round; }
.ios-table-spark.negative path { stroke: var(--ios-red); }

.ios-status-strip {
  display:grid;
  grid-template-columns: 1.05fr 1.05fr 1fr 1fr 1.1fr;
  gap: 0;
  margin: 16px 0;
  border: 1px solid var(--ios-border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(14,34,54,.88), rgba(8,24,40,.86));
  overflow:hidden;
  box-shadow: var(--ios-shadow);
}
.ios-status-strip > div { display:flex; gap: 13px; align-items:center; min-height: 70px; padding: 14px 20px; border-right:1px solid rgba(255,255,255,.07); }
.ios-status-strip > div:last-child { border-right:0; }
.ios-status-strip p { margin:0; }
.ios-status-strip strong { color:#fff; font-size: 15px; }
.ios-strip-icon.bars { width:24px; height:24px; background: linear-gradient(90deg, transparent 0 20%, #38bdf8 20% 36%, transparent 36% 45%, #38bdf8 45% 61%, transparent 61% 70%, #38bdf8 70% 86%, transparent 86%); display:block; filter: drop-shadow(0 0 8px rgba(56,189,248,.35)); }
.ios-strip-icon.ring { width:25px; height:25px; border-radius:50%; border: 4px solid rgba(74,222,128,.18); border-top-color: var(--ios-green); display:block; box-shadow: 0 0 16px rgba(74,222,128,.18); }
.ios-strip-icon.dot.green { background: var(--ios-green); box-shadow: 0 0 20px rgba(74,222,128,.45); }
.ios-strip-icon.clock { width:22px; height:22px; border:2px solid var(--ios-muted); border-radius:6px; display:block; position:relative; }
.ios-strip-icon.clock::after { content:""; position:absolute; width:7px; height:2px; background:var(--ios-muted); left:7px; top:9px; transform: rotate(-90deg); transform-origin:left center; }

.ios-manage-card, .ios-daily-card, .ios-framework, .ios-results { margin-top: 16px; }
.ios-ticker-form { display:grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 10px; }
.ios-watchlist { display:grid; gap:10px; margin-top: 16px; }
.ios-watch-item { display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid var(--ios-border); background: rgba(255,255,255,.04); border-radius:14px; padding: 12px; }
.ios-watch-item strong { display:block; color:#fff; }
.ios-watch-item small { color:var(--ios-muted); }
.ios-watch-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ios-watch-actions button { min-height: 38px; padding: 8px 10px; border-radius:10px; font-size: 12px; }

.ios-results { padding: 20px; }
.ios-hidden { display:none !important; }
.ios-result-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.ios-result-head h2 { margin:0; color:#fff; font-size: clamp(24px, 3vw, 42px); letter-spacing:-.05em; }
.ios-score-strip { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.ios-score-card { border:1px solid var(--ios-border); background: rgba(255,255,255,.04); border-radius: 14px; padding:14px; }
.ios-score-card span { color:var(--ios-muted); display:block; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.ios-score-card strong { color:#fff; font-size: 32px; display:block; line-height:1; margin-top:7px; }
.ios-score-card small { color: var(--ios-muted); display:block; margin-top:7px; }
.ios-tabs { display:flex; gap: 8px; overflow-x:auto; padding-bottom: 12px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.ios-tabs button { background: rgba(255,255,255,.055); min-height: 38px; padding: 8px 13px; border-radius:999px; white-space:nowrap; font-size:12px; }
.ios-tabs button.active { background: rgba(41,151,255,.20); border-color: rgba(41,151,255,.42); }
.ios-tab-content { border:1px solid var(--ios-border); background: rgba(0,0,0,.17); border-radius:16px; padding: 16px; overflow:auto; }
.ios-kv-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.ios-kv { border:1px solid var(--ios-border); background: rgba(255,255,255,.04); border-radius: 14px; padding: 12px; }
.ios-kv span { color: var(--ios-muted); display:block; font-size:11px; text-transform:uppercase; font-weight: 900; letter-spacing:.08em; margin-bottom: 6px; }
.ios-kv strong { color:#fff; overflow-wrap:anywhere; }
.ios-shell pre { white-space: pre-wrap; color: #dcecff; line-height:1.55; font-size: 13px; margin: 0; overflow-wrap:anywhere; }
.ios-brief { margin-top: 16px; }
.ios-brief-row { border:1px solid var(--ios-border); background:rgba(255,255,255,.04); border-radius:14px; padding: 14px; margin-bottom: 10px; }
.ios-brief-row strong { color:#fff; }
.ios-brief-row p { margin: 8px 0 0; color: var(--ios-muted); }

.ios-widget-board {
  display:grid;
  grid-template-columns: 1.35fr .9fr .7fr 1fr;
  gap: 24px;
  align-items:start;
  padding: 24px;
  margin-top: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
  color: #0e1726;
}
.ios-phone-widget h4 { margin: 0 0 12px; text-transform:uppercase; font-size: 14px; letter-spacing:.02em; color:#0f172a; text-align:center; }
.ios-phone-card,
.ios-mobile-deep {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7,18,31,.98), rgba(3,12,23,.98)),
    radial-gradient(circle at 30% 10%, rgba(41,151,255,.14), transparent 16rem);
  color: var(--ios-text);
  border:1px solid rgba(112,148,194,.28);
  box-shadow: 0 18px 34px rgba(6, 14, 26, .28), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 16px;
}
.ios-phone-card header,
.ios-mobile-deep header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom: 12px; }
.ios-phone-card header strong,
.ios-mobile-deep header strong { color:#fff; text-transform:uppercase; font-size:13px; }
.ios-phone-card header small,
.ios-mobile-deep header small { color: var(--ios-muted); text-transform:none; }
.ios-phone-card header span { color:#fff; font-size:12px; }
.ios-phone-grid { display:grid; grid-template-columns: 1.2fr .9fr; gap: 10px; }
.ios-phone-grid > div { border:1px solid rgba(255,255,255,.10); border-radius:12px; padding:10px; }
.ios-phone-card small { color: var(--ios-muted); text-transform:uppercase; font-weight:800; font-size:10px; }
.ios-phone-card p { margin:8px 0; color:var(--ios-soft); display:flex; justify-content:space-between; gap:8px; font-size:12px; }
.ios-phone-card em { font-style:normal; }
.ios-phone-total { display:block; color:#fff; font-size: 25px; letter-spacing:-.04em; }
.ios-mini-chart { width:100%; height:42px; display:block; margin-top: 6px; }
.ios-phone-card footer { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.ios-phone-card footer span { border:1px solid rgba(255,255,255,.10); border-radius:10px; padding: 9px; color:#dbeafe; text-transform:uppercase; font-size:11px; font-weight:900; }
.ios-phone-card footer span.yellow { color: var(--ios-yellow); }
.ios-phone-widget.medium .ios-phone-card footer { grid-template-columns: 1fr 1fr; }
.ios-phone-widget.small .ios-phone-card footer { grid-template-columns: 1fr; }
.ios-mobile-deep { min-height: 420px; }
.ios-mobile-deep header button { min-height:auto; width: 28px; height: 28px; border-radius:50%; background:rgba(255,255,255,.06); padding:0; }
.ios-mobile-price { color:#fff; font-size: 24px; font-weight:900; margin-bottom: 12px; }
.ios-mobile-price em { font-style:normal; font-size:14px; margin-left:6px; }
.ios-mobile-deep nav { display:flex; gap:16px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.ios-mobile-deep nav span { padding-bottom: 9px; color: var(--ios-muted); text-transform:uppercase; font-size:10px; font-weight:900; }
.ios-mobile-deep nav span.active { color:#fff; border-bottom:2px solid var(--ios-blue); }
.ios-mobile-score { display:grid; grid-template-columns: 116px 1fr; gap: 12px; }
.ios-mobile-score > div:last-child { border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px; }
.ios-mobile-score p,
.ios-key-metrics p { display:flex; justify-content:space-between; gap:8px; margin:0; padding:7px 0; border-bottom:1px solid rgba(255,255,255,.06); color: var(--ios-muted); font-size:12px; }
.ios-mobile-score p:last-child,
.ios-key-metrics p:last-child { border-bottom:0; }
.ios-mobile-score strong,
.ios-key-metrics strong { color:#fff; }
.ios-key-metrics { margin-top: 14px; }

.ios-framework-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.ios-framework-grid div { border:1px solid var(--ios-border); background:rgba(255,255,255,.04); border-radius:14px; padding: 16px; }
.ios-framework-grid strong { display:block; color:#fff; margin-bottom: 7px; }
.ios-framework-grid span { color:var(--ios-muted); line-height:1.5; }
.ios-disclaimer { color: var(--ios-muted); margin: 18px 0 0; line-height:1.55; }
.ios-toast { position:fixed; right:22px; bottom:22px; padding:14px 16px; border-radius:14px; background:#0b1422; border:1px solid var(--ios-border); color:#fff; box-shadow:var(--ios-shadow); z-index:99999; }

.investmentos-wp-page { min-height:100vh; padding:30px; background:var(--ios-bg); color:var(--ios-text); }
.investmentos-content-card { max-width:980px; margin:0 auto; padding:30px; }
.investmentos-entry-content { color:var(--ios-muted); line-height:1.7; }

@media (max-width: 1320px) {
  .ios-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .ios-scorecard-card { grid-column: span 2; }
  .ios-watch-card { grid-column: span 2; }
  .ios-widget-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .ios-pro-shell { grid-template-columns: 1fr; }
  .ios-icon-rail { position:relative; height:auto; flex-direction:row; justify-content:center; padding:10px; overflow-x:auto; }
  .ios-rail-spacer { display:none; }
  .ios-topbar { align-items:flex-start; flex-direction:column; }
  .ios-top-actions { width:100%; flex-wrap:wrap; }
  .ios-updated { text-align:left; margin-left:auto; }
  .ios-tabnav { grid-template-columns: repeat(3, 1fr); }
  .ios-command-center { flex-direction:column; align-items:stretch; }
  .ios-analysis-bar { min-width:0; }
}
@media (max-width: 820px) {
  .ios-main { padding: 14px; }
  .ios-pro-main { border-radius: 0; border-left:0; border-right:0; }
  .ios-brandline h1 { font-size: 22px; }
  .ios-brandline p { font-size: 12px; }
  .ios-mobile-menu { display:inline-flex; width:100%; margin-bottom:10px; }
  .ios-tabnav { display:none; grid-template-columns: 1fr 1fr; }
  .ios-tabnav.open { display:grid; }
  .ios-dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
  .ios-card, .ios-command-center, .ios-results { border-radius: 15px; padding: 15px; }
  .ios-market-card, .ios-portfolio-card, .ios-scorecard-card { min-height:auto; }
  .ios-scorecard-card, .ios-watch-card { grid-column: auto; }
  .ios-asset-wrap { grid-template-columns: 1fr; justify-items:center; }
  .ios-donut { width:150px; height:150px; }
  .ios-status-strip { grid-template-columns: 1fr; }
  .ios-status-strip > div { border-right:0; border-bottom:1px solid rgba(255,255,255,.07); }
  .ios-status-strip > div:last-child { border-bottom:0; }
  .ios-ticker-form, .ios-analysis-bar { grid-template-columns: 1fr; }
  .ios-score-strip, .ios-kv-grid, .ios-framework-grid { grid-template-columns: 1fr; }
  .ios-result-head { flex-direction:column; }
  .ios-result-head button, #iosBriefBtn { width:100%; }
  .ios-watch-item { flex-direction:column; align-items:flex-start; }
  .ios-watch-actions, .ios-watch-actions button { width:100%; }
  .ios-widget-board { grid-template-columns: 1fr; padding: 16px; }
  .ios-phone-card footer { grid-template-columns: 1fr; }
  .ios-mobile-score { grid-template-columns: 1fr; }
  .ios-toast { left:16px; right:16px; bottom:16px; }
}
@media (max-width: 520px) {
  .ios-icon-rail a { width: 36px; height: 36px; }
  .ios-top-actions { display:grid; grid-template-columns: 1fr 1fr; }
  .ios-alert-badge, .ios-updated { min-width:0; }
  .ios-icon-button { display:none; }
  .ios-tabnav { grid-template-columns: 1fr; }
  .ios-market-row { grid-template-columns: 1fr 88px; }
  .ios-market-row .ios-change { grid-column: 2; }
  .ios-sparkline { grid-column: 1 / -1; }
  .ios-portfolio-metrics { grid-template-columns: 1fr; }
  .ios-heatmap { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 86px; }
  .ios-heat-tile.large, .ios-heat-tile.medium { grid-column: span 1; grid-row: span 1; }
  .ios-heat-tile strong { font-size: 18px !important; }
}
