/* =============================================================
   CyberSecProLabs — "Dummy Insta" theme
   Visual language borrowed from Instagram's own UI: the signature
   sunset gradient, the white card feed, the same type stack and
   spacing. Colors match Instagram's published brand gradient.
   ============================================================= */

:root{
  --ig-bg:        #fafafa;
  --ig-card:      #ffffff;
  --ig-border:    #dbdbdb;
  --ig-text:      #262626;
  --ig-muted:     #8e8e8e;
  --ig-link:      #00376b;
  --ig-blue:      #0095f6;
  --ig-blue-dark: #1877f2;
  --ig-danger:    #ed4956;
  --ig-radius:    12px;

  /* Instagram's official gradient stops */
  --ig-grad: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  --ig-grad-soft: linear-gradient(135deg,#405de6 0%,#5851db 25%,#833ab4 50%,#c13584 75%,#fd1d1d 100%);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--ig-bg);
  color:var(--ig-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
}

a{ color:var(--ig-link); text-decoration:none; }

/* ---------- promo banner ---------- */
.ig-promo-banner{
  background:var(--ig-grad);
  color:#fff;
  text-align:center;
  font-size:13px;
  font-weight:600;
  padding:8px 12px;
}
.ig-promo-banner a{ color:#fff; text-decoration:underline; }

/* ---------- top bar ---------- */
.ig-topbar{
  background:var(--ig-card);
  border-bottom:1px solid var(--ig-border);
  padding:10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky; top:0; z-index:10;
}
.ig-logo{
  font-family:Georgia,'Times New Roman',serif;
  font-weight:700;
  font-size:22px;
  letter-spacing:.3px;
  background:var(--ig-grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.ig-topbar .right{ display:flex; align-items:center; gap:14px; font-size:13px; color:var(--ig-text); }
.ig-topbar .right a{ color:var(--ig-text); font-weight:600; }
.ig-topbar .right a.logout{ color:var(--ig-danger); }
.ig-badge{
  display:inline-block; padding:2px 8px; border-radius:20px;
  font-size:11px; font-weight:700; color:#fff; background:var(--ig-grad);
}

/* ---------- auth screens (login / otp) ---------- */
.ig-auth-wrap{
  min-height:calc(100vh - 54px);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.ig-auth-card{
  width:350px; background:var(--ig-card); border:1px solid var(--ig-border);
  border-radius:var(--ig-radius); padding:36px 40px 20px; text-align:center;
}
.ig-auth-card .ig-logo{ font-size:38px; margin-bottom:22px; display:block; }
.ig-auth-card input{
  width:100%; padding:10px 12px; margin-bottom:8px;
  background:#fafafa; border:1px solid var(--ig-border); border-radius:6px;
  font-size:13px;
}
.ig-btn{
  width:100%; padding:9px; margin-top:6px; border:none; border-radius:8px;
  background:var(--ig-blue); color:#fff; font-weight:700; font-size:14px;
  cursor:pointer;
}
.ig-btn:hover{ background:var(--ig-blue-dark); }
.ig-otp-boxes{ display:flex; gap:8px; justify-content:center; margin:14px 0; }
.ig-otp-boxes input{
  width:44px; height:52px; text-align:center; font-size:20px; margin:0;
}
.ig-error{
  background:#fff0f0; border:1px solid #ffd7d7; color:var(--ig-danger);
  padding:8px 10px; border-radius:6px; font-size:13px; margin-bottom:10px;
}
.ig-hint{ color:var(--ig-muted); font-size:12px; margin-top:14px; line-height:1.5; }
.ig-hint code{ background:#f2f2f2; padding:1px 5px; border-radius:4px; }
.ig-secondary-card{
  width:350px; background:var(--ig-card); border:1px solid var(--ig-border);
  border-radius:var(--ig-radius); padding:16px; text-align:center; margin-top:10px;
  font-size:13px;
}

/* ---------- feed ---------- */
.ig-feed{ max-width:470px; margin:24px auto; padding:0 12px 60px; }
.ig-post{
  background:var(--ig-card); border:1px solid var(--ig-border);
  border-radius:var(--ig-radius); margin-bottom:22px; overflow:hidden;
}
.ig-post-head{ display:flex; align-items:center; gap:10px; padding:11px 14px; }
.ig-avatar{
  width:32px; height:32px; border-radius:50%; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:13px;
  background:var(--ig-grad-soft);
}
.ig-post-head .who{ font-weight:600; font-size:13px; }
.ig-post-head .where{ color:var(--ig-muted); font-size:11px; }
.ig-post-head .dots{ margin-left:auto; color:var(--ig-muted); }

.ig-photo{
  width:100%; aspect-ratio:1/1; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.ig-photo svg{ width:100%; height:100%; display:block; }

.ig-actions{ display:flex; align-items:center; gap:14px; padding:10px 14px 0; font-size:20px; }
.ig-actions .spacer{ flex:1; }
.ig-likes{ padding:6px 14px 0; font-weight:600; font-size:13px; }
.ig-caption{ padding:6px 14px 2px; font-size:13px; line-height:1.4; }
.ig-caption b{ margin-right:5px; }
.ig-tag{ color:var(--ig-link); }
.ig-comments{ padding:2px 14px 4px; color:var(--ig-muted); font-size:12px; }
.ig-time{ padding:2px 14px 14px; color:var(--ig-muted); font-size:10px; text-transform:uppercase; letter-spacing:.4px; }

/* ---------- generic content card (guestbook / search / notes) ---------- */
.ig-panel{ max-width:470px; margin:24px auto; padding:0 12px 60px; }
.ig-panel .card{
  background:var(--ig-card); border:1px solid var(--ig-border);
  border-radius:var(--ig-radius); padding:18px; margin-bottom:16px;
}
.ig-panel h3{ margin:0 0 12px; font-size:16px; }
.ig-panel input[type=text]{
  width:100%; padding:9px 10px; border:1px solid var(--ig-border);
  border-radius:6px; font-size:13px; margin-bottom:8px;
}
.ig-panel ul{ list-style:none; padding:0; margin:0; }
.ig-panel li{ padding:8px 0; border-bottom:1px solid #f0f0f0; font-size:13px; }
.ig-panel li:last-child{ border-bottom:none; }

.ig-footer{ text-align:center; color:var(--ig-muted); font-size:11px; padding:20px; }

/* ---------- marketing / portal additions ---------- */
.ig-hero{
  background:var(--ig-grad-soft); color:#fff; padding:72px 24px 90px;
  text-align:center;
}
.ig-hero h1{ font-size:38px; margin:0 0 12px; font-family:Georgia,'Times New Roman',serif; }
.ig-hero p{ font-size:16px; opacity:.92; max-width:560px; margin:0 auto 26px; line-height:1.5; }
.ig-hero .ig-btn{ width:auto; padding:12px 28px; background:#fff; color:#262626; display:inline-block; font-size:15px; }
.ig-hero .ig-btn:hover{ background:#f2f2f2; }
.ig-hero .ig-btn.ghost{ background:transparent; border:1.5px solid #fff; color:#fff; margin-left:10px; }

.ig-shell{ max-width:1040px; margin:-46px auto 60px; padding:0 20px; }
.ig-stats{ display:flex; gap:16px; justify-content:center; margin-bottom:40px; flex-wrap:wrap; }
.ig-stat{ background:var(--ig-card); border:1px solid var(--ig-border); border-radius:var(--ig-radius);
  padding:18px 26px; text-align:center; min-width:140px; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.ig-stat b{ display:block; font-size:24px; }
.ig-stat span{ color:var(--ig-muted); font-size:12px; }

.ig-section-title{ text-align:center; margin:50px 0 26px; }
.ig-section-title h2{ font-size:24px; margin:0 0 6px; }
.ig-section-title p{ color:var(--ig-muted); font-size:14px; margin:0; }

.ig-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.ig-lab-card{
  background:var(--ig-card); border:1px solid var(--ig-border); border-radius:var(--ig-radius);
  padding:18px; display:flex; flex-direction:column; gap:8px; box-shadow:0 4px 14px rgba(0,0,0,.04);
}
.ig-lab-card .num{
  width:30px; height:30px; border-radius:50%; background:var(--ig-grad-soft); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px;
}
.ig-lab-card h4{ margin:6px 0 0; font-size:15px; }
.ig-lab-card p{ margin:0; color:var(--ig-muted); font-size:12.5px; line-height:1.5; flex:1; }
.ig-lab-card .row{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
.ig-chip{ display:inline-block; font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:20px;
  background:#eef4ff; color:#1877f2; text-transform:uppercase; letter-spacing:.3px; }
.ig-chip.done{ background:#e9f9ee; color:#1a9e4a; }
.ig-lab-card a.launch{ font-size:12.5px; font-weight:700; color:var(--ig-blue); }

.ig-guide-link{ display:inline-block; font-size:12.5px; font-weight:700; color:var(--ig-link); margin-top:2px; }
.ig-guide-link:hover{ text-decoration:underline; }

.ig-form-page{ min-height:calc(100vh - 54px); display:flex; align-items:center; justify-content:center; padding:24px; }
.ig-nav-cta{ padding:9px 18px !important; border-radius:8px; background:var(--ig-blue); color:#fff !important; font-weight:700; }

/* ============================================================
   Per-lab guide page (/lab/<n>)
   ============================================================ */
.ig-guide{ max-width:820px; margin:28px auto; }
.ig-guide-head{ display:flex; align-items:center; gap:14px; }
.ig-guide-head .num{
  width:44px; height:44px; flex:none; border-radius:50%; background:var(--ig-grad-soft);
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px;
}
.ig-guide-head h1{ margin:0 0 4px; font-size:24px; }
.ig-guide-head .ig-chip{ margin-right:6px; }

.ig-goal{ margin:16px 0; padding:12px 16px; background:#eef4ff; border-left:4px solid var(--ig-blue);
  border-radius:8px; font-size:14px; line-height:1.55; }
.ig-guide-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }

/* tabs */
.ig-tabs{ display:flex; gap:6px; border-bottom:2px solid var(--ig-border); margin-bottom:18px; }
.ig-tab{
  border:none; background:none; padding:10px 16px; font-size:14px; font-weight:700; cursor:pointer;
  color:var(--ig-muted); border-bottom:3px solid transparent; margin-bottom:-2px;
}
.ig-tab.active{ color:var(--ig-text); border-bottom-color:#dc2743; }

/* steps */
.ig-steps-list{ margin:0; padding-left:22px; }
.ig-steps-list li{ margin-bottom:16px; }
.ig-steps-list .step-text{ font-size:14px; line-height:1.6; margin-bottom:8px; }

/* dark terminal-style code blocks with token colors */
.code-block{ position:relative; margin:8px 0 2px; }
.code-block pre{
  margin:0; background:#0d1117; border:1px solid #21262d; border-radius:8px;
  padding:14px 16px; overflow-x:auto;
}
.code-block code{
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  font-size:12.5px; line-height:1.6; color:#e6edf3; white-space:pre;
}
.code-block .copy-btn{
  position:absolute; top:8px; right:8px; background:#21262d; color:#c9d1d9; border:1px solid #30363d;
  border-radius:6px; font-size:11px; font-weight:700; padding:3px 9px; cursor:pointer;
}
.code-block .copy-btn:hover{ background:#30363d; }
/* token colors */
.t-com{ color:#8b949e; font-style:italic; }
.t-str{ color:#ffab70; }
.t-num{ color:#79c0ff; }
.t-kw{ color:#ff7b72; font-weight:700; }
.t-flag{ color:#d2a8ff; }

.ig-downloads{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.ig-dl{
  display:inline-block; padding:9px 14px; border-radius:8px; background:#eef4ff;
  color:var(--ig-blue-dark); font-weight:700; font-size:13px; border:1px solid #d6e4ff;
}
.ig-dl:hover{ background:#e0ecff; }

.ig-burp-setup{ margin-bottom:18px; padding:12px 16px; background:#fff8ef; border:1px solid #ffe0b8; border-radius:8px; }
.ig-burp-setup summary{ cursor:pointer; font-weight:700; color:#b45309; font-size:13.5px; }
.ig-burp-setup .ig-steps-list{ margin-top:12px; }

.ig-fix{ margin:24px 0; padding:14px 16px; background:#e9f9ee; border-left:4px solid #1a9e4a;
  border-radius:8px; font-size:14px; line-height:1.55; }

.ig-guide-nav{ display:flex; justify-content:space-between; align-items:center; margin:20px 0 40px;
  padding-top:16px; border-top:1px solid var(--ig-border); }

