:root{
  --bg:#0b1220;
  --card:#111a2b;
  --card2:#0e1726;
  --text:#e9eefc;
  --muted:#a9b4d0;
  --border:rgba(255,255,255,.08);
  --blue:#3b82f6;
  --red:#ef4444;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(59,130,246,.18), transparent 55%),
              radial-gradient(1200px 800px at 80% 0%, rgba(239,68,68,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  background: rgba(11,18,32,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.brand-mark{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  font-weight:800;
}
.brand-text{min-width:0}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-subtitle{font-size:12px; color:var(--muted)}
.icon-btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  width:42px; height:42px;
  border-radius:14px;
  display:grid; place-items:center;
  cursor:pointer;
}
.hamburger{width:18px; height:12px; position:relative; display:block}
.hamburger:before,.hamburger:after,.hamburger{border-top:2px solid rgba(255,255,255,.9)}
.hamburger:before,.hamburger:after{content:""; position:absolute; left:0; right:0}
.hamburger:before{top:4px}
.hamburger:after{top:8px}
.container{padding:16px; max-width:960px; margin:0 auto}
.card{
  background: rgba(17,26,43,.72);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  margin:14px 0;
}
.hidden{display:none}
h1,h2{margin:0 0 10px}
.lead{opacity:.95}
.muted{color:var(--muted); margin-top:0}
.grid{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top:12px;
}
.tile{
  background: rgba(14,23,38,.75);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.tile-title{font-weight:800; margin-bottom:6px}
.tile-text{color:var(--muted); font-size:13px; margin-bottom:10px}
.notice{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  color: var(--muted);
  font-size:13px;
}
.notice b{color:var(--text)}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid var(--border);
  background: rgba(31,42,68,.75);
  color:var(--text);
  font-weight:700;
  font-size:14px;
}
.pill:hover{filter:brightness(1.05)}
.pill-blue{background: rgba(59,130,246,.22); border-color: rgba(59,130,246,.35)}
.pill-red{background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.35)}
.signal{
  white-space:pre-wrap;
  word-break:break-word;
  margin:10px 0 12px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:13px;
}
.pricing{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top:10px;
}
.price-card{
  background: rgba(14,23,38,.75);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.price-card.featured{
  outline:1px solid rgba(59,130,246,.35);
  background: rgba(14,23,38,.85);
}
.price-title{font-weight:900; margin-bottom:6px}
.price-sub{color:var(--muted); font-size:13px; margin-bottom:10px}
/* Drawer */
.drawer{
  position:fixed; top:0; left:0;
  width:min(320px, 86vw);
  height:100%;
  background: rgba(14,23,38,.96);
  border-right:1px solid var(--border);
  transform: translateX(-105%);
  transition: transform .22s ease;
  z-index:30;
  padding:14px;
}
.drawer.open{transform: translateX(0)}
.drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.drawer-title{font-weight:900}
.nav-item{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--text);
  text-decoration:none;
  margin:6px 0;
}
.nav-item:hover{border-color: var(--border); background: rgba(255,255,255,.04)}
.drawer-foot{position:absolute; left:14px; right:14px; bottom:14px}
.small{color:var(--muted); font-size:12px}
.overlay{position:fixed; inset:0; background: rgba(0,0,0,.45); z-index:20}
.tv-card{
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.tv-title{
  font-weight: 800;
  margin-bottom: 10px;
}
.tradingview-widget-container{
  border-radius: 14px;
  overflow: hidden;
}.sessions-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.session-card{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.session-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

.badge{
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

.badge-open{ background: rgba(0,255,140,.10); }
.badge-closed{ background: rgba(255,60,60,.10); }

.session-time{
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  opacity: .9;
}
/* ===== Premium animations & signals UI ===== */

.page-in{
  animation: pageIn .35s ease both;
}
@keyframes pageIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}

.signal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 14px;
}

.signals-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top: 10px;
}

.sig-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow:hidden;
  transform: translateZ(0);
}
.sig-card.pop{
  animation: popIn .35s ease both;
}
@keyframes popIn{
  from{ opacity:0; transform: translateY(10px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.sig-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sig-title{
  font-weight:700;
  letter-spacing:.2px;
  flex:1;
}
.sig-time{
  opacity:.75;
  font-size:12px;
}

.sig-badge{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
}
.sig-badge.buy{
  background: rgba(0, 200, 120, .15);
}
.sig-badge.sell{
  background: rgba(255, 70, 80, .16);
}

.sig-body{
  padding: 12px 14px 14px;
}
.sig-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}
.sig-row:last-child{
  border-bottom:none;
}
.tp-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.sig-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  opacity:.95;
}

/* History accordéon */
.history{
  margin-top: 18px;
}
.history-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin: 8px 0 10px;
}

.day-block{
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.day-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px;
  background: transparent;
  color: inherit;
  border: none;
  font-weight:700;
}
.day-meta{
  font-size:12px;
  opacity:.75;
  font-weight:600;
}
.chev{
  transition: transform .2s ease;
  opacity:.8;
}
.day-toggle.open .chev{
  transform: rotate(180deg);
}

.day-content{
  max-height: 0;
  overflow:hidden;
  transition: max-height .35s ease;
}
.day-content.open{
  max-height: 1600px;
  padding: 0 12px 12px;
}

/* Skeleton loader */
.skeleton{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding: 14px;
  margin: 10px 0 14px;
}
.sk-line{
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  margin: 10px 0;
}
.w60{ width:60%; }
.w75{ width:75%; }
.w85{ width:85%; }
.w90{ width:90%; }

@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

@media (min-width: 720px){
  .signals-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
.sessions-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top: 12px;
}

.sess-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.sess-card.open{
  background: linear-gradient(180deg, rgba(0,200,120,.10), rgba(255,255,255,.03));
}

.sess-card.highlight{
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,140,0,.12), rgba(255,255,255,.03));
}

.sess-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 8px;
}

.sess-title{ font-weight: 800; }
.sess-time{ font-size: 12px; opacity: .8; }

.sess-hours{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 13px;
  opacity: .95;
  margin: 8px 0;
}

.sess-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0 8px;
}

.badge{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

.badge-on{ background: rgba(0,200,120,.14); }
.badge-off{ background: rgba(255,70,80,.14); }

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.bar-fill{
  height: 100%;
  background: rgba(255,255,255,.28);
  border-radius: 999px;
  transition: width .35s ease;
}

@media (min-width: 720px){
  .sessions-grid{ grid-template-columns: repeat(2, 1fr); }
  .sess-card.highlight{ grid-column: 1 / -1; }
}
