@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090a0c;
  --bg-soft: #101216;
  --panel: rgba(19, 21, 26, .88);
  --panel-solid: #15171c;
  --panel-2: #1b1e24;
  --line: rgba(255,255,255,.09);
  --line-gold: rgba(224,185,79,.28);
  --text: #f4f5f7;
  --muted: #9ba1ab;
  --gold: #e0b94f;
  --gold-2: #f3d174;
  --green: #41c98e;
  --red: #ff6d78;
  --orange: #f5a94a;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
[hidden] { display: none !important; }

.ambient { position: fixed; border-radius: 50%; filter: blur(110px); opacity: .13; pointer-events: none; z-index: -1; }
.ambient-one { width: 430px; height: 430px; background: #c79d2c; top: -170px; right: -100px; }
.ambient-two { width: 360px; height: 360px; background: #76632d; left: -170px; top: 38%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,10,12,.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.brand span { display: flex; flex-direction: column; line-height: 1.35; }
.brand strong { font-size: 1rem; letter-spacing: .2px; }
.brand small { color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 28px; color: #c7cbd2; font-size: .9rem; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--gold-2); }
.beta-badge, .status-dot, .privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-gold);
  background: rgba(224,185,79,.08);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .72rem;
  white-space: nowrap;
}
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(224,185,79,.12); }

.hero { padding: 86px 0 74px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-size: .86rem; font-weight: 700; margin-bottom: 18px; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }
.hero h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: 1.23; letter-spacing: -1.6px; }
.hero h1 em { display: block; font-style: normal; color: var(--gold-2); }
.hero-copy > p { margin: 24px 0; max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.hero-points { display: grid; gap: 10px; margin: 24px 0 32px; color: #d2d5db; }
.hero-points div { display: flex; align-items: center; gap: 10px; }
.point-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #0e1915; background: var(--green); font-size: .75rem; font-weight: 900; }
.primary-link, .analyze-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-2), #c89e35);
  color: #17140a;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(224,185,79,.18);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-link { padding: 14px 20px; }
.primary-link:hover, .analyze-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(224,185,79,.24); }
.market-card {
  position: relative;
  padding: 24px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(27,30,36,.95), rgba(13,15,18,.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.market-card::after { content: ""; position: absolute; inset: auto -70px -90px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(224,185,79,.08); filter: blur(30px); }
.market-top, .market-stats { display: flex; justify-content: space-between; gap: 20px; position: relative; z-index: 2; }
.market-top small, .market-stats small { color: var(--muted); display: block; font-size: .72rem; }
.market-top strong { font-size: 1.35rem; letter-spacing: .6px; }
.mock-chart { height: 250px; position: relative; margin: 34px -24px 22px; overflow: hidden; }
.mock-chart::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right, transparent 0, transparent 79px, rgba(255,255,255,.045) 80px); }
.mock-chart svg { width: 100%; height: 100%; position: relative; z-index: 2; }
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.05); }
.g1 { top: 25%; } .g2 { top: 50%; } .g3 { top: 75%; }
.market-stats { border-top: 1px solid var(--line); padding-top: 18px; }
.market-stats strong { display: block; margin-top: 3px; font-size: .88rem; }

