*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg:#080b14;
    --panel:#101726;
    --panel2:#151f34;
    --line:rgba(255,255,255,0.08);
    --text:#f4f7ff;
    --muted:#93a0c3;
    --primary:#7c5cff;
    --secondary:#00d4ff;
    --success:#00f5b0;
    --danger:#ff5d7a;
}

body{
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(circle at top left,#18234b 0%, transparent 35%),
        radial-gradient(circle at bottom right,#14293c 0%, transparent 35%),
        var(--bg);
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
}

header{
    padding:28px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(12px);
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-badge{
    width:46px;
    height:46px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    display:grid;
    place-items:center;
    font-weight:800;
    font-size:20px;
}

.logo h1{
    font-size:24px;
}

.logo p{
    color:var(--muted);
    font-size:13px;
}

.wrapper{
    display:grid;
    grid-template-columns:1.2fr .9fr;
    gap:24px;
    padding:24px;
}

.card{
    background:rgba(16,23,38,0.82);
    border:1px solid var(--line);
    border-radius:24px;
    padding:24px;
    backdrop-filter:blur(14px);
    box-shadow:0 10px 40px rgba(0,0,0,.35);
}

.section-title{
    margin-bottom:18px;
}

.section-title h2{
    font-size:20px;
    margin-bottom:4px;
}

.section-title p{
    color:var(--muted);
    font-size:14px;
}

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.field{
    margin-bottom:14px;
}

.field.full{
    grid-column:1/-1;
}

label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    color:var(--muted);
}

input,select,textarea{
    width:100%;
    border:none;
    outline:none;
    border-radius:16px;
    background:var(--panel2);
    color:var(--text);
    padding:14px;
    border:1px solid transparent;
    transition:.2s;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(124,92,255,.18);
}

textarea{
    resize:vertical;
    min-height:120px;
}

.buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:10px;
}

button{
    border:none;
    cursor:pointer;
    border-radius:14px;
    padding:14px 18px;
    color:white;
    font-weight:700;
    transition:.2s;
}

.primary-btn{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
}

.secondary-btn{
    background:#1d2740;
}

button:hover{
    transform:translateY(-2px);
}

.output-box{
    margin-top:22px;
}

pre{
    background:#070b15;
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px;
    overflow:auto;
    max-height:320px;
    line-height:1.6;
    font-size:14px;
}

.example{
    background:#121c2f;
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
    margin-bottom:14px;
    cursor:pointer;
    transition:.2s;
}

.example:hover{
    border-color:var(--primary);
    transform:translateY(-2px);
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(124,92,255,.15);
    color:#c6bcff;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    margin-bottom:10px;
}

.example h4{
    margin-bottom:8px;
}

.example p{
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
}

.code-title{
    margin-top:20px;
    margin-bottom:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.tip{
    margin-top:16px;
    padding:16px;
    border-radius:16px;
    background:rgba(0,245,176,.08);
    border:1px solid rgba(0,245,176,.2);
    color:#c6fff0;
    font-size:14px;
    line-height:1.6;
}

footer{
    text-align:center;
    padding:20px;
    color:var(--muted);
    font-size:13px;
}

@media(max-width:980px){
    .wrapper{
        grid-template-columns:1fr;
    }

    .grid{
        grid-template-columns:1fr;
    }
}