:root{
  --bg1:#0b1020;
  --bg2:#141a33;
  --card:#0f152b;
  --text:#eef0ff;
  --muted:rgba(238,240,255,.7);
  --line:rgba(255,255,255,.12);
  --btn:#ffffff;
  --btnText:#0b1020;
  --ghost:rgba(255,255,255,.10);
  --accent:rgba(107,102,255,.9);
  --danger:#ff5b7a;
  --radius:18px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
  font-synthesis-weight:none;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:linear-gradient(180deg,var(--bg1),var(--bg2));
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
.bg{
  position:fixed; inset:-200px;
  background:
    radial-gradient(600px 400px at 20% 15%, rgba(107,102,255,.30), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(0,255,198,.14), transparent 55%),
    radial-gradient(900px 650px at 40% 85%, rgba(255,91,122,.12), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}
.topbar{
  max-width:1100px;
  margin:0 auto;
  padding:22px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{
  width:90px; 
  height:90px; 
  object-fit:contain;
  filter: drop-shadow(0 0 8px rgba(107,102,255,.6)) drop-shadow(0 0 16px rgba(107,102,255,.4));
  transition: filter 0.3s ease;
}
.brand__logo:hover{
  filter: drop-shadow(0 0 12px rgba(107,102,255,.8)) drop-shadow(0 0 24px rgba(107,102,255,.6));
}

.layout{
  max-width:1100px;
  margin:0 auto;
  padding:20px 18px 70px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:24px;
  align-items:start;
  flex:1;
}
.left h1{
  font-size:52px;
  line-height:1.02;
  margin:18px 0 14px;
}
.left p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width:520px;
}
.note{
  margin-top:18px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.note__dot{
  width:10px; height:10px; border-radius:99px;
  background: var(--accent);
  margin-top:5px;
}
.note__text{color:var(--muted); line-height:1.5; font-size:14px}

.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.tabs{
  display:flex;
  gap:0;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.tab{
  flex:1;
  padding:14px 12px;
  background:transparent;
  border:0;
  color:var(--muted);
  font-weight:700;
  cursor:pointer;
  transition: all 0.2s ease;
}
.tab:hover{
  color:var(--text);
  background: rgba(255,255,255,.03);
}
.tab--active{
  color:var(--text);
  background: rgba(255,255,255,.06);
}
.panel{display:none; padding:16px}
.panel--active{display:block}
.label{display:block; font-size:13px; color:var(--muted); margin:10px 0 8px}
.textarea{
  width:100%;
  min-height:140px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  resize:vertical;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.textarea:focus{
  border-color: rgba(107,102,255,.7);
  background: rgba(0,0,0,.25);
}
.input,.select{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.input:focus{
  border-color: rgba(107,102,255,.7);
  background: rgba(0,0,0,.25);
}
.row{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:8px}
.col{min-width:0}
.btn{
  width:100%;
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  background: var(--btn);
  color: var(--btnText);
  font-weight:800;
  cursor:pointer;
  transition: all 0.2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.btn:active{
  transform: translateY(0);
}
.btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn--ghost{
  background: var(--ghost);
  color: var(--text);
  border:1px solid var(--line);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.15);
}
.copyrow{display:flex; gap:10px; align-items:center}
.copyrow .input{flex:1}
.small{margin-top:8px; color:var(--muted); font-size:13px; line-height:1.5}
.out{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.error{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,91,122,.35);
  background: rgba(255,91,122,.10);
  color: var(--text);
  font-size:13px;
}
.hidden{display:none}

.btn:focus-visible,
.tab:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px){
  .layout{grid-template-columns:1fr}
  .left h1{font-size:40px}
}

.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: rgba(0,0,0,.18);
  color: var(--text);
  border: 1px solid var(--line);

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;

  padding-right: 40px;
}

.select:focus {
  outline: none;
  border-color: rgba(107,102,255,.7);
}

.select option {
  background-color: #0f152b;
  color: #eef0ff;
}
#link {
  display: none;
}

/* Footer */
.footer{
  margin-top:auto;
  padding:40px 18px 30px;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.footer__content{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:24px;
}
.footer__links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:20px;
  align-items:center;
}
.footer__link{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  padding:8px 12px;
  border-radius:8px;
  transition: all 0.2s ease;
  border:1px solid transparent;
}
.footer__link:hover{
  color:var(--text);
  background: rgba(255,255,255,.05);
  border-color:var(--line);
  transform: translateY(-2px);
}
.footer__link svg{
  flex-shrink:0;
  opacity:0.8;
  transition: opacity 0.2s ease;
}
.footer__link:hover svg{
  opacity:1;
}
.footer__copyright{
  text-align:center;
  color:var(--muted);
  font-size:13px;
  margin-top:10px;
}
.footer__copyright p{
  margin:0;
}

@media (max-width: 600px){
  .footer__links{
    gap:12px;
  }
  .footer__link{
    font-size:12px;
    padding:6px 10px;
  }
  .footer__link svg{
    width:18px;
    height:18px;
  }
}
