:root{
    --primary:#034AC4;
    --primary-dark:#023891;
    --secondary:#BBD89C;
    --secondary-dark:#8fbf6a;
    --brand-black:#161616;
    --white:#ffffff;

    --gradient:linear-gradient(135deg,#034AC4 0%,#00A6C8 45%,#BBD89C 100%);

    --bg:#f4f7fb;
    --card:#ffffff;
    --text:#161616;
    --muted:#6b7280;
    --border:#e5e7eb;
    --focus:#034AC4;

    --ok:#065f46;
    --err:#991b1b;
    --warn:#92400e;
}

*{box-sizing:border-box}

html,body{height:100%}

body{
    margin:0;
    background:
        radial-gradient(circle at top left, rgba(3,74,196,.08), transparent 32%),
        var(--bg);
    color:var(--text);
    font-family:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.container{
    max-width:760px;
    margin:0 auto;
    padding:24px 16px 48px;
}

header{
    margin:8px 0 20px;
    display:flex;
    align-items:center;
    gap:14px;
}

.logo{
    max-height:54px;
    max-width:220px;
    object-fit:contain;
}

.brand-header{
    display:flex;
    flex-direction:column;
    gap:2px;
}

h1{
    font-family:"Nexa","Montserrat",system-ui,sans-serif;
    font-size:clamp(22px,2.8vw,32px);
    margin:0 0 6px;
    font-weight:800;
    line-height:1.15;
    color:var(--primary);
}

p.lead{
    margin:0;
    color:var(--muted);
    font-size:14px;
}

.notice{
    margin:16px 0;
    padding:12px 14px;
    border:1px solid #fde68a;
    background:#fffbeb;
    color:var(--warn);
    border-radius:14px;
    font-size:14px;
}

.card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:18px;
    padding:18px;
    box-shadow:0 8px 24px rgba(3,74,196,.06);
}

.card.highlight{
    background:var(--gradient);
    color:#fff;
    border:none;
}

form .field{
    margin-bottom:14px;
}

label{
    display:block;
    font-size:13px;
    color:var(--muted);
    margin-bottom:6px;
    font-weight:600;
}

input[type="text"],
select,
button{
    font-size:16px;
}

input[type="text"],
select{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid var(--border);
    background:#fff;
    color:var(--text);
    outline:none;
    transition:border .15s ease, box-shadow .15s ease, background .15s ease;
    -webkit-appearance:none;
    appearance:none;
}

input[type="text"]:focus,
select:focus{
    border-color:var(--focus);
    box-shadow:0 0 0 3px rgba(3,74,196,.15);
}

input::placeholder{
    color:#9ca3af;
}

.hint{
    font-size:12px;
    color:var(--muted);
    margin-top:6px;
}

.actions{
    display:flex;
    gap:10px;
    margin-top:12px;
}

button{
    padding:12px 18px;
    border-radius:12px;
    border:none;
    background:var(--primary);
    color:#fff;
    cursor:pointer;
    font-weight:700;
    transition:filter .15s ease, transform .06s ease, box-shadow .15s ease;
    box-shadow:0 8px 18px rgba(3,74,196,.22);
}

button:hover{
    filter:brightness(1.06);
}

button.secondary{
    background:#fff;
    color:var(--primary);
    border:1px solid var(--primary);
    box-shadow:none;
}

button:disabled{
    opacity:.5;
    cursor:not-allowed;
    box-shadow:none;
}

button:active{
    transform:translateY(1px);
}

.status{
    margin-top:12px;
    font-size:14px;
    padding:10px 12px;
    border-radius:10px;
    display:none;
    border:1px solid var(--border);
    color:var(--muted);
    background:#fafafa;
}

.status.show{
    display:block;
}

.status.ok{
    border-color:rgba(5,150,105,.35);
    color:var(--ok);
    background:#ecfdf5;
}

.status.err{
    border-color:rgba(220,38,38,.35);
    color:var(--err);
    background:#fef2f2;
}

.status.warn{
    border-color:#facc15;
    color:var(--warn);
    background:#fffbeb;
}

.result{
    display:none;
    margin-top:16px;
}

.result.show{
    display:block;
}

.result .title{
    font-weight:800;
    margin:0 0 4px;
    color:var(--primary);
}

.result .desc{
    color:var(--muted);
    margin:0 0 12px;
    font-size:14px;
}

.result .linkbox{
    border:1px dashed var(--primary);
    background:#fff;
    border-radius:12px;
    padding:12px;
    word-break:break-all;
    font-size:15px;
}

.result .open{
    margin-top:12px;
    display:inline-block;
    text-decoration:none;
    font-weight:700;
    background:var(--primary);
    color:#fff;
    padding:12px 16px;
    border-radius:12px;
    box-shadow:0 8px 18px rgba(3,74,196,.22);
}

.result .open:hover{
    filter:brightness(1.06);
}

a{
    color:var(--primary);
}

hr{
    border:none;
    border-top:1px solid var(--border);
    margin:20px 0;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(3,74,196,.08);
    color:var(--primary);
    font-size:12px;
    font-weight:700;
}

.brand-strip{
    height:4px;
    width:100%;
    border-radius:999px;
    background:var(--gradient);
    margin-bottom:18px;
}

@media (max-width:480px){
    .container{
        padding:18px 14px 36px;
    }

    header{
        align-items:flex-start;
        flex-direction:column;
    }

    .logo{
        max-width:190px;
        max-height:48px;
    }

    .actions{
        flex-direction:column;
    }

    button{
        width:100%;
    }
}