.analyzer-section { padding: 92px 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.section-heading { margin-bottom: 36px; }
.section-heading.centered { text-align: center; }
.section-kicker { color: var(--gold); font-size: .8rem; font-weight: 800; letter-spacing: .6px; }
.section-heading h2 { margin: 6px 0 5px; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.section-heading p { color: var(--muted); margin: 0; }
.analyzer-layout { display: grid; grid-template-columns: 1.04fr .96fr; gap: 24px; align-items: stretch; }
.upload-panel, .result-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.upload-panel { padding: 24px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-title > div { display: flex; align-items: center; gap: 12px; }
.panel-title strong, .panel-title small { display: block; }
.panel-title small { color: var(--muted); font-size: .73rem; }
.step-number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(224,185,79,.13); color: var(--gold-2); border: 1px solid var(--line-gold); font-size: .8rem; font-weight: 800; flex: 0 0 auto; }
.privacy-chip { color: #8de2bc; border-color: rgba(65,201,142,.2); background: rgba(65,201,142,.07); }
.drop-zone {
  display: block;
  min-height: 288px;
  border: 1.5px dashed rgba(224,185,79,.34);
  border-radius: 20px;
  background: rgba(224,185,79,.025);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.drop-zone:hover, .drop-zone.is-dragover { border-color: var(--gold); background: rgba(224,185,79,.055); }
.drop-zone.is-dragover { transform: scale(.995); }
.drop-empty { min-height: 288px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; }
.upload-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(224,185,79,.11); border: 1px solid var(--line-gold); margin-bottom: 14px; }
.upload-icon svg, .analyze-btn svg, .shield-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-empty strong { font-size: 1.05rem; }
.drop-empty > span:not(.upload-icon) { color: var(--muted); font-size: .85rem; margin: 5px 0 17px; }
.secondary-btn, .icon-btn, .text-btn { border: 0; cursor: pointer; }
.secondary-btn { background: #242830; color: #e9ebef; padding: 9px 16px; border-radius: 10px; }
.preview-wrap { height: 100%; min-height: 288px; position: relative; background: #08090b; }
.preview-wrap > img { width: 100%; height: 288px; object-fit: contain; }
.preview-meta { position: absolute; inset: auto 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(8,9,11,.82); backdrop-filter: blur(12px); border-radius: 12px; }
.preview-meta div { min-width: 0; }
.preview-meta strong, .preview-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-meta strong { font-size: .8rem; }
.preview-meta span { color: var(--muted); font-size: .7rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; color: #fff; background: rgba(255,109,120,.12); font-size: 1.25rem; }
.field-error { min-height: 24px; margin: 7px 2px 0; color: #ff8790; font-size: .78rem; }
.timeframe-fieldset { border: 0; margin: 12px 0 20px; padding: 0; }
.timeframe-fieldset legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.timeframe-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.timeframe-options label { cursor: pointer; }
.timeframe-options input { position: absolute; opacity: 0; pointer-events: none; }
.timeframe-options span { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 13px; background: #171a20; border: 1px solid var(--line); transition: .2s ease; }
.timeframe-options small { color: var(--muted); font-size: .67rem; }
.timeframe-options input:checked + span { border-color: var(--gold); background: rgba(224,185,79,.09); box-shadow: inset 0 0 0 1px rgba(224,185,79,.12); }
.timeframe-options input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.checklist { background: #121419; border: 1px solid var(--line); border-radius: 15px; padding: 14px; margin-bottom: 16px; }
.checklist > strong { font-size: .8rem; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin-top: 9px; }
.checklist-grid span { color: var(--muted); font-size: .73rem; position: relative; padding-right: 17px; }
.checklist-grid span::before { content: "✓"; position: absolute; right: 0; color: var(--green); font-weight: 900; }
.analyze-btn { width: 100%; min-height: 54px; font-size: 1rem; }
.analyze-btn svg { width: 20px; }
.analyze-btn:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .65; transform: none; }
.demo-notice { color: #898f98; text-align: center; font-size: .68rem; line-height: 1.6; margin: 10px 0 0; }
.result-panel { min-height: 100%; padding: 28px; display: grid; place-items: center; }
.result-placeholder, .analysis-loader { text-align: center; max-width: 390px; }
.result-orbit { width: 84px; height: 84px; position: relative; margin: 0 auto 20px; border: 1px solid var(--line-gold); border-radius: 50%; }
.result-orbit::before, .result-orbit::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 1px dashed rgba(224,185,79,.28); }
.result-orbit::after { inset: 27px; background: var(--gold); border: 0; box-shadow: 0 0 30px rgba(224,185,79,.45); }
.result-orbit span, .result-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); top: 6px; left: 38px; box-shadow: 0 0 14px rgba(224,185,79,.7); }
.result-orbit i { top: auto; left: auto; bottom: 14px; right: 9px; }
.result-placeholder h3, .analysis-loader h3 { margin: 0 0 5px; }
.result-placeholder p, .analysis-loader p { color: var(--muted); margin: 0; font-size: .88rem; }
.placeholder-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.placeholder-list span { border: 1px solid var(--line); background: #14171c; border-radius: 10px; color: #aeb3bc; padding: 9px; font-size: .72rem; }
.loader-ring { width: 70px; height: 70px; margin: 0 auto 20px; border: 4px solid rgba(224,185,79,.12); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track, .confidence-track { height: 7px; border-radius: 999px; background: #282c34; overflow: hidden; }
.progress-track { margin: 20px auto 9px; width: min(320px, 100%); }
.progress-track span, .confidence-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #bd9230, var(--gold-2)); transition: width .45s ease; }
.analysis-loader small { color: #777d87; }
.analysis-result { width: 100%; align-self: stretch; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-label { color: var(--muted); font-size: .72rem; }
.result-head h3 { margin: 2px 0 0; font-size: 2rem; }
.decision-badge { border-radius: 999px; padding: 8px 12px; font-size: .73rem; font-weight: 800; letter-spacing: .7px; }
.decision-badge.buy { color: #8be0b9; background: rgba(65,201,142,.1); border: 1px solid rgba(65,201,142,.25); }
.decision-badge.sell { color: #ff929a; background: rgba(255,109,120,.09); border: 1px solid rgba(255,109,120,.23); }
.decision-badge.wait { color: #ffd18a; background: rgba(245,169,74,.09); border: 1px solid rgba(245,169,74,.23); }
.confidence-row { display: flex; justify-content: space-between; gap: 15px; margin: 22px 0 8px; color: var(--muted); font-size: .77rem; }
.confidence-row strong { color: var(--text); }
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.trade-grid div { padding: 14px; border: 1px solid var(--line); background: #13161b; border-radius: 13px; }
.trade-grid small, .trade-grid strong { display: block; }
.trade-grid small { color: var(--muted); font-size: .7rem; }
.trade-grid strong { margin-top: 4px; font-size: .91rem; }
.analysis-reason { padding: 14px 16px; border-right: 3px solid var(--gold); border-radius: 12px; background: rgba(224,185,79,.05); }
.analysis-reason small { color: var(--gold-2); }
.analysis-reason p { color: #c7cbd2; margin: 3px 0 0; font-size: .82rem; }
.result-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.deleted-note { color: #8eddb9; font-size: .72rem; }
.deleted-note span { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(65,201,142,.12); margin-left: 4px; }
.text-btn { color: var(--gold-2); background: transparent; font-weight: 700; font-size: .78rem; }

.how-section { padding: 80px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid article { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #111318; }
.steps-grid article > span { color: var(--gold); font-size: .8rem; font-weight: 800; }
.steps-grid h3 { margin: 0; font-size: 1rem; }
.steps-grid p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.privacy-strip { padding: 10px 0 70px; }
.privacy-strip-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 23px; border: 1px solid rgba(65,201,142,.16); border-radius: var(--radius-lg); background: rgba(65,201,142,.045); }
.shield-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green); border-radius: 14px; background: rgba(65,201,142,.09); }
.privacy-strip strong { display: block; }
.privacy-strip p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.privacy-strip a { color: #a1e6c7; font-size: .78rem; font-weight: 700; }
.warning-section { padding-bottom: 80px; }
.warning-box { display: flex; align-items: flex-start; gap: 13px; padding: 17px 20px; border: 1px solid rgba(245,169,74,.18); border-radius: 15px; background: rgba(245,169,74,.045); }
.warning-box > span { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #181006; background: var(--orange); font-weight: 900; }
.warning-box p { color: #b9bec6; margin: 0; font-size: .78rem; }
.site-footer { border-top: 1px solid var(--line); background: #08090b; }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand strong { font-size: .86rem; }
.footer-links { display: flex; gap: 20px; color: var(--muted); font-size: .78rem; }
.footer-inner > p { color: #6f7580; font-size: .72rem; }

.legal-page { background: #0a0b0e; }
.legal-main { padding: 70px 0 90px; }
.legal-container { max-width: 860px; }
.back-link { color: var(--gold-2); font-size: .8rem; }
.legal-header { margin: 34px 0 30px; }
.legal-header span { color: var(--gold); font-weight: 800; font-size: .8rem; }
.legal-header h1 { margin: 3px 0; font-size: clamp(2.1rem, 5vw, 3.5rem); }
.legal-header p { color: var(--muted); margin: 0; font-size: .78rem; }
.legal-card { padding: 25px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.legal-card h2 { margin: 0 0 7px; font-size: 1.04rem; }
.legal-card p { color: #b3b8c1; margin: 0; font-size: .88rem; }
.highlight-card { border-color: rgba(65,201,142,.18); background: rgba(65,201,142,.045); }
.warning-legal { border-color: rgba(245,169,74,.18); background: rgba(245,169,74,.045); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { padding-top: 58px; }
  .hero-grid, .analyzer-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-points { justify-items: center; }
  .market-card { min-height: 390px; }
  .steps-grid { grid-template-columns: 1fr; }
  .privacy-strip-inner { grid-template-columns: auto 1fr; }
  .privacy-strip a { grid-column: 2; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1160px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { display: none; }
  .beta-badge { padding: 6px 9px; font-size: .65rem; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .hero-copy > p { font-size: .94rem; }
  .hero-points { justify-items: start; max-width: 330px; margin-inline: auto; text-align: right; }
  .market-card { min-height: 340px; padding: 18px; border-radius: 22px; }
  .mock-chart { height: 200px; margin-inline: -18px; }
  .analyzer-section { padding: 66px 0; }
  .upload-panel, .result-panel { padding: 16px; border-radius: 20px; }
  .panel-title { align-items: flex-start; }
  .panel-title small { max-width: 180px; }
  .privacy-chip { display: none; }
  .drop-zone, .drop-empty, .preview-wrap { min-height: 240px; }
  .preview-wrap > img { height: 240px; }
  .timeframe-options { gap: 7px; }
  .timeframe-options span { padding-inline: 4px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .result-panel { min-height: 460px; }
  .trade-grid { grid-template-columns: 1fr; }
  .result-footer { align-items: flex-start; flex-direction: column; }
  .placeholder-list { grid-template-columns: 1fr; }
  .privacy-strip-inner { grid-template-columns: 1fr; text-align: center; }
  .shield-icon { margin-inline: auto; }
  .privacy-strip a { grid-column: 1; }
  .warning-box { align-items: flex-start; }
  .footer-inner { padding: 28px 0; min-height: 0; flex-direction: column; text-align: center; }
  .legal-main { padding-top: 42px; }
  .legal-card { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Final interface additions: image analysis + direct MT5 analysis */
.analysis-tabs {
  width: min(690px, 100%);
  margin: 0 auto 22px;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18,20,25,.9);
}
.analysis-tab {
  min-width: 0;
  min-height: 72px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #aeb3bc;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.analysis-tab:hover { color: var(--text); background: rgba(255,255,255,.025); }
.analysis-tab.is-active {
  color: var(--text);
  border-color: var(--line-gold);
  background: linear-gradient(135deg, rgba(224,185,79,.13), rgba(224,185,79,.045));
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.analysis-tab:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.analysis-tab > span:not(.tab-icon) { display: flex; flex-direction: column; line-height: 1.45; text-align: right; }
.analysis-tab strong { font-size: .9rem; }
.analysis-tab small { color: var(--muted); font-size: .68rem; font-weight: 500; }
.tab-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--gold-2);
  background: rgba(224,185,79,.09);
  border: 1px solid rgba(224,185,79,.16);
  font-size: 1.05rem;
}
.mode-column { min-width: 0; }
.mode-panel { height: 100%; }
.direct-panel { display: flex; flex-direction: column; }
.connection-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .69rem;
  white-space: nowrap;
}
.connection-chip i { width: 7px; height: 7px; border-radius: 50%; }
.connection-chip.pending { color: #ffd18a; border: 1px solid rgba(245,169,74,.22); background: rgba(245,169,74,.07); }
.connection-chip.pending i { background: var(--orange); box-shadow: 0 0 0 5px rgba(245,169,74,.1); }
.direct-summary {
  padding: 28px 20px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(224,185,79,.09), transparent 58%), #111318;
}
.direct-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: var(--gold-2);
  border: 1px solid var(--line-gold);
  background: rgba(224,185,79,.09);
  font-size: 1.55rem;
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
}
.direct-summary h3 { margin: 0; font-size: 1.15rem; }
.direct-summary p { max-width: 540px; margin: 7px auto 0; color: var(--muted); font-size: .79rem; }
.live-data-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.live-data-card > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #13161b;
}
.live-data-card small, .live-data-card strong { display: block; }
.live-data-card small { color: var(--muted); font-size: .68rem; }
.live-data-card strong { margin-top: 4px; font-size: .82rem; }
.direct-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  color: #c9cdd4;
  border: 1px dashed rgba(224,185,79,.22);
  border-radius: 13px;
  background: rgba(224,185,79,.025);
  font-size: .71rem;
}
.direct-flow b { color: var(--gold); font-size: .9rem; }
.signal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.signal-meta > span {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111419;
}
.signal-meta small, .signal-meta strong { display: block; }
.signal-meta small { color: var(--muted); font-size: .63rem; }
.signal-meta strong { margin-top: 2px; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smart-questions {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101217;
}
.smart-questions > small { color: var(--muted); font-size: .69rem; }
.question-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.question-buttons button {
  padding: 7px 10px;
  border: 1px solid rgba(224,185,79,.18);
  border-radius: 999px;
  color: #dfc779;
  background: rgba(224,185,79,.055);
  font: inherit;
  font-size: .66rem;
  cursor: pointer;
  transition: .2s ease;
}
.question-buttons button:hover { border-color: var(--gold); background: rgba(224,185,79,.1); }
.answer-box {
  margin-top: 10px;
  padding: 11px 12px;
  border-right: 2px solid var(--gold);
  border-radius: 9px;
  color: #c8ccd3;
  background: rgba(224,185,79,.04);
  font-size: .73rem;
}
.smart-section { padding: 82px 0; background: linear-gradient(180deg, transparent, rgba(224,185,79,.018), transparent); }
.smart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.smart-grid article {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #15181d, #0f1115);
}
.smart-grid article::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  left: -40px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(224,185,79,.06);
  filter: blur(10px);
}
.smart-grid article > span { color: var(--gold); font-size: .73rem; font-weight: 800; }
.smart-grid h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.smart-grid p { margin: 0; color: var(--muted); font-size: .79rem; }

@media (max-width: 900px) {
  .analysis-tabs { width: 100%; }
  .smart-grid { grid-template-columns: 1fr; }
  .smart-grid article { min-height: 0; }
}

@media (max-width: 620px) {
  .analysis-tabs { gap: 5px; padding: 5px; border-radius: 15px; }
  .analysis-tab { min-height: 64px; padding: 8px 6px; gap: 7px; }
  .analysis-tab small { display: none; }
  .analysis-tab strong { font-size: .76rem; }
  .tab-icon { width: 30px; height: 30px; font-size: .9rem; }
  .connection-chip { display: none; }
  .direct-summary { padding-inline: 14px; }
  .live-data-card { grid-template-columns: 1fr; }
  .signal-meta { grid-template-columns: 1fr; }
  .signal-meta strong { white-space: normal; }
  .question-buttons { display: grid; grid-template-columns: 1fr; }
  .question-buttons button { width: 100%; border-radius: 10px; }
  .smart-section { padding: 62px 0; }
}

/* Direct-only final interface */
.level-grid { margin-top: 18px; margin-bottom: 10px; }
.level-grid > div:first-child {
  border-color: rgba(65,201,142,.22);
  background: rgba(65,201,142,.055);
}
.level-grid > div:first-child strong { color: #8be0b9; }
.level-grid > div:last-child {
  border-color: rgba(255,109,120,.22);
  background: rgba(255,109,120,.05);
}
.level-grid > div:last-child strong { color: #ff929a; }
.connection-chip.connected { color: #8be0b9; border: 1px solid rgba(65,201,142,.25); background: rgba(65,201,142,.08); }
.connection-chip.connected i { background: var(--green); box-shadow: 0 0 0 5px rgba(65,201,142,.1); }
.connection-chip.warning { color: #ffd18a; border: 1px solid rgba(245,169,74,.22); background: rgba(245,169,74,.07); }
.connection-chip.warning i { background: var(--orange); box-shadow: 0 0 0 5px rgba(245,169,74,.1); }
.connection-chip.offline { color: #ff929a; border: 1px solid rgba(255,109,120,.23); background: rgba(255,109,120,.08); }
.connection-chip.offline i { background: var(--red); box-shadow: 0 0 0 5px rgba(255,109,120,.1); }
