:root{
    --bg:#07030f;
    --card:linear-gradient(180deg,rgba(20,10,35,.92),rgba(9,4,18,.96));
    --purple:#7a2cff;
    --purple-light:#a855f7;
    --purple-soft:#c084fc;
    --hot:#ff3d7f;
    --green:#25d366;
    --red:#ff5c7a;
    --text:#ffffff;
    --text-2:#dcd6ea;
    --muted:#a8a3b8;
    --border:rgba(255,255,255,.08);
    --border-2:rgba(255,255,255,.14);
    --display:'Chakra Petch',sans-serif;
}

*{box-sizing:border-box}

body{
    margin:0;
    min-height:100vh;
    background:
        radial-gradient(900px 500px at 15% -10%,rgba(122,44,255,.25),transparent 60%),
        radial-gradient(800px 500px at 100% 0%,rgba(255,61,127,.12),transparent 60%),
        var(--bg);
    color:var(--text-2);
    font-family:'Inter',sans-serif;
    font-size:15px;
    line-height:1.55;
}

.tp-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:1040px;
    margin:0 auto;
    padding:20px 16px;
}

.tp-brand img{height:38px;display:block}

.tp-back{
    color:var(--muted);
    text-decoration:none;
    font-size:14px;
}

.tp-back:hover{color:var(--text)}

.tp-top-right{display:flex;align-items:center;gap:18px}

.tp-langs{display:flex;gap:4px}

.tp-langs a{
    padding:4px 9px;
    border-radius:8px;
    color:var(--muted);
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.tp-langs a:hover{color:var(--text)}

.tp-langs a.active{background:rgba(122,44,255,.18);color:var(--purple-soft)}

@media (max-width:520px){
    .tp-back span{display:none}
}

.tp-wrap{
    max-width:1040px;
    margin:0 auto;
    padding:24px 16px 64px;
}

.tp-head{
    max-width:680px;
    margin:0 auto 40px;
    text-align:center;
}

.tp-kicker{
    display:inline-flex;
    gap:8px;
    padding:6px 14px;
    border-radius:999px;
    background:rgba(122,44,255,.12);
    border:1px solid rgba(192,132,252,.25);
    color:var(--purple-soft);
    font-family:var(--display);
    font-size:12.5px;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.tp-head h1{
    margin:18px 0 12px;
    color:var(--text);
    font-family:var(--display);
    font-size:clamp(28px,5vw,44px);
    line-height:1.1;
}

.tp-grad{
    background:linear-gradient(90deg,var(--purple-soft),var(--purple-light) 45%,var(--hot));
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.tp-head p{margin:0;color:var(--muted)}

.tp-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:24px;
}

.tp-card{
    padding:28px;
    border-radius:22px;
    background:var(--card);
    border:1px solid var(--border);
}

.tp-card-head{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
}

.tp-badge{
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--purple),var(--hot));
    color:#fff;
    font-family:var(--display);
    font-size:20px;
    font-weight:700;
}

.tp-card h2{
    margin:0;
    color:var(--text);
    font-family:var(--display);
    font-size:22px;
}

.tp-sub{color:var(--muted);font-size:13px}

.tp-download{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-bottom:22px;
    padding:12px;
    border-radius:14px;
    border:1px solid rgba(192,132,252,.35);
    background:rgba(122,44,255,.12);
    color:var(--purple-soft);
    font-weight:600;
    text-decoration:none;
}

.tp-download:hover{background:rgba(122,44,255,.22);color:#fff}

.tp-form{display:flex;flex-direction:column;gap:14px}

.tp-form label{display:flex;flex-direction:column;gap:6px;min-width:0}

.tp-form label span{font-size:13px;font-weight:600;color:var(--text-2)}

.tp-form small{font-weight:400;color:var(--muted)}

.tp-form input{
    width:100%;
    padding:11px 14px;
    border-radius:12px;
    border:1px solid var(--border-2);
    background:rgba(255,255,255,.04);
    color:var(--text);
    font:inherit;
    outline:none;
}

.tp-form input:focus{border-color:var(--purple-soft);background:rgba(255,255,255,.07)}

.tp-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.tp-captcha{display:flex;gap:12px;align-items:center}

.tp-captcha img{
    flex:none;
    width:160px;
    height:48px;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    cursor:pointer;
}

.tp-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.tp-submit{
    margin-top:4px;
    padding:13px;
    border:0;
    border-radius:14px;
    background:linear-gradient(90deg,var(--purple),var(--purple-light));
    color:#fff;
    font-family:var(--display);
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.tp-submit:hover{filter:brightness(1.1)}

.tp-submit:disabled{opacity:.6;cursor:wait}

.tp-msg{min-height:22px;font-size:14px;color:var(--muted)}

.tp-msg.ok{color:var(--green)}

.tp-msg.err{color:var(--red)}

.tp-note{
    margin:32px 0 0;
    text-align:center;
    color:var(--muted);
    font-size:13px;
}

@media (max-width:420px){
    .tp-card{padding:22px 18px}
    .tp-row{grid-template-columns:1fr}
    .tp-captcha img{width:130px;height:40px}
}
