:root{
  --bg:#0b1220;
  --card:#111b2e;
  --text:#e8eefc;
  --muted:#a9b5d6;
  --accent:#4ea1ff;
  --border:rgba(255,255,255,.10);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.catalog-wrap{max-width:980px;margin:0 auto;padding:28px 18px}
.catalog-intro,.catalog-section{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:18px;padding:18px 16px;margin-bottom:14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.catalog-intro h1{margin:0 0 10px;font-size:28px}
.catalog-intro p{margin:0 0 10px;color:var(--muted);line-height:1.5}
.catalog-intro ul{margin:10px 0 0 18px;color:var(--muted);line-height:1.5}
.catalog-section h2{margin:0 0 12px;font-size:20px}
.product-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:760px){.product-grid{grid-template-columns:repeat(3,1fr)}}
.product-card{background:rgba(0,0,0,.18);border:1px solid var(--border);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}
.product-flyer{width:100%;height:auto;border-radius:12px;border:1px solid rgba(255,255,255,.08)}
.product-meta h3{margin:0 0 6px;font-size:16px}
.product-meta p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.product-actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);background:transparent;color:var(--text);
  padding:10px 12px;border-radius:12px;cursor:pointer;font-weight:700}
.btn:hover{border-color:rgba(78,161,255,.45)}
.btn.primary{background:rgba(78,161,255,.16);border-color:rgba(78,161,255,.35)}
.notice{border:1px solid var(--border);border-radius:14px;padding:10px 12px;color:var(--muted);background:rgba(255,255,255,.03)}
.input{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:rgba(0,0,0,.2);color:var(--text);outline:none}
.small{font-size:12px;color:var(--muted)}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre-wrap}
.footer{margin-top:16px;color:var(--muted);font-size:12px}


