/* tradingcalculator/style.css */
:root{
  --bg:#070b16;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.75);
  --accent: #2ee59d;
  --warn: #ffcc66;
  --bad: #ff6b6b;
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(46,229,157,.12), transparent 60%),
              radial-gradient(900px 600px at 100% 10%, rgba(120,135,255,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:980px; margin:0 auto; padding:14px 14px 90px}
.topbar{
  position:sticky; top:0; z-index:5;
  backdrop-filter: blur(10px);
  background: rgba(7,11,22,.65);
  border-bottom:1px solid var(--stroke);
  padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; gap:10px; align-items:center}
.logo{width:42px; height:42px; border-radius:12px; border:1px solid var(--stroke); object-fit:cover}
.title{font-weight:900; letter-spacing:.2px}
.sub{font-size:12px; color:var(--muted)}

.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.30);
}

.grid{
  display:grid;
  gap:14px;
}
@media(min-width:860px){
  .grid{ grid-template-columns: 1.05fr .95fr; align-items:start; }
}

label{font-size:12px; color:var(--muted); display:block; margin:10px 0 6px}
input, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
.row{display:flex; gap:10px}
.row > div{flex:1}

.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}
.btn-primary{
  background: linear-gradient(135deg, rgba(46,229,157,.95), rgba(46,229,157,.55));
  color:#02110b;
  border-color: rgba(46,229,157,.35);
}
.btn:active{transform: translateY(1px)}

.kpis{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kpi{
  background: rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding:12px;
}
.kpi .k{font-size:12px; color:var(--muted)}
.kpi .v{margin-top:6px; font-size:18px; font-weight:1000}

.badge{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  font-weight:1000;
  font-size:12px;
}
.b-good{background: rgba(46,229,157,.12); border-color: rgba(46,229,157,.25); color: var(--accent)}
.b-warn{background: rgba(255,204,102,.12); border-color: rgba(255,204,102,.25); color: var(--warn)}
.b-bad{ background: rgba(255,107,107,.10); border-color: rgba(255,107,107,.25); color: var(--bad)}

.note{
  margin-top:10px;
  font-size:12px;
  color: var(--muted);
  line-height:1.5;
  border-top:1px dashed rgba(255,255,255,.12);
  padding-top:10px;
}

.bottomBar{
  position:fixed; left:0; right:0; bottom:0; z-index:6;
  background: rgba(7,11,22,.78);
  border-top:1px solid var(--stroke);
  padding:10px 14px;
}
.bottomInner{
  max-width:980px; margin:0 auto;
  display:flex; gap:10px;
}
.bottomInner .btn{flex:1}

.small{font-size:12px; color:var(--muted)}
.status{font-size:12px; color:var(--muted); margin-top:8px}


/* ===== Share Modal + Share Card (Phase-3) ===== */
.wpb-modal{ position:fixed; inset:0; display:none; z-index:999; }
.wpb-modal[aria-hidden="false"]{ display:block; }
.wpb-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.wpb-modal-sheet{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(980px, calc(100% - 22px));
  max-height: calc(100% - 22px);
  overflow:auto;
  border-radius: 22px;
  background: rgba(7,11,22,.92);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.wpb-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.wpb-modal-body{ padding:14px; }

.share-card{
  position:relative;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.14);
  background: radial-gradient(900px 550px at 10% -20%, rgba(46,229,157,.14), transparent 60%),
              radial-gradient(800px 520px at 110% 0%, rgba(120,135,255,.12), transparent 55%),
              rgba(255,255,255,.04);
  padding:16px;
  overflow:hidden;
}
.share-watermark{
  position:absolute; inset:-40px;
  background: url("assets/logo.png") center/260px no-repeat;
  opacity:.08;
  filter: grayscale(100%);
  pointer-events:none;
}
.share-top{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.share-brand{ display:flex; align-items:center; gap:10px; }
.share-logo{ width:46px; height:46px; border-radius:14px; border:1px solid rgba(255,255,255,.14); object-fit:cover; }
.share-title{ font-weight:1000; letter-spacing:.2px; }
.share-sub{ font-size:12px; color: rgba(234,240,255,.75); }

.share-badge{
  border-radius:999px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  font-weight:1000;
  font-size:12px;
}

.share-mid{ position:relative; margin-top:12px; }
.share-line{
  display:flex; justify-content:space-between; gap:10px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:14px;
  margin-bottom:8px;
}
.share-k{ font-size:12px; color: rgba(234,240,255,.75); }
.share-v{ font-weight:900; }

.share-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  margin-top:10px;
}
@media(min-width:860px){
  .share-grid{ grid-template-columns: repeat(3, 1fr); }
}
.share-box{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:16px;
  padding:12px;
}
.share-big{ font-size:18px; font-weight:1000; margin-top:6px; }
.share-small{ font-size:12px; color: rgba(234,240,255,.75); margin-top:4px; }

.share-why{
  margin-top:10px;
  font-size:12px;
  color: rgba(234,240,255,.80);
  border-top:1px dashed rgba(255,255,255,.14);
  padding-top:10px;
}

.share-bot{
  position:relative;
  margin-top:12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:12px;
}
.share-foot-title{ font-weight:1000; }
.share-foot-sub{ font-size:12px; color: rgba(234,240,255,.75); line-height:1.45; }

.share-qr{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
#qrBox{ width:110px; height:110px; }
.share-qr-txt{ font-size:12px; color: rgba(234,240,255,.75); }

.share-actions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:12px;
}
.share-actions .btn{ flex:1; min-width: 160px; }

