:root {
    --black: #04080F;
    --deep: #080E1A;
    --panel: #0D1526;
    --border: rgba(20,40,255,0.18);
    --blue: #1428FF;
    --blue-dim: rgba(20,40,255,0.10);
    --orange: #FF8A00;
    --orange-dim: rgba(255,138,0,0.12);
    --white: #EEF4FF;
    --muted: rgba(200,215,240,0.65);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* FIXED HEX CANVAS */
  #hexCanvas {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
  }
  section, footer, #trust, .stats-wrap { position: relative; z-index: 1; }
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

body{font-family:'Poppins',sans-serif;background:var(--bg);color:var(--white);min-height:100vh;}

/* ── LIGHT MODE ── */
  body.light {
    --black: #F0F4FF;
    --deep: #E4EAFF;
    --panel: #FFFFFF;
    --border: rgba(20,40,255,0.14);
    --white: #0A0F24;
    --muted: rgba(20,30,70,0.65);
    --blue-dim: rgba(20,40,255,0.08);
    --orange-dim: rgba(255,138,0,0.10);
  }
  body.light footer { background: #E4EAFF; }
  body.light #trust { background: rgba(210,220,255,0.85); border-color: rgba(20,40,255,0.15); }
  body.light .trust-label { color: rgba(10,15,36,0.6); }
  body.light .trust-item span { color: rgba(10,15,36,0.5); }
  body.light .trust-item:hover span { color: rgba(10,15,36,0.9); }
  body.light .stats-wrap { background: rgba(220,228,255,0.6); }
  body.light #value { background: rgba(224,232,255,0.5); }
  body.light #dashboard { background: rgba(224,232,255,0.6); }
  body.light .about-visual::before { background: radial-gradient(circle, rgba(20,40,255,.06), transparent 70%); }
  body.light #hexCanvas { opacity: 1; } /* Controlled per-frame in draw() */
  /* Dropdown stays dark on light mode — high contrast against the light nav */
  body.light .nav-dropdown-panel {
    background: #0D1526;
    border-color: rgba(20,40,255,0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
  }
  body.light .nav-dropdown-panel::before { background: #0D1526; border-color: rgba(20,40,255,0.3); }


  /* Light mode toggle */
  .theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: border-color .2s, background .2s;
    color: var(--muted); flex-shrink: 0;
  }
  .theme-toggle:hover { border-color: var(--orange); background: var(--orange-dim); color: var(--orange); }

  /* Notification bell */
  .notif-btn {
    position: relative; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .95rem; transition: border-color .2s, background .2s;
    color: var(--muted); flex-shrink: 0; text-decoration: none;
  }
  .notif-btn:hover { border-color: var(--blue); background: var(--blue-dim); color: var(--white); }
  .notif-badge {
    position: absolute; top: -3px; right: -3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--orange); border: 2px solid var(--black);
    display: flex; align-items: center; justify-content: center;
    font-size: .5rem; font-weight: 800; color: #fff;
    font-family: 'Poppins', sans-serif; line-height: 1;
  }
  /* Notification dropdown */
  .notif-dropdown {
    display: none; position: absolute; top: calc(100% + .6rem); right: 0;
    width: 320px; background: rgba(8,14,26,0.98);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.6); z-index: 300; overflow: hidden;
  }
  .notif-wrap { position: relative; }
  .notif-wrap:hover .notif-dropdown,
  .notif-dropdown.open { display: block; animation: dropIn .18s ease; }
  .notif-head {
    padding: .85rem 1rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .notif-head-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
  .notif-head-clear { font-size: .64rem; color: var(--blue); cursor: pointer; background: none; border: none; font-family: 'Poppins',sans-serif; font-weight: 600; }
  .notif-head-clear:hover { opacity: .75; }
  .notif-item {
    display: flex; gap: .8rem; padding: .85rem 1rem;
    border-bottom: 1px solid var(--border); transition: background .15s; cursor: pointer;
  }
  .notif-item:last-child { border-bottom: none; }
  .notif-item:hover { background: rgba(20,40,255,.06); }
  .notif-item.unread { background: rgba(20,40,255,.05); }
  .notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: .35rem; }
  .notif-dot.orange { background: var(--orange); }
  .notif-dot.green { background: #00c864; }
  .notif-dot.read { background: transparent; border: 1px solid var(--border); }
  .notif-text { flex: 1; font-size: .76rem; color: var(--muted); line-height: 1.55; }
  .notif-text strong { color: var(--white); font-weight: 600; }
  .notif-time { font-size: .6rem; color: rgba(200,215,240,.35); margin-top: .2rem; }
  .notif-empty { padding: 2rem 1rem; text-align: center; font-size: .78rem; color: rgba(200,215,240,.35); }

  /* ── LIGHT MODE ── */
  body.light {
    --black: #F0F4FF;
    --deep: #E4EAFF;
    --panel: #FFFFFF;
    --border: rgba(20,40,255,0.14);
    --white: #0A0F24;
    --muted: rgba(20,30,70,0.65);
    --blue-dim: rgba(20,40,255,0.08);
    --orange-dim: rgba(255,138,0,0.10);
  }
  body.light footer { background: #E4EAFF; }
  body.light #trust { background: rgba(210,220,255,0.85); border-color: rgba(20,40,255,0.15); }
  body.light .trust-label { color: rgba(10,15,36,0.6); }
  body.light .trust-item span { color: rgba(10,15,36,0.5); }
  body.light .trust-item:hover span { color: rgba(10,15,36,0.9); }
  body.light .stats-wrap { background: rgba(220,228,255,0.6); }
  body.light #value { background: rgba(224,232,255,0.5); }
  body.light #dashboard { background: rgba(224,232,255,0.6); }
  body.light .about-visual::before { background: radial-gradient(circle, rgba(20,40,255,.06), transparent 70%); }
  body.light #hexCanvas { opacity: 1; } /* Controlled per-frame in draw() */
  /* Dropdown stays dark on light mode — high contrast against the light nav */
  body.light .nav-dropdown-panel {
    background: #0D1526;
    border-color: rgba(20,40,255,0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
  }
  body.light .nav-dropdown-panel::before { background: #0D1526; border-color: rgba(20,40,255,0.3); }

  /* HAMBURGER */
  .hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; background: transparent;
    border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; padding: 7px; transition: border-color .2s;
  }
  .hamburger:hover { border-color: var(--blue); }
  .hamburger span {
    display: block; height: 2px; border-radius: 2px;
    background: var(--white); transition: transform .3s, opacity .3s, width .3s;
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #mobileMenu {
    display: none; position: fixed; top: 62px; left: 0; right: 0;
    z-index: 190; background: rgba(4,8,15,0.98); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border); padding: 1.2rem 5vw 1.6rem;
  }
  #mobileMenu.open { display: block; animation: mobileIn .25s ease forwards; }
  @keyframes mobileIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
  .mob-links { list-style: none; margin-bottom: 1.2rem; }
  .mob-links li { border-bottom: 1px solid var(--border); }
  .mob-links a {
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 500;
    color: var(--muted); text-decoration: none; padding: .9rem 0;
    transition: color .2s; text-transform: uppercase; letter-spacing: .04em;
  }
  .mob-links a:hover, .mob-links a.active-page { color: var(--white); }
  .mob-sub { list-style: none; padding: 0 0 .5rem 1rem; display: none; }
  .mob-sub a {
    font-size: .8rem; text-transform: none; letter-spacing: .02em;
    color: rgba(200,215,240,.5); padding: .5rem 0;
    display: flex; align-items: center; gap: .6rem;
  }
  .mob-sub a:hover { color: var(--white); }
  .mob-sub .dd-icon { width: 24px; height: 24px; border-radius: 5px; font-size: .75rem; display:flex;align-items:center;justify-content:center; }
  .mob-sub a:first-child .dd-icon { background: var(--blue-dim); }
  .mob-sub a:last-child .dd-icon { background: var(--orange-dim); }
  .mob-services-toggle { cursor: pointer; }
  .mob-chevron { font-size: .6rem; transition: transform .25s; }
  .mob-services-toggle.open .mob-chevron { transform: rotate(180deg); }
  .mob-services-toggle.open + .mob-sub { display: block; }
  .mob-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }

/* PAGE HEADER */
  .page-header { padding: 8rem 5vw 4rem; text-align: center; }
  .page-tag { font-family: 'Poppins', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: 3px; padding: .35rem .85rem; margin-bottom: 1.5rem; background: var(--blue-dim); }
  .page-tag::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 8px var(--orange); }
  .page-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 1rem; }
  .page-header h1 em { font-style: normal; color: var(--blue); }
  .page-header p { font-size: 1rem; font-weight: 300; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* HERO */

.bounty-hero{padding:9rem 5vw 4rem;max-width:1100px;margin:0 auto;}
.bounty-hero h1{font-size:2rem;font-weight:900;color:var(--white);margin-bottom:.5rem;}
.bounty-hero p{font-size:1rem;color:#ffffff;max-width:680px;line-height:1.7;text-align:center;margin:0 auto 2rem;}
.bounty-tag { font-family: 'Poppins', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: 3px; padding: .35rem .85rem; margin-bottom: 1.5rem; background: var(--blue-dim); }
.bounty-tag::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 8px var(--orange); }

.hero-stats {
  display: flex;
  gap: 4rem;              /* Large gap to match your design */
  margin-top: 1.5rem;
  padding: 0;             /* Remove any default padding */
  justify-content: flex-start;
  width: auto;            /* Only as wide as the stats themselves */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}


/* FILTERS */
.filters{max-width:1100px;margin:0 auto;padding:0 2rem 1.5rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;}
.cat-btn{font-family:'Poppins',sans-serif;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.4rem .9rem;border-radius:20px;cursor:pointer;border:1px solid var(--border);background:transparent;color:var(--muted);transition:all .2s;}
.cat-btn:hover{color:var(--white);border-color:rgba(200,215,240,.3);}
.cat-btn.active{background:var(--blue-dim);border-color:rgba(20,40,255,.3);color:#6b8cff;}
.cat-btn.dev.active{background:rgba(20,40,255,.15);border-color:rgba(20,40,255,.4);color:#6b8cff;}
.cat-btn.design.active{background:rgba(255,138,0,.1);border-color:rgba(255,138,0,.3);color:var(--orange);}
.cat-btn.growth.active{background:rgba(0,200,100,.1);border-color:rgba(0,200,100,.3);color:var(--green);}
.cat-btn.content.active{background:rgba(155,95,228,.1);border-color:rgba(155,95,228,.3);color:var(--purple);}
.cat-btn.contributor.active{background:rgba(255,68,68,.08);border-color:rgba(255,68,68,.2);color:#ff7070;}
.type-toggle{display:flex;background:var(--deep);border:1px solid var(--border);border-radius:6px;overflow:hidden;margin-left:auto;}
.type-btn{font-family:'Poppins',sans-serif;font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:.4rem .85rem;border:none;background:transparent;color:var(--muted);cursor:pointer;transition:all .2s;}
.type-btn.active{background:var(--panel);color:var(--white);}

/* BOUNTY GRID */
.bounty-grid{max-width:1100px;margin:0 auto;padding:0 2rem 3rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.2rem;}

/* BOUNTY CARD */
.bounty-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:border-color .2s,transform .2s;cursor:pointer;}
.bounty-card:hover{border-color:rgba(200,215,240,.22);transform:translateY(-2px);}
.bounty-card-top{height:4px;}
.bounty-card-top.dev{background:linear-gradient(90deg,#1428FF,#6b8cff);}
.bounty-card-top.design{background:linear-gradient(90deg,#FF8A00,#FFB800);}
.bounty-card-top.growth{background:linear-gradient(90deg,#00c864,#00a050);}
.bounty-card-top.content{background:linear-gradient(90deg,#9b5fe4,#c39bd3);}
.bounty-card-top.contributor{background:linear-gradient(90deg,#ff4444,#ff7070);}
.bounty-card-body{padding:1.2rem;}
.bounty-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.85rem;}
.bounty-meta{display:flex;gap:.4rem;flex-wrap:wrap;}
.bounty-cat{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:.2rem .55rem;border-radius:3px;}
.cat-dev{background:rgba(20,40,255,.12);color:#6b8cff;border:1px solid rgba(20,40,255,.2);}
.cat-design{background:rgba(255,138,0,.1);color:var(--orange);border:1px solid rgba(255,138,0,.2);}
.cat-growth{background:rgba(0,200,100,.1);color:var(--green);border:1px solid rgba(0,200,100,.2);}
.cat-content{background:rgba(155,95,228,.1);color:var(--purple);border:1px solid rgba(155,95,228,.2);}
.cat-contributor{background:rgba(255,68,68,.08);color:#ff7070;border:1px solid rgba(255,68,68,.15);}
.bounty-type-badge{font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:.2rem .55rem;border-radius:3px;}
.type-open{background:rgba(0,200,100,.08);color:var(--green);border:1px solid rgba(0,200,100,.15);}
.type-application{background:rgba(255,138,0,.08);color:var(--orange);border:1px solid rgba(255,138,0,.15);}
.bounty-card h3{font-size:.9rem;font-weight:700;color:var(--white);line-height:1.4;margin-bottom:.5rem;}
.bounty-card-desc{font-size:.74rem;color:var(--muted);line-height:1.6;margin-bottom:1rem;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.bounty-card-footer{display:flex;align-items:center;justify-content:space-between;padding-top:.9rem;border-top:1px solid var(--border);}
.bounty-prize{display:flex;flex-direction:column;gap:.1rem;}
.prize-amount{font-size:1rem;font-weight:800;color:var(--orange);}
.prize-xp{font-size:.62rem;font-weight:700;color:var(--muted);}
.bounty-deadline{text-align:right;}
.deadline-label{font-size:.58rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);}
.deadline-date{font-size:.72rem;font-weight:700;color:var(--white);}
.deadline-date.urgent{color:var(--red);}
.bounty-applicants{font-size:.65rem;color:var(--muted);margin-top:.6rem;}

/* STATUS OVERLAY for closed bounties */
.bounty-card.closed{opacity:.55;}
.bounty-card.closed .bounty-card-body{position:relative;}

/* EMPTY STATE */
.empty-bounties{text-align:center;padding:4rem 2rem;color:var(--muted);grid-column:1/-1;}
.empty-bounties-icon{font-size:3rem;margin-bottom:1rem;}

/* MODAL OVERLAY */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(4,8,16,.88);z-index:200;align-items:flex-start;justify-content:center;padding:2rem 1rem;overflow-y:auto;}
.modal-overlay.open{display:flex;}
.modal{background:var(--panel);border:1px solid var(--border);border-radius:16px;width:100%;max-width:680px;position:relative;}
.modal-top{height:5px;border-radius:16px 16px 0 0;}
.modal-head{padding:1.4rem 1.6rem;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;gap:1rem;}
.modal-head-info{flex:1;}
.modal-meta-row{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.6rem;}
.modal-title{font-size:1.15rem;font-weight:800;color:var(--white);line-height:1.3;}
.modal-close{background:transparent;border:none;color:var(--muted);cursor:pointer;font-size:1.1rem;flex-shrink:0;margin-top:.2rem;}
.modal-body{padding:1.4rem 1.6rem;}
.modal-desc{font-size:.84rem;color:var(--muted);line-height:1.8;margin-bottom:1.4rem;}
.modal-section-title{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:.7rem;}
.deliverables-list{list-style:none;display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.4rem;}
.deliverables-list li{font-size:.8rem;color:var(--white);display:flex;align-items:flex-start;gap:.6rem;}
.deliverables-list li::before{content:'→';color:var(--orange);flex-shrink:0;}
.prize-box{background:var(--deep);border:1px solid rgba(255,138,0,.2);border-radius:10px;padding:1rem 1.2rem;display:flex;align-items:center;gap:1.5rem;margin-bottom:1.4rem;flex-wrap:wrap;}
.prize-box-item{display:flex;flex-direction:column;gap:.2rem;}
.prize-box-label{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);}
.prize-box-val{font-size:1.1rem;font-weight:800;}
.prize-box-val.cash{color:var(--orange);}
.prize-box-val.xp{color:#6b8cff;}
.prize-box-val.deadline{color:var(--white);font-size:.9rem;}
.modal-footer{padding:1.2rem 1.6rem;border-top:1px solid var(--border);display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;}

/* LOGIN PROMPT */
.login-prompt{background:var(--blue-dim);border:1px solid rgba(20,40,255,.2);border-radius:10px;padding:1rem 1.2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.login-prompt-text{font-size:.78rem;color:var(--white);}
.login-prompt-text span{color:var(--muted);}

/* SUBMIT FORM */
.submit-form{display:none;}
.submit-form.visible{display:block;}
.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.9rem;}
.form-label{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);}
.form-input,.form-textarea{background:var(--deep);border:1px solid var(--border);border-radius:6px;padding:.6rem .9rem;color:var(--white);font-family:'Poppins',sans-serif;font-size:.8rem;outline:none;transition:border-color .2s;width:100%;}
.form-input:focus,.form-textarea:focus{border-color:rgba(20,40,255,.5);}
.form-textarea{min-height:120px;resize:vertical;line-height:1.6;}
.form-hint{font-size:.62rem;color:var(--muted);}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-family:'Poppins',sans-serif;font-size:.76rem;font-weight:700;padding:.6rem 1.3rem;border-radius:7px;cursor:pointer;border:none;transition:all .2s;}
.btn-primary{background:var(--orange);color:#000;}
.btn-primary:hover{background:#ffa333;}
.btn-secondary{background:var(--blue);color:#fff;}
.btn-secondary:hover{background:#2a3fff;}
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border);}
.btn-ghost:hover{color:var(--white);}
.btn-winner{background:rgba(0,200,100,.12);color:var(--green);border:1px solid rgba(0,200,100,.25);cursor:default;}

/* WINNER BANNER */
.winner-banner{background:rgba(0,200,100,.06);border:1px solid rgba(0,200,100,.2);border-radius:8px;padding:.85rem 1rem;display:flex;align-items:center;gap:.75rem;margin-bottom:1.2rem;}
.winner-trophy{font-size:1.4rem;}
.winner-text{font-size:.78rem;color:var(--white);line-height:1.5;}
.winner-text strong{color:var(--green);}

@media(max-width:680px){
  .bounty-grid{grid-template-columns:1fr;padding:0 1rem 2rem;}
  .bounty-hero{padding:2rem 1rem 1.5rem;}
  .filters{padding:0 1rem 1.2rem;}
  .modal{margin:0;}
  .modal-overlay{padding:.5rem;}
}

  /* FOOTER */
  footer { background: var(--deep); border-top: 1px solid var(--border); padding: 4rem 5vw 2rem; }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
  .footer-brand p { font-family: 'Poppins', sans-serif; color: var(--muted); font-size: .86rem; font-weight: 300; margin-top: .8rem; max-width: 220px; line-height: 1.65; }
  .footer-col h4 { font-family: 'Poppins', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.2rem; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: .6rem; }
  .footer-col a { font-family: 'Poppins', sans-serif; color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 300; transition: color .2s; }
  .footer-col a:hover { color: var(--white); }
  .newsletter-row { display: flex; gap: .5rem; margin-top: .8rem; }
  .newsletter-input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: .6rem .8rem; color: var(--white); font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 300; outline: none; }
  .newsletter-input:focus { border-color: var(--blue); }
  .newsletter-btn { background: var(--blue); color: #fff; border: none; border-radius: 4px; padding: .6rem 1rem; font-family: 'Poppins', sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: opacity .2s; }
  .newsletter-btn:hover { opacity: .85; }
  .social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
  .social-btn { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; background: var(--panel); color: var(--muted); font-size: .8rem; text-decoration: none; transition: border-color .2s, color .2s; }
  .social-btn img { width: 24px; height: 24px; }
  .social-btn:hover { border-color: var(--blue); color: var(--blue); }
  .footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
  .footer-bottom p { font-family: 'Poppins', sans-serif; font-size: .6rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
  .footer-brand .logo-img {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

  /* MOBILE MENU PANEL */
  #mobileMenu {
    display: none; position: fixed; top: 62px; left: 0; right: 0;
    z-index: 190; background: rgba(4,8,15,0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 5vw 1.6rem;
    transform: translateY(-8px); opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  #mobileMenu.open {
    display: block;
    animation: mobileIn .25s ease forwards;
  }
  @keyframes mobileIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mob-links { list-style: none; margin-bottom: 1.2rem; }
  .mob-links li { border-bottom: 1px solid var(--border); }
  .mob-links li:last-child { border-bottom: none; }
  .mob-links a {
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 500;
    color: var(--muted); text-decoration: none; padding: .9rem 0;
    transition: color .2s; text-transform: uppercase; letter-spacing: .04em;
  }
  .mob-links a:hover { color: var(--white); }
  /* Mobile services sub-items */
  .mob-sub { list-style: none; padding: 0 0 .5rem 1rem; }
  .mob-sub li { border-bottom: none; }
  .mob-sub a {
    font-size: .8rem; text-transform: none; letter-spacing: .02em;
    color: rgba(200,215,240,.5); padding: .5rem 0;
    display: flex; align-items: center; gap: .6rem;
  }
  .mob-sub a:hover { color: var(--white); }
  .mob-sub .dd-icon { width: 24px; height: 24px; border-radius: 5px; font-size: .75rem; display:flex;align-items:center;justify-content:center; }
  .mob-sub a:first-child .dd-icon { background: var(--blue-dim); }
  .mob-sub a:last-child .dd-icon { background: var(--orange-dim); }
  .mob-services-toggle { cursor: pointer; }
  .mob-chevron { font-size: .6rem; transition: transform .25s; }
  .mob-services-toggle.open .mob-chevron { transform: rotate(180deg); }
  .mob-sub { display: none; }
  .mob-services-toggle.open + .mob-sub { display: block; }
  /* Mobile bottom row */
  .mob-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }

  /* Light mode — mobile menu */
  body.light #mobileMenu { background: rgba(225,232,255,0.98); }
  body.light .mob-links a { color: rgba(10,15,36,.5); }
  body.light .mob-links a:hover { color: rgba(10,15,36,.9); }
  body.light .mob-sub a { color: rgba(10,15,36,.4); }
  body.light .mob-sub a:hover { color: rgba(10,15,36,.85); }
  body.light .hamburger span { background: var(--white); }

  /* RESPONSIVE */
  @media(max-width:900px){
    .cs-grid,#about,.dash-grid,.footer-grid,.bce-grid,.cf-grid{grid-template-columns:1fr}
    .stats-strip{grid-template-columns:repeat(2,1fr)}
    .impact-grid{grid-template-columns:repeat(3,1fr)}
    .feature-grid{grid-template-columns:1fr}
    .partners-grid{grid-template-columns:repeat(2,1fr)}
    .nav-links{ display: none; }
    .hamburger{ display: flex; }
    .nav-right .nav-cta { display: none; } /* login moves into mobile menu */
  }
  @media(max-width:500px){
    .partners-grid{grid-template-columns:1fr}
    .impact-grid{grid-template-columns:repeat(2,1fr)}
    .cf-form-row{grid-template-columns:1fr}
  }
  @media screen and (max-width:700px) {
    .hero-tagline,
    .hero-sub {
    font-size: 0.7rem; 
  }
}

/* ── LIGHT MODE STYLES FOR BOUNTY PAGES ── */
body.light .bounties-page-root,
body.light .bounty-detail-page-root {
  background: #F0F4FF !important;
  color: #0A0F24 !important;
}

body.light .bounty-hero h1 {
  color: #0A0F24 !important;
}

body.light .bounty-hero p {
  color: rgba(20,30,70,0.7) !important;
}

body.light .bounty-card,
body.light .bounty-detail-card,
body.light .modal {
  background: #FFFFFF !important;
  border-color: rgba(20,40,255,0.14) !important;
  box-shadow: 0 4px 20px rgba(20,40,120,0.05);
}

body.light .bounty-card h3,
body.light .modal-title {
  color: #0A0F24 !important;
}

body.light .bounty-card-desc,
body.light .modal-desc,
body.light .bounty-applicants {
  color: rgba(20,30,70,0.65) !important;
}

body.light .bounty-card-footer {
  border-color: rgba(20,40,255,0.1) !important;
}

body.light .prize-xp,
body.light .deadline-label {
  color: rgba(20,30,70,0.6) !important;
}

body.light .deadline-date {
  color: #0A0F24 !important;
}

body.light .cat-btn:not(.active),
body.light .bounty-cat-btn:not(.active) {
  background: #FFFFFF !important;
  border: 1px solid rgba(20,40,255,0.18) !important;
  color: #0A0F24 !important;
}

body.light .cat-btn:not(.active):hover,
body.light .bounty-cat-btn:not(.active):hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

body.light .cat-btn.active,
body.light .bounty-cat-btn.active {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #ffffff !important;
}

body.light .bounty-search-input {
  background: #FFFFFF !important;
  border: 1px solid rgba(20,40,255,0.2) !important;
  color: #0A0F24 !important;
}

body.light .bounty-search-input::placeholder {
  color: rgba(20,30,70,0.5) !important;
}

body.light .form-input,
body.light .form-textarea,
body.light .bounty-input {
  background: #F0F4FF !important;
  border: 1px solid rgba(20,40,255,0.2) !important;
  color: #0A0F24 !important;
}

body.light .form-label,
body.light .form-hint {
  color: rgba(20,30,70,0.65) !important;
}