/* --- TradeGym Success Branding --- */
.brandbar{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  margin: 0 0 18px 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.brandbar-logo{
  width:40px;
  height:40px;
  display:block;
  border-radius: 10px;
}
.brandbar-name{
  font-weight: 800;
  letter-spacing: .2px;
}
.brandbar-tag{
  opacity: .85;
  font-size: 0.95rem;
}


/* Disabled button state */
.btn--disabled{opacity:.6;pointer-events:none;cursor:not-allowed;}


/* 4-column grid for sections that need denser layout */
@media (min-width: 1100px){
  .product-grid--4{
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tools subtitle: lighter visual weight so it doesn't compete with section header */
.tools-subtitle{
  margin: 16px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6; /* blue */
}


/* Activation notice (visual emphasis only; no logic changes) */
.activation-flow{
  margin-top: 14px;
  color: rgba(235,247,255,0.96);
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.22);
  border-left: 4px solid rgba(59,130,246,0.65);
  padding: 12px 14px;
  border-radius: 14px;
}
.activation-flow strong{
  color: rgba(147,197,253,1);
}
.catalog-section h3{
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 18px 0 10px;
  color: rgba(130,200,255,0.95);
}


/* EDU positioning */
.edu-pack-summary{
  margin: 14px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.edu-pack-summary p{
  margin: 6px 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.45;
}

.edu-positioning h3{ margin-top: 14px; }
.edu-table{
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 12px;
}
.edu-table th,
.edu-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.edu-table thead th{
  color: var(--text);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  font-size: 13.5px;
}
.edu-table td{
  color: var(--muted);
  font-size: 13.5px;
}
.edu-table tbody tr:hover td{
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.activation-note strong{ color: var(--accent); }
.activation-note{ color: var(--muted); }

.tiny-link{
  display: inline-block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.tiny-link:hover{ text-decoration: underline; opacity: 0.95; }



/* ---- TradeGym book & teaser helpers ---- */
.tiny-link{
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent);
  opacity: 0.95;
}
.tiny-link:hover{ text-decoration: underline; }

.divider{
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 22px 0;
}

.bullets{
  margin: 10px 0 0 18px;
}
.bullets li{
  margin: 8px 0;
  line-height: 1.45;
}

.teaser-visual{
  margin: 18px 0 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.teaser-visual img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.teaser-visual .caption{
  margin: 10px 2px 0;
  font-size: 0.95rem;
  color: rgba(229,231,235,0.78);
}

.success-banner{
  margin: 14px 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.25);
  color: rgba(240,253,244,0.95);
  font-weight: 600;
}

/* Make Activation flow note pop a bit (catalog only) */
.activation-flow{
  color: rgba(229,231,235,0.92);
}
.activation-flow strong{
  color: #93c5fd;
}

/* Overview readability */
.overview-bullets ul li{
  font-size: 1.05rem;
}
.overview-bullets ul li + li{ margin-top: 8px; }

.catalog-packaging{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(229,231,235,0.92);
  line-height: 1.55;
}


/* --- v43 patch: readability + consistency --- */
.edu-table th, .edu-table td,
.tg-table th, .tg-table td {
  text-align: left;
}

.powered-by{
  text-align:center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* Ensure form helper text uses standard size */
.form-help{
  font-size: 1rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}


/* --- Intro book utilities (v43 patch) --- */
.link{ color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover{ text-decoration: underline; }

.callout{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}

.card{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  border-radius: 18px;
  padding: 18px;
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

.pathway{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  border-radius: 18px;
}
.pathway__step{
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  font-weight: 700;
}
.pathway__arrow{
  color: var(--muted);
  font-weight: 700;
}


/* --- Online Access Standard (Approved) --- */
.catalog-section p{font-size:16px; line-height:1.6}
.form-help{font-size:15px; line-height:1.5}
.btn-row{display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin-top:12px}
.tiny-link{font-size:13px; opacity:.85}
.tiny-link:hover{opacity:1}
.status{margin:0; padding:8px 10px; border-radius:10px; border:1px solid var(--border); background:rgba(255,255,255,.03)}
.status.ok{border-color:rgba(78,161,255,.45)}
.status.bad{border-color:rgba(255,90,90,.45)}


/* Education ladder table (Overview + Access pages) */
.edu-table{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  margin-top:12px;
}
.edu-row{
  display:grid;
  grid-template-columns: 2.2fr 3.2fr 1fr;
  gap:14px;
  padding:12px 14px;
  border-top:1px solid var(--border);
}
.edu-row:first-child{border-top:none}
.edu-row.head{
  font-weight:800;
  color:var(--muted);
  background:rgba(255,255,255,.03);
}
.edu-row > div{min-width:0}
@media (max-width: 760px){
  .edu-row{grid-template-columns:1fr; gap:6px}
  .edu-row.head{display:none}
  .edu-row > div:nth-child(1){font-weight:800}
}
.footer-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.footer-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}


/* --- TradeGym modal preview (PDF / Image) --- */
.hidden { display: none !important; }

.tg-modal { position: fixed; inset: 0; z-index: 9999; }
.tg-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.tg-modal-panel {
  position: relative;
  width: min(980px, calc(100vw - 24px));
  height: min(720px, calc(100vh - 24px));
  margin: 12px auto;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tg-modal-title { font-weight: 700; color: rgba(255,255,255,0.92); }
.tg-modal-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.tg-modal-body { flex: 1; padding: 10px; }
.tg-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.tg-modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}


/* =========================
   RiskGuard UI compression
   ========================= */
.rg-card{border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(0,0,0,.10);padding:16px;}
.rg-tight{padding:14px;}

.rg-grid{display:grid;gap:14px;align-items:end;}
.rg-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.rg-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));}

@media (max-width: 1100px){
  .rg-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rg-grid-5{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 640px){
  .rg-grid-4,.rg-grid-5{grid-template-columns:1fr;}
}

.rg-field{display:flex;flex-direction:column;gap:8px;}
.rg-field > span{font-weight:700;color:#e9f1ff;}
.rg-field input,.rg-field select{
  width:100%;
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.14);
  color:#eef5ff;
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.rg-field input:focus,.rg-field select:focus{border-color:rgba(88,160,255,.65);box-shadow:0 0 0 3px rgba(88,160,255,.18);}

.btn-outline{background:transparent;border:1px solid rgba(255,255,255,.22);}
.btn-outline:hover{border-color:rgba(255,255,255,.45);}
.btn-accent{
  background: linear-gradient(135deg, rgba(255,190,60,.95), rgba(255,190,60,.55));
  color: #0b1220;
  border: 1px solid rgba(255,190,60,.55);
  box-shadow:0 0 0 3px rgba(255,190,60,.12), 0 10px 30px rgba(0,0,0,.35);
}

/* ==============================
   RiskGuard UI polish
   ============================== */

.riskguard-page{
  --rg-accent: rgba(255,190,60,.95);
  --rg-accent-2: rgba(255,122,60,.95);
}

.riskguard-page .rg-block{
  position: relative;
  border: 1px solid rgba(255,255,255,.09);
}

.riskguard-page .rg-block::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--rg-accent), var(--rg-accent-2));
  opacity: .9;
}

.riskguard-page .btn{
  min-height: 48px;
  padding: 12px 18px;
  letter-spacing: .2px;
}

.riskguard-page .btn-accent{
  background: linear-gradient(135deg, var(--rg-accent), var(--rg-accent-2));
  border-color: rgba(255,190,60,.75);
  box-shadow: 0 16px 40px rgba(255,122,60,.18);
}

.riskguard-page .btn-accent:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(255,122,60,.24);
}

.riskguard-page .btn-outline{
  border-color: rgba(255,190,60,.45);
  color: rgba(255,210,120,.95);
  background: rgba(255,190,60,.08);
}

.riskguard-page .btn-outline:hover{
  background: rgba(255,190,60,.14);
  border-color: rgba(255,190,60,.80);
  transform: translateY(-1px);
}

/* Output energy */
.rg-output{border-radius:18px;overflow:hidden;}
.rg-energy{position:relative;}
.rg-energy:before{
  content:"";
  position:absolute;
  inset:0;
  padding:2px;
  border-radius:18px;
  background:linear-gradient(90deg, rgba(255,190,60,.85), rgba(88,160,255,.85), rgba(90,255,180,.75));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}

.rg-table{width:100%;border-collapse:collapse;background:rgba(0,0,0,.14);}
.rg-table th,.rg-table td{padding:14px 14px;border-bottom:1px solid rgba(255,255,255,.08);}
.rg-table thead th{background:rgba(255,255,255,.04);text-align:left;}
.rg-col-right{text-align:right;}

.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px;letter-spacing:.3px;}
.pill-ok{background:rgba(90,255,180,.12);border:1px solid rgba(90,255,180,.35);color:rgba(210,255,238,1);}

