:root{
  --brand-blue:#0065e0;
  --brand-teal:#2aa48f;
  --brand-teal-light:#00e058;
  --brand-teal-dark:#23866f; /* for focus/hover */
  --bg:#f6f8fb;
  --panel:#ffffff;
  --muted:#6b7280;
  --radius:10px;
  --shadow: 0 6px 24px rgba(15,23,42,0.06);
  --accent: var(--brand-teal);
}

* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, Segoe UI, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbfd, #f6f8fb);
  margin: 24px;
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tabs {
  display: flex;
  width: 80%;
}
.tab {
  color: var(--muted);
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  width: 50%;
  padding-top: 1%;
}
.tab[aria-selected="true"] {
    color: var(--brand-teal-light);
  border: 1px solid #ddd;
  border-top: 2px solid var(--brand-teal-light);
  border-bottom: 1px solid #fff;
}

header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.langbtn {
  background: transparent;
  border: 1px solid #e6eef6;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.aboutbtn {
  background: transparent;
  border: 1px solid #e6eef6;
  transform: translateY(5px);
  border-radius: 8px;
  cursor: pointer;
}
.aboutbtn img {
  height: 25px;
  width: 25px;
}
h1 {
  margin: 0;
  color: var(--brand-teal);
  font-size: 20px;
}
header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lbl {
  font-weight: 600;
  color: #334155;
  font-size: 13px;
}
textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  background: linear-gradient(180deg, #fff, #fbfdff);
  font-family: monospace;
  font-size: 13px;
  color: #0f1724;
  resize: vertical;
}
.options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.options label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
/*
.options input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.options input[type="checkbox"]:checked {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}
.options input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.08s ease-in-out;
  background: white;
}
.options input[type="checkbox"]:checked::after {
  transform: scale(1);
}
.options input[type="checkbox"]:focus {
  outline: 3px solid rgba(41, 168, 139, 0.15);
  box-shadow: 0 0 0 4px rgba(41, 168, 139, 0.06);
}
*/

.checkbox-wrapper-15 .cbx {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .checkbox-wrapper-15 .cbx span {
    display: inline-block;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
  }
  .checkbox-wrapper-15 .cbx span:first-child {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: scale(0.75);
    vertical-align: middle;
    border: 1px solid var(--brand-teal-light);
    transition: all 0.2s ease;
  }
  .checkbox-wrapper-15 .cbx span:first-child svg {
    position: absolute;
    z-index: 1;
    top: 7px;
    left: 6px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
  }
  .checkbox-wrapper-15 .cbx span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #506EEC;
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
    transition-delay: 0.2s;
  }
/*  .checkbox-wrapper-15 .cbx span:last-child:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    height: 1px;
    width: 100%;
    background: #B9B8C3;
    transform-origin: 0 0;
    transform: scaleX(0);
  }*/
  .checkbox-wrapper-15 .cbx:hover span:first-child {
    border-color: var(--brand-teal);
  }

  .checkbox-wrapper-15 .inp-cbx:checked + .cbx span:first-child {
    border-color: var(--brand-teal-light);
    background: var(--brand-teal-light);
    animation: check-15 0.6s ease;
  }
  .checkbox-wrapper-15 .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
  }
  .checkbox-wrapper-15 .inp-cbx:checked + .cbx span:first-child:before {
    transform: scale(2.2);
    opacity: 0;
    transition: all 0.6s ease;
  }
/*  .checkbox-wrapper-15 .inp-cbx:checked + .cbx span:last-child {
    color: #B9B8C3;
    transition: all 0.3s ease;
  }
  .checkbox-wrapper-15 .inp-cbx:checked + .cbx span:last-child:after {
    transform: scaleX(1);
    transition: all 0.3s ease;
  }*/

  @keyframes check-15 {
    50% {
      transform: scale(1.2);
    }
  }

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  color: #0f1724;
  cursor: pointer;
  transition: all 0.12s;
  font-weight: 600;
}
.btn.primary {
  background: linear-gradient(90deg, var(--brand-blue), #0a63d9);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(6, 78, 161, 0.12);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.action-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}
.action-btn-disabled {
    filter: brightness(0) saturate(100%) invert(46%) sepia(23%) saturate(233%) hue-rotate(182deg) brightness(91%) contrast(90%);
}
.action-btn:hover {
    border-radius: 20%;
    -moz-box-shadow:  1px 1px 1px #22222282;;
    -webkit-box-shadow:  1px 1px 1px #22222282;
    box-shadow:  1px 1px 1px #22222282;
}
.action-btn img {
    height: 25px;
    width: 25px;

}

#copy {
  border-left: 1px var(--muted) solid;
  padding-left: 10px;
}

footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.profile-link {
    color: #008835;
}
.footer-logo {
    width: 15px;
    height: 15px;
    transform: translateY(4px);
    margin-right: 1px;
}
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

/* Modal base */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

/* content */
.modal-content {
  position: relative;
  background: #fff;
  color: #111;
  width: min(720px, 92%);
  max-height: 85vh;
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(12px);
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 2;
}

/* header / body / footer */
.modal-header,
.modal-footer {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 9fr 1fr;  
  align-items: center;
  justify-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}
.modal-body {
  padding: 0 16px 16px 16px;
  line-height: 1.45;
}

/* close buttons */
.modal-close{
	background: linear-gradient(90deg, var(--brand-blue), #0a63d9);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  margin: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
	color: #fff;
	box-shadow: 0 6px 18px rgba(6, 78, 161, 0.12);
}

/* visible state */
.modal[aria-hidden="false"] {
  display: flex;
}
.modal[aria-hidden="false"] .modal-content {
  transform: translateY(0);
}

.social {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8rem;
  list-style: none;
}

.social li {
  position: relative;
  width: 70px;
  justify-self: center;
}

.social li::after {
  position: absolute;
  /* content: "Tooltip"; */
  content: attr(data-tooltip);
  inset: -45% auto auto 50%;
  z-index: -1;
  translate: -50%;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
   /*background: #c57c08; */
  background: var(--bg, #070707);
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* transition: all 0.3s ease-in-out; */
  transition: inset 0.4s cubic-bezier(0.47, 2, 0.41, 1.5),
    visibility 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.social li:has(a:hover, a:focus-visible)::after {
  opacity: 1;
  visibility: visible;
  inset-block-start: -60%;
}

.social a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  font-size: 1.75rem;
  color: #070707;
  border: 1px solid;
  border-radius: 100%;
  text-decoration: none;
  outline: none;
  overflow: hidden;
  transition: color 0.3s ease-in-out;
}

.social a > img {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.social a:hover {
  filter: invert(100%);
}

.social a::after {
  position: absolute;
  content: "";
  inset: 100% 0 0;
  /* background: #070707; */
  background: var(--bg, #070707);
  pointer-events: none;
  /*transition: inset 0.3s ease-in-out;*/
}

.social a:hover,
.social a:focus-visible {
  color: #fff;
  border: none;
}

.social a:hover::after,
.social a:focus-visible::after {
  inset-block-start: 0;
}
.hidden {
    display: none;
}


@media (max-width: 720px) {
  .wrap {
    padding: 16px;
  }
  .options {
    gap: 8px;
  }
    .tabs {
      display: flex;
      width: 70%;
    }
  .actions {
    flex-wrap: wrap;
  }
}
