:root {
    --wc-primary: #7657f6;
    --wc-primary-dark: #6040e8;
    --wc-accent: #b8a5ff;
    --wc-bg: #f7f6fc;
    --wc-card: #ffffff;
    --wc-text: #201b35;
    --wc-muted: #77738a;
    --wc-border: #e9e6f1;
    --wc-success: #16a36a;
    --wc-danger: #dc4455;
    --wc-radius: 18px;
    --wc-shadow: 0 12px 40px rgba(42, 27, 90, .07);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    color: var(--wc-text);
    background: var(--wc-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--wc-primary);
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: var(--wc-primary-dark);
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px;
}

.container.narrow {
    max-width: 540px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.card {
    background: var(--wc-card);
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: var(--wc-shadow);
}

h1, h2, h3 {
    color: var(--wc-text);
    line-height: 1.2;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

h2 {
    font-size: 25px;
    font-weight: 750;
    margin-bottom: 16px;
}

h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 12px;
}

.muted, p.muted {
    color: var(--wc-muted);
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 23px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #8061ff, #6945ec);
    color: white;
    box-shadow: 0 8px 20px rgba(118, 87, 246, .24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7250f1, #5937d5);
    color: white;
    box-shadow: 0 12px 25px rgba(118, 87, 246, .32);
}

.btn-secondary {
    background: #f0edff;
    color: var(--wc-primary-dark);
}

.btn-danger {
    background: var(--wc-danger);
    color: white;
}

.btn-success {
    background: var(--wc-success);
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

input, select, textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 15px;
    border: 1px solid #e5e1ed;
    border-radius: 11px;
    background: #fbfaff;
    color: var(--wc-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border .2s, box-shadow .2s, background .2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--wc-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(118, 87, 246, .11);
}

input[type="checkbox"] {
    width: 17px;
    min-height: 17px;
    height: 17px;
    accent-color: var(--wc-primary);
    flex-shrink: 0;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 650;
    font-size: 14px;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    font-weight: 500;
    cursor: pointer;
}

.hint {
    color: var(--wc-muted);
    font-size: 13px;
    margin-top: 5px;
}

.alert {
    padding: 14px 16px;
    border-radius: 11px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: #fff0f1;
    color: #a92b40;
    border: 1px solid #ffd9df;
}

.alert-success {
    background: #e8faf1;
    color: #146b45;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--wc-border);
    padding: 17px 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    font-weight: 850;
    font-size: 22px;
    letter-spacing: -1px;
    color: var(--wc-primary);
    text-decoration: none;
}

.topbar nav a {
    margin-left: 18px;
    color: var(--wc-text);
    font-size: 14px;
}

.topbar nav a:hover {
    color: var(--wc-primary);
}

.topbar nav .inline-form {
    display: inline-block;
    margin-left: 16px;
}

.topbar nav .link-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wc-text);
    font-size: 14px;
    font-family: inherit;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.stat-card {
    background: white;
    border: 1px solid var(--wc-border);
    border-radius: 17px;
    padding: 25px 18px;
    text-align: center;
    box-shadow: var(--wc-shadow);
}

.stat-value {
    font-size: 34px;
    font-weight: 850;
    color: var(--wc-primary);
    letter-spacing: -1.5px;
}

.stat-label {
    color: var(--wc-muted);
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--wc-border);
}

th {
    color: var(--wc-muted);
    font-weight: 650;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.badge-green { background: #dcfce7; color: #14532d; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-red { background: #fee2e2; color: #7f1d1d; }

.qr-frame {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--wc-border);
}

.qr-frame img {
    max-width: 260px;
    width: 100%;
    height: auto;
}

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

.actions form {
    flex: 1 1 auto;
}

.actions .btn {
    width: 100%;
}

/* Landing page */

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 35px;
    text-align: center;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(147, 111, 255, .35), transparent 60%),
        linear-gradient(145deg, #201638, #30205c 65%, #49318b);
    color: white;
    box-shadow: 0 25px 65px rgba(41, 24, 83, .18);
}

.hero h1 {
    color: white;
    max-width: 790px;
    margin: 20px auto;
    font-size: clamp(38px, 6vw, 65px);
    letter-spacing: -2.8px;
}

.hero p {
    color: #ded5f6;
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 30px;
}

.hero .eyebrow {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: #e6dcff;
    font-size: 13px;
    font-weight: 700;
}

.hero .btn-secondary {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1px solid rgba(255,255,255,.2);
}

.hero-actions {
    display: flex;
    gap: 13px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.section {
    padding: 65px 0;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: white;
    border: 1px solid var(--wc-border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--wc-shadow);
}

.feature-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f0ebff;
    font-size: 23px;
    margin-bottom: 17px;
}

.site-footer {
    text-align: center;
    padding: 35px 20px;
    color: var(--wc-muted);
    border-top: 1px solid var(--wc-border);
    font-size: 13px;
}

/* Registration */

.register-card {
    padding: 38px;
}

.register-brand {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -1px;
}

.register-intro {
    margin-bottom: 28px;
}

.register-intro p {
    color: var(--wc-muted);
}

.register-submit {
    margin-top: 26px;
    min-height: 54px;
}

@media (max-width: 700px) {
    .container {
        padding: 18px 15px;
    }

    .container.narrow {
        padding: 22px 14px;
    }

    .card, .register-card {
        padding: 23px 19px;
        border-radius: 16px;
    }

    .hero {
        padding: 65px 20px;
        border-radius: 20px;
    }

    .hero h1 {
        letter-spacing: -1.7px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 42px 0;
    }

    .topbar {
        padding: 15px;
    }

    .topbar nav a {
        margin-left: 10px;
    }

    .stat-value {
        font-size: 29px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