/* --- RiskGuard Profit Protection header (v1) --- */
.rg-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px;}
.rg-panel-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.rg-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);font-weight:900;letter-spacing:.3px;}
.rg-pill{display:inline-flex;align-items:center;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.85);font-weight:800;}
.rg-panel-desc{margin-top:0;margin-bottom:4px;}
.rg-panel-right{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);}
.rg-pp-meta{display:flex;flex-direction:column;gap:6px;min-width:320px;}
.rg-pp-title{font-weight:900;letter-spacing:.2px;}
.rg-pp-strong{color:rgba(255,200,90,1);}
.rg-pp-fields{display:flex;gap:10px;flex-wrap:wrap;}
.rg-pp-fields label{display:flex;align-items:center;gap:8px;font-size:12px;color:rgba(255,255,255,.82);font-weight:800;}
.rg-pp-fields input{width:120px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);color:rgba(255,255,255,.92);outline:none;}
.rg-pp-fields input:disabled{opacity:.45;filter:saturate(.3);}
.rg-pp-note{font-size:12px;}

/* Switch */
.rg-switch{position:relative;display:inline-block;width:52px;height:30px;flex:0 0 auto;margin-top:2px;}
.rg-switch input{opacity:0;width:0;height:0;}
.rg-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);transition:.2s;border-radius:999px;}
.rg-slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;top:3px;background:white;transition:.2s;border-radius:999px;}
.rg-switch input:checked + .rg-slider{background:rgba(255,180,60,.30);border-color:rgba(255,180,60,.55);}
.rg-switch input:checked + .rg-slider:before{transform:translateX(22px);}

/* Responsive */
@media (max-width: 860px){
  .rg-panel-right{min-width:0;width:100%;}
  .rg-pp-meta{min-width:0;flex:1;}
  .rg-panel-head{flex-direction:column;align-items:stretch;}
}


/* RiskGuard mini select */

  .rg-mini-row{margin-top:8px;}
  .rg-select-mini{
    width:100%;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.10);
    background:rgba(0,0,0,0.25);
    color:#e8edf5;
    font-size:14px;
    outline:none;
  }
  .rg-select-mini:focus{border-color:rgba(255,184,0,0.55); box-shadow:0 0 0 3px rgba(255,184,0,0.12);}

