/* ==========================================================
   EditPad Blank Space — style.css  v3.0
   White · Black text · Soft Red (#e61b23) on hover/active
   ========================================================== */

.editpad-bs-wrap {
  --red:       #e61b23;
  --red-dark:  #c0121a;
  --red-bg:    #fff5f5;
  --red-soft:  rgba(230,27,35,.08);
  --red-med:   rgba(230,27,35,.18);
  --red-shadow:0 4px 18px rgba(230,27,35,.20);
  --black:     #1a1a1a;
  --g700:      #444;
  --g500:      #888;
  --g400:      #aaa;
  --g300:      #ccc;
  --g200:      #e6e6e6;
  --g100:      #f4f4f4;
  --white:     #fff;
  --r-sm:      8px;
  --r-md:      12px;
  --r-lg:      16px;
  --sh-sm:     0 2px 8px rgba(0,0,0,.06);
  --sh-md:     0 4px 20px rgba(0,0,0,.09);
}

.editpad-bs-wrap,
.editpad-bs-wrap * { box-sizing: border-box; }

.editpad-bs-wrap {
  background: var(--white);
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 70px;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--black);
}

/* ══ HEADER ══════════════════════════════════════════════ */
.ebs-header {
  padding: 44px 24px 36px;
  border-bottom: 1px solid var(--g200);
  margin-bottom: 28px;
  text-align: center;
}
.ebs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-bg);
  border: 1px solid rgba(230,27,35,.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.ebs-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: ebs-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ebs-blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.7); }
}
.ebs-title {
  font-size: clamp(22px, 4.2vw, 38px) !important;
  font-weight: 800 !important;
  color: var(--black) !important;
  line-height: 1.2 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  letter-spacing: -.02em;
}
.ebs-subtitle {
  font-size: 15px;
  line-height: 1.75;
  color: var(--g700);
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

/* ══ TOOL BOX ════════════════════════════════════════════ */
.ebs-tool-box {
  border: 1.5px solid var(--g200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
  margin: 0 16px;
}
.ebs-section { padding: 22px 26px; }
.ebs-divider { height: 1px; background: var(--g200); }

.ebs-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g700);
  margin-bottom: 14px;
}
.ebs-lbl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Char type buttons ── */
.ebs-char-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ebs-char-btn {
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .15s;
  text-align: left;
  min-width: 130px;
}
.ebs-char-btn:hover {
  border-color: var(--red);
  background: var(--red-bg);
  box-shadow: var(--red-shadow);
  transform: translateY(-1px);
}
.ebs-char-btn.active {
  border-color: var(--red);
  background: var(--red-bg);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.ebs-cname {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  display: block;
  pointer-events: none;
}
.ebs-char-btn.active .ebs-cname,
.ebs-char-btn:hover   .ebs-cname { color: var(--red-dark); }
.ebs-ctag {
  font-size: 10px;
  font-weight: 600;
  color: var(--g500);
  display: block;
  pointer-events: none;
}
.ebs-ctag.best { color: var(--red); }
.ebs-char-btn.active .ebs-ctag { color: var(--red); }

@media (max-width: 480px) {
  .ebs-char-types { display: grid; grid-template-columns: 1fr 1fr; }
  .ebs-char-btn { min-width: 0; }
}

/* ── Amount buttons ── */
.ebs-amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 13px;
}
.ebs-amount-btn {
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-sm);
  color: var(--g700);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  width: 58px;
  height: 48px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .15s;
}
.ebs-amount-btn:hover {
  border-color: var(--red);
  color: var(--red-dark);
  background: var(--red-bg);
  box-shadow: var(--red-shadow);
  transform: translateY(-1px);
}
.ebs-amount-btn.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: var(--red-shadow);
}
.ebs-amount-btn.active:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
@media (max-width: 400px) {
  .ebs-amount-btn { width: calc(33.33% - 6px); }
}

/* ── Custom input ── */
.ebs-custom-row { display: flex; gap: 10px; }
.ebs-custom-input {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-sm);
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 15px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ebs-custom-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.ebs-custom-input::placeholder { color: var(--g300); }
.ebs-custom-apply {
  background: var(--white);
  border: 1.5px solid var(--red);
  border-radius: var(--r-sm);
  color: var(--red);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s, color .18s, box-shadow .18s, transform .15s;
}
.ebs-custom-apply:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--red-shadow);
  transform: translateY(-1px);
}

/* ── Output ── */
.ebs-output-wrap { margin-bottom: 14px; }
.ebs-output-box {
  background: var(--g100);
  border: 1.5px solid var(--g200);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 18px 20px 14px;
  min-height: 68px;
  display: flex;
  align-items: flex-start;
  transition: border-color .18s, background .18s;
}
.ebs-output-box:hover {
  border-color: var(--red);
  background: var(--red-bg);
}
/* LEFT-ALIGNED output text */
.ebs-output-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 26px;
  line-height: 1.4;
  color: var(--g400);
  word-break: break-all;
  text-align: left;
  width: 100%;
}
.ebs-output-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 10px 16px;
}
.ebs-output-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--g500);
}
.ebs-info-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g300);
  flex-shrink: 0;
}
/* Count badge — clear red ── */
.ebs-chars-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-bg);
  border: 1.5px solid rgba(230,27,35,.22);
  border-radius: 100px;
  padding: 4px 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Copy button ── */
