@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --ys-bg: #edf6f8;
    --ys-surface: #ffffff;
    --ys-border: #d7e8ed;
    --ys-heading: #28303b;
    --ys-copy: #36495a;
    --ys-muted: #61778b;
    --ys-brand-a: #3097a8;
    --ys-brand-b: #58aa68;
    --ys-shadow: 0 26px 55px -40px rgba(15, 23, 42, 0.7);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
    color: var(--ys-copy);
    background: radial-gradient(circle at 10% 10%, #d7eef2 0%, #ecf6f8 36%, #f4fbfc 100%);
    position: relative;
    overflow-x: hidden;
}

.ys-bg-shape {
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
}

.ys-bg-shape-a {
    width: 360px;
    height: 360px;
    background: rgba(48, 151, 168, 0.12);
    top: -110px;
    left: -80px;
}

.ys-bg-shape-b {
    width: 430px;
    height: 430px;
    background: rgba(88, 170, 104, 0.13);
    right: -140px;
    bottom: -170px;
}

.ys-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 92vw);
    margin: 34px auto;
}

.ys-card {
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(236, 254, 255, 0.58) 0%, rgba(248, 250, 252, 0.42) 45%, rgba(255, 255, 255, 0.34) 100%);
    border: 1px solid rgba(215, 232, 237, 0.8);
    box-shadow: var(--ys-shadow);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    padding: 28px;
}

.ys-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ys-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b6479;
}

.ys-header h1 {
    margin: 0;
    color: var(--ys-heading);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.1;
    font-weight: 800;
}

.ys-sub {
    margin: 10px 0 0;
    color: var(--ys-muted);
    font-size: 14px;
}

.ys-badge-wrap {
    display: flex;
    align-items: flex-start;
}

.ys-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(130deg, #3097a8 0%, #58aa68 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ys-form {
    display: grid;
    gap: 12px;
}

.ys-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ys-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3b5667;
}

.ys-field input.form-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #cfe0ea;
    background: #f7fbfd;
    padding: 12px 14px;
    font-size: 15px;
    color: #253847;
    box-shadow: none;
}

.ys-field input.form-control:focus {
    border-color: var(--ys-brand-a);
    box-shadow: 0 0 0 3px rgba(48, 151, 168, 0.18);
    background: #fff;
}

.ys-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ys-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ys-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.ys-btn-primary {
    color: #fff;
    background: linear-gradient(120deg, #3097a8, #58aa68, #3097a8, #28303b);
    background-size: 250% 250%;
    animation: ys-gradient 4.3s ease infinite;
    box-shadow: 0 16px 28px -20px rgba(37, 99, 235, 0.75);
}

.ys-btn-secondary {
    color: #245362;
    background: #e7f4f6;
    border: 1px solid #c8e2e8;
}

.ys-btn-clear {
    color: #556d80;
    background: #eef3f7;
    border: 1px solid #dae5ec;
}

.ys-results {
    margin-top: 18px;
}

.ys-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ys-results-head h2 {
    margin: 0;
    color: var(--ys-heading);
    font-size: 20px;
    font-weight: 700;
}

.ys-counter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #366273;
    background: #e7f4f6;
    border: 1px solid #c8e2e8;
}

.ys-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe8ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
}

.ys-table {
    margin: 0;
    table-layout: fixed;
}

.ys-table thead th {
    border: 0 !important;
    border-bottom: 1px solid #e3edf2 !important;
    background: #f4fafc;
    color: #5b7081;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.ys-table td {
    border-top: 1px solid #edf3f6 !important;
    color: #33495a;
    word-break: break-word;
    font-size: 13px;
    vertical-align: top;
}

.ys-table td a {
    color: #2a7d8d;
}

.ys-table td a:hover {
    color: #245362;
}

.ys-error {
    color: #8f3f4b !important;
    background: #f8ecee;
    font-weight: 600;
}

.ys-help {
    margin: 10px 0 0;
    color: #5b7081;
    font-size: 12px;
}

.ys-progress {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid #d6e7ec;
    border-radius: 14px;
    background: #f7fcfd;
}

.ys-progress-head,
.ys-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #3e5e6f;
}

.ys-progress-track {
    margin: 8px 0;
    height: 8px;
    border-radius: 999px;
    background: #dcecf1;
    overflow: hidden;
}

.ys-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(120deg, #3097a8, #58aa68);
    transition: width 0.25s ease;
}

@keyframes ys-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 900px) {
    .ys-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ys-shell {
        width: min(1120px, 95vw);
        margin: 18px auto;
    }

    .ys-card {
        padding: 18px;
        border-radius: 22px;
    }

    .ys-field-grid {
        grid-template-columns: 1fr;
    }

    .ys-table thead {
        display: none;
    }

    .ys-table,
    .ys-table tbody,
    .ys-table tr,
    .ys-table td {
        display: block;
        width: 100%;
    }

    .ys-table tr {
        border-bottom: 1px solid #edf3f6;
        padding: 8px 0;
    }

    .ys-table td {
        border: 0 !important;
        padding: 8px 10px 8px 136px !important;
        position: relative;
        min-height: 40px;
    }

    .ys-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        width: 118px;
        color: #5b7081;
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
}
