/* ── FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }

.label { font-size: 13px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 3px; }
.req { color: #ff8080; font-size: 14px; }
.field-row { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; }
.field-hint { font-size: 11px; color: rgba(255,255,255,0.55); }
.char { font-size: 11px; color: rgba(255,255,255,0.45); }

.inp {
  background: rgba(0,0,0,0.22); border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 9px; color: #fff; font-size: 14px; font-weight: 500;
  padding: 11px 13px; outline: none; font-family: 'Inter', sans-serif;
  transition: border-color 0.15s; width: 100%;
}
.inp:focus { border-color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.28); }
.inp::placeholder { color: rgba(255,255,255,0.35); font-weight: 400; }
textarea.inp { line-height: 1.6; resize: none; }

/* IMAGE UPLOAD */
.img-box {
  background: rgba(0,0,0,0.18); border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 9px; min-height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; transition: all 0.15s; position: relative; overflow: hidden;
}
.img-box:hover { border-color: rgba(255,255,255,0.65); background: rgba(0,0,0,0.24); }
.img-box .ico { font-size: 26px; color: rgba(255,255,255,0.4); }
.img-box .t1 { font-size: 13px; color: #fff; font-weight: 500; }
.img-box .t2 { font-size: 11px; color: rgba(255,255,255,0.5); }
#img-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: rgba(0,0,0,0.3); display: none; }


/* ── SECURITY BLOCK ── */
.sec-block {
  background: rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 20px; margin-bottom: 22px;
}
.sec-title {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.always-on {
  background: rgba(105,240,174,0.14); border: 1px solid rgba(105,240,174,0.4);
  color: #69f0ae; font-size: 10px; padding: 2px 7px; border-radius: 5px;
  font-weight: 700; letter-spacing: 0; text-transform: none;
}
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-item { display: flex; flex-direction: column; gap: 5px; }
.sec-row { display: flex; align-items: center; gap: 9px; }
.sec-name { font-size: 13px; font-weight: 600; color: #fff; }
.sec-desc { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.5; padding-left: 29px; }

/* guarantee indicator — a statement of fact, not a control */
.sec-check {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: rgba(105,240,174,0.16);
  border: 1px solid rgba(105,240,174,0.5);
  display: flex; align-items: center; justify-content: center;
}
.sec-check svg { width: 12px; height: 12px; fill: #69f0ae; display: block; }
.sec-lock { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; }
.sec-lock svg { width: 13px; height: 13px; fill: rgba(255,255,255,0.4); display: block; }


/* ── SOCIALS ── */
.meta-divider { border-top: 1px solid rgba(255,255,255,0.15); margin: 22px 0; }
.meta-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.soc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.soc-grp { display: flex; flex-direction: column; gap: 7px; }
.soc-wrap {
  display: flex; align-items: center; background: rgba(0,0,0,0.22);
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 9px; overflow: hidden; transition: border-color 0.15s;
}
.soc-wrap:focus-within { border-color: rgba(255,255,255,0.85); }
.soc-pre {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.18); flex-shrink: 0;
}
.soc-pre.tw { background: #000; }
.soc-pre.tg { background: #229ED9; }
.soc-pre.dc { background: #5865F2; }
.soc-pre.yt { background: #FF0000; }
.soc-pre.wb { background: rgba(255,255,255,0.15); }
.soc-pre svg { width: 18px; height: 18px; fill: #fff; }
.soc-wrap input {
  background: none; border: none; outline: none; color: #fff; font-size: 13px;
  padding: 0 12px; flex: 1; height: 42px; font-family: 'Inter', sans-serif;
}
.soc-wrap input::placeholder { color: rgba(255,255,255,0.35); }


/* ── TAGS ── */
.tags-wrap { margin-top: 20px; }
.tags-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.tags-count { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; }
.tags-input-row {
  display: flex; align-items: center; background: rgba(0,0,0,0.22);
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 9px;
  min-height: 46px; padding: 5px 10px; flex-wrap: wrap; gap: 5px; cursor: text; transition: border-color 0.15s;
}
.tags-input-row:focus-within { border-color: rgba(255,255,255,0.85); }
.tag-chip {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 18px; padding: 3px 9px 3px 10px; font-size: 12px; font-weight: 600; color: #fff;
}
.tag-chip .rm { cursor: pointer; opacity: 0.65; font-size: 14px; line-height: 1; margin-left: 1px; }
.tag-chip .rm:hover { opacity: 1; }
.tags-input {
  background: none; border: none; outline: none; color: #fff; font-size: 13px;
  font-family: 'Inter', sans-serif; min-width: 100px; flex: 1; padding: 3px 0;
}
.tags-input::placeholder { color: rgba(255,255,255,0.38); }
.tags-hint { margin-top: 7px; font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.9; }
.tag-suggest {
  display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px; padding: 2px 9px; font-size: 11px; color: rgba(255,255,255,0.75);
  margin: 1px 2px; cursor: pointer; transition: all 0.12s;
}
.tag-suggest:hover { background: rgba(255,255,255,0.2); color: #fff; }


/* ── FORM CARD ONLY: white paper on the blue page ── */
#form-card {
  background: #ffffff;
  border: 1px solid #e2e8f2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
#form-card .card-title { color: #0b1a33; }
#form-card .label      { color: #26344b; }
#form-card .req        { color: #d0342c; }

#form-card .inp, #form-card textarea.inp, #form-card .tags-input {
  background: #fbfcfe;
  border: 1px solid #d3ddec;
  color: #0b1a33;
}
#form-card .inp::placeholder { color: #9aa7bd; }
#form-card .inp:focus {
  border-color: #1273e6;
  box-shadow: 0 0 0 3px rgba(18,115,230,0.15);
}
#form-card .field-hint,
#form-card .char,
#form-card .tags-hint,
#form-card .tags-count,
#form-card .meta-title { color: #6b7890; }

#form-card .img-box     { background: #fbfcfe; border: 1px dashed #cdd9ea; }
#form-card .img-box .t1 { color: #26344b; }
#form-card .img-box .t2 { color: #7a869c; }
#form-card .img-box .ico { color: #9aa7bd; }

#form-card .meta-divider { border-top: 1px solid #e6ebf3; }

#form-card .tag-chip        { background: #e7f0fd; color: #0a3f8f; }
#form-card .tag-chip button { color: #0a3f8f; }

/* create button keeps its blue gradient; sub-label needs light text on it */
#form-card .create-btn-sub { color: rgba(255,255,255,0.85); }

/* security block on white paper */
#form-card .sec-block { background: #f5f8fc; border: 1px solid #e2e8f2; margin-top: 28px; }
#form-card .sec-title { color: #6b7890; }
#form-card .sec-title svg { fill: #6b7890; }
#form-card .sec-name  { color: #0b1a33; }
#form-card .sec-desc  { color: #6b7890; }
#form-card .sec-lock svg { fill: #b3c0d4; }
/* green check + "enforced" badge already read fine on light, leave as-is */

/* social section labels */
#form-card .meta-title { color: #26344b; }
#form-card .meta-title span { color: #7a869c !important; }
#form-card .soc-label,
#form-card .soc-group > label { color: #26344b; }

/* ── social input fields on white paper ── */
#form-card .soc-wrap {
  background: #fbfcfe;
  border: 1.5px solid #d3ddec;
}
#form-card .soc-wrap:focus-within { border-color: #1273e6; }
#form-card .soc-wrap input { color: #0b1a33; }
#form-card .soc-wrap input::placeholder { color: #9aa7bd; }
/* website (globe) prefix: was translucent white + white icon → invisible; give it a light chip */
#form-card .soc-pre.wb { background: #eef3fa; }
#form-card .soc-pre.wb svg { fill: #5b6a82; }
/* coloured brand prefixes (tw/tg/dc) keep their fills — they read fine */

/* ── tags field on white paper ── */
#form-card .tags-input-row {
  background: #fbfcfe;
  border: 1.5px solid #d3ddec;
}
#form-card .tags-input-row:focus-within { border-color: #1273e6; }
#form-card .tags-input { color: #0b1a33; }
#form-card .tags-input::placeholder { color: #9aa7bd; }
#form-card .tag-chip {
  background: #e7f0fd; border: 1px solid #cfe0fb; color: #0a3f8f;
}
#form-card .tags-count, #form-card .tags-hint { color: #6b7890; }

/* belt-and-braces: force the security descriptions dark even against later base rules */
#form-card .sec-desc { color: #6b7890 !important; }
#form-card .sec-name { color: #0b1a33 !important; }

/* ── the "Built to Protect Investors" badge: darker green so it reads on light ── */
#form-card .always-on {
  background: #12a150;
  border: 1px solid #0a7a42;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2px;
}

/* ── preset tag chips (meme, sui, cat…): were white-on-white = invisible ── */
#form-card .tag-suggest {
  background: #eef3fa;
  border: 1px solid #d3ddec;
  color: #26344b;
}
#form-card .tag-suggest:hover {
  background: #e7f0fd;
  color: #0a3f8f;
  border-color: #cfe0fb;
}

/* ── darken all placeholders inside the card so they're clearly readable ── */
#form-card .inp::placeholder,
#form-card textarea.inp::placeholder,
#form-card .soc-wrap input::placeholder,
#form-card .tags-input::placeholder {
  color: #7d8aa0;
}

/* ── "(optional)" labels: inline opacity:0.6 made them too faint on white ── */
#form-card .meta-title span,
#form-card .label span {
  opacity: 1 !important;
  color: #7a869c !important;
}

/* ── security rows now use emoji instead of the green-check svg ── */
#form-card .sec-check {
  width: 22px; height: 22px;
  background: none !important;
  border: none !important;
  font-size: 16px;
  line-height: 1;
}

/* ── darken muted text inside the white form card for readability ── */
#form-card .field-hint,
#form-card .char,
#form-card .tags-hint,
#form-card .tags-count,
#form-card .sec-title,
#form-card .sec-desc { color: #465468 !important; }
#form-card .sec-title svg { fill: #465468 !important; }
#form-card .meta-title span,
#form-card .label span { color: #566276 !important; }
#form-card .img-box .t2 { color: #566276 !important; }
#form-card .tag-suggest { color: #2b3a52 !important; }
#form-card .inp::placeholder,
#form-card textarea.inp::placeholder,
#form-card .soc-wrap input::placeholder,
#form-card .tags-input::placeholder { color: #7c8aa0 !important; }