.ebs-copy-btn {
  width: 100%;
  padding: 15px 22px;
  background: var(--red);
  border: none;
  border-radius: var(--r-md);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: var(--red-shadow);
  transition: background .18s, box-shadow .18s, transform .15s;
  letter-spacing: .01em;
}
.ebs-copy-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 26px rgba(230,27,35,.30);
  transform: translateY(-2px);
}
.ebs-copy-btn:active { transform: scale(.98); }
.ebs-copy-btn.copied {
  background: #16a34a;
  box-shadow: 0 4px 18px rgba(22,163,74,.30);
}
.ebs-ico { width: 17px; height: 17px; stroke: currentColor; flex-shrink: 0; }

/* ══ GUIDE ═══════════════════════════════════════════════ */
.ebs-guide { margin: 44px 16px 0; }
.ebs-guide-heading {
  font-size: clamp(17px, 2.8vw, 24px) !important;
  font-weight: 800 !important;
  color: var(--black) !important;
  margin: 0 0 22px !important;
  padding: 0 0 14px !important;
  border: none !important;
  border-bottom: 2px solid var(--g100) !important;
  line-height: 1.2 !important;
}
.ebs-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 520px) { .ebs-steps-grid { grid-template-columns: 1fr; } }
.ebs-step-card {
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-md);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .18s;
}
.ebs-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s;
}
.ebs-step-card:hover {
  border-color: var(--red);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.ebs-step-card:hover::before { opacity: 1; }
.ebs-step-number {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.ebs-step-emoji { font-size: 26px; margin-bottom: 9px; line-height: 1; }
.ebs-step-title { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 7px; }
.ebs-step-desc { font-size: 13px; color: var(--g500); line-height: 1.65; margin: 0; }

/* ══ CHARACTERS TABLE ════════════════════════════════════ */
.ebs-table-section {
  margin: 48px 16px 0;
}
.ebs-table-header { margin-bottom: 20px; }
.ebs-table-heading {
  font-size: clamp(17px, 2.8vw, 24px) !important;
  font-weight: 800 !important;
  color: var(--black) !important;
  margin: 0 0 8px !important;
  padding: 0 0 14px !important;
  border: none !important;
  border-bottom: 2px solid var(--g100) !important;
  line-height: 1.2 !important;
}
.ebs-table-sub {
  font-size: 13.5px;
  color: var(--g500);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Scrollable wrapper for small screens */
.ebs-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--g200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.ebs-chars-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--white);
}
.ebs-chars-table thead tr {
  background: var(--g100);
  border-bottom: 2px solid var(--g200);
}
.ebs-chars-table thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g700);
  white-space: nowrap;
}
.ebs-chars-table thead th:first-child { padding-left: 20px; }
.ebs-chars-table tbody tr {
  border-bottom: 1px solid var(--g200);
  transition: background .15s;
}
.ebs-chars-table tbody tr:last-child { border-bottom: none; }
.ebs-chars-table tbody tr:hover { background: var(--g100); }
.ebs-chars-table tbody td {
  padding: 11px 16px;
  vertical-align: middle;
  color: var(--black);
}
.ebs-chars-table tbody td:first-child { padding-left: 20px; }

/* Col specifics */
.ebs-col-num  { color: var(--g400) !important; font-weight: 600; font-size: 12px; width: 40px; }
.ebs-col-name { font-weight: 600; }
.ebs-col-example { font-size: 15px; letter-spacing: .05em; }

.ebs-unicode-badge {
  display: inline-block;
  background: var(--g100);
  border: 1px solid var(--g200);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--red-dark);
  white-space: nowrap;
}

.ebs-html-code {
  background: var(--g100);
  border: 1px solid var(--g200);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--g700);
  white-space: nowrap;
}

.ebs-example-bracket { color: var(--g300); font-size: 12px; }

/* Table copy button */
.ebs-table-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-sm);
  color: var(--g700);
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .14s;
}
.ebs-table-copy-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}
.ebs-table-copy-btn:hover {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--red);
  box-shadow: 0 2px 10px rgba(230,27,35,.15);
  transform: translateY(-1px);
}
.ebs-table-copy-btn.copied {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}

/* ══ TOAST ═══════════════════════════════════════════════ */
.ebs-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #111;
  color: #4ade80;
  border: 1.5px solid #4ade80;
  border-radius: 100px;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  white-space: nowrap;
}
.ebs-toast svg { width: 15px; height: 15px; stroke: #4ade80; flex-shrink: 0; }
.ebs-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 600px) {
  .ebs-header  { padding: 32px 16px 26px; }
  .ebs-tool-box{ margin: 0 8px; }
  .ebs-guide, .ebs-table-section { margin-left: 8px; margin-right: 8px; }
  .ebs-section { padding: 18px 16px; }
  .ebs-subtitle { font-size: 14px; }
}
