@charset "UTF-8";

:root {
    color-scheme: light;
    --blue-950: #11166f;
    --blue-900: #171b9c;
    --blue-700: #2537e7;
    --blue-500: #385cff;
    --pink-600: #e900b5;
    --pink-500: #fb16c4;
    --lime: #a1f332;
    --ink: #171944;
    --muted: #707397;
    --paper: #ffffff;
    --line: #e9eafb;
    --shadow: 0 24px 70px rgba(13, 17, 105, .24);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--blue-950); }
body {
    min-height: 100vh;
    margin: 0;
    color: #fff;
    font-family: "Trebuchet MS", Arial, sans-serif;
    background:
        radial-gradient(ellipse at 92% 15%, rgba(89, 111, 255, .48), transparent 36%),
        linear-gradient(137deg, #161b89 0%, #202bd2 54%, #191a8e 100%);
    overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(2px); }
.ambient-pink { top: -180px; left: -170px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(247, 0, 188, .42), transparent 70%); }
.ambient-blue { right: -220px; bottom: -210px; width: 540px; height: 540px; background: radial-gradient(circle, rgba(64, 99, 255, .32), transparent 70%); }
.site-shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; padding: 0 20px; }
.site-header { display: flex; align-items: center; justify-content: space-between; width: min(1120px, 100%); margin: 0 auto; padding: 19px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; color: #fff; font-weight: 900; font-size: 13px; letter-spacing: -.8px; box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; line-height: 1.1; }
.brand-copy small { color: rgba(255,255,255,.75); font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 9px; }
.nav-link, .nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 0 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-button { cursor: pointer; }
.nav-link:hover, .nav-button:hover { background: rgba(255,255,255,.18); }
.logout-form { margin: 0; }
.site-footer { display: flex; justify-content: center; align-items: center; gap: 9px; margin: auto auto 0; padding: 27px 0 18px; color: rgba(255,255,255,.62); text-align: center; font-size: 11px; }
.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }

.auth-layout { display: grid; align-items: center; gap: 27px; width: min(980px, 100%); margin: auto; padding: 26px 0 34px; }
.auth-promo { position: relative; min-height: 185px; overflow: hidden; padding: 25px 24px; border: 1px solid rgba(255,255,255,.19); border-radius: 28px; background: linear-gradient(132deg, rgba(245, 13, 191, .96), rgba(174, 14, 197, .76) 59%, rgba(41, 43, 204, .4)); box-shadow: 0 19px 50px rgba(7, 7, 87, .18); }
.auth-promo::after { position: absolute; right: -48px; bottom: -110px; width: 260px; height: 260px; border: 32px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(161,243,50,.8); }
.auth-promo h1 { position: relative; z-index: 1; margin: 15px 0 0; font-size: clamp(35px, 10vw, 60px); font-weight: 900; letter-spacing: -.055em; line-height: .95; text-shadow: 0 3px 0 rgba(13, 24, 141, .5); }
.auth-promo h1 span { color: #fff; -webkit-text-stroke: 1px rgba(35,35,173,.8); text-shadow: 3px 3px 0 var(--blue-700), -2px -2px 0 var(--blue-700), 0 7px 18px rgba(13,15,116,.32); }
.promo-school { position: relative; z-index: 1; margin: 8px 0 0; font-size: 14px; font-weight: 800; }
.promo-copy { position: relative; z-index: 1; max-width: 290px; margin: 10px 0 0; color: rgba(255,255,255,.87); font-size: 13px; line-height: 1.5; }
.promo-stamp { position: absolute; right: 22px; top: 49px; display: grid; width: 53px; height: 53px; place-items: center; border: 2px solid rgba(255,255,255,.42); border-radius: 50%; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 900; transform: rotate(-11deg); }
.form-card { border: 1px solid rgba(255,255,255,.5); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.auth-card { padding: 25px 22px 21px; }
.card-kicker { margin-bottom: 7px; color: var(--pink-600); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.form-card h2 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.muted { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-stack { display: grid; gap: 10px; margin-top: 21px; }
.form-stack label { margin-top: 2px; color: #292b57; font-size: 12px; font-weight: 800; }
.form-stack input, .search-form input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #dbdef5; border-radius: 12px; outline: none; background: #f9f9ff; color: var(--ink); font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.form-stack input::placeholder, .search-form input::placeholder { color: #a3a5bd; }
.form-stack input:focus, .search-form input:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(56,92,255,.12); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 49px; padding: 0 17px; border: 0; border-radius: 13px; cursor: pointer; font-size: 14px; font-weight: 900; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button-primary { margin-top: 9px; color: #fff; background: linear-gradient(105deg, #f10bbd, #d900b1 76%, #c200b8); box-shadow: 0 10px 20px rgba(233,0,181,.22); }
.button-primary span { color: var(--lime); font-size: 19px; line-height: 1; }
.button-secondary { min-height: 47px; color: #fff; background: var(--blue-700); }
.auth-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--blue-700); font-weight: 900; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.admin-entry { margin: 12px 0 0; text-align: center; font-size: 11px; }
.admin-entry a { color: #8789a6; font-weight: 800; text-decoration: none; }
.admin-entry a:hover { color: var(--blue-700); text-decoration: underline; }
.notice { margin: 16px 0 0; padding: 12px 13px; border-radius: 11px; font-size: 13px; line-height: 1.45; }
.notice-success { border: 1px solid #cdeaa7; background: #f3ffe5; color: #315f08; }
.notice-error { border: 1px solid #ffc6e9; background: #fff1fa; color: #9e126f; }

.content-wrap { width: min(1040px, 100%); margin: 0 auto; padding: 21px 0 40px; }
.welcome-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 185px; overflow: hidden; padding: 25px 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 25px; background: linear-gradient(117deg, #2535db, #18239e 72%, #292cbd); box-shadow: 0 17px 38px rgba(9,13,100,.21); }
.welcome-card::after { position: absolute; right: 40px; bottom: -106px; width: 235px; height: 235px; border: 25px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.welcome-card h1 { position: relative; z-index: 1; margin: 13px 0 7px; font-size: clamp(25px, 7vw, 37px); line-height: 1.08; letter-spacing: -.04em; }
.welcome-card p { position: relative; z-index: 1; max-width: 520px; margin: 0; color: rgba(255,255,255,.79); font-size: 13px; line-height: 1.55; }
.welcome-badge { position: relative; z-index: 1; display: grid; flex: 0 0 auto; width: 64px; height: 64px; place-items: center; border: 2px solid rgba(255,255,255,.68); border-radius: 50%; color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 0 0 7px rgba(255,255,255,.08); }
.dashboard-grid { display: grid; gap: 18px; margin-top: 19px; }
.add-nik-card, .nik-list-card, .participant-card { padding: 22px 19px; }
.add-nik-card .form-stack { margin-top: 17px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-heading h2 { font-size: 21px; }
.count-badge { display: inline-grid; flex: 0 0 auto; min-width: 38px; height: 38px; padding: 0 8px; place-items: center; border-radius: 12px; background: #fbe5f8; color: var(--pink-600); font-size: 15px; font-weight: 900; }
.empty-state { display: grid; justify-items: center; gap: 11px; padding: 30px 10px 9px; color: var(--muted); text-align: center; }
.empty-state p { margin: 0; font-size: 13px; }
.empty-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #eef0ff; color: var(--blue-700); font-size: 21px; font-weight: 900; }
.nik-list { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.nik-item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcff; }
.nik-icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #e9edff; color: var(--blue-700); font-weight: 900; }
.nik-details { display: grid; min-width: 0; gap: 4px; }
.nik-details strong { overflow-wrap: anywhere; color: var(--ink); font-size: 14px; letter-spacing: .025em; }
.nik-details small { color: var(--muted); font-size: 11px; }
.nik-details .participant-name { color: var(--ink); font-size: 13px; letter-spacing: 0; }
.nik-details .nik-number { color: #454978; font-weight: 800; letter-spacing: .035em; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: #8de52f; box-shadow: 0 0 0 4px #edffdc; }

.admin-welcome { background: linear-gradient(117deg, #18218d, #292ed3 61%, #e900b5 150%); }
.admin-badge { width: 72px; height: 72px; font-size: 10px; letter-spacing: .04em; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0; }
.stat-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px 13px; border: 1px solid rgba(255,255,255,.52); border-radius: 17px; background: #fff; color: var(--ink); box-shadow: 0 12px 25px rgba(9,13,100,.13); }
.stat-card-link { position: relative; padding-right: 34px; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.stat-card-link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(9,13,100,.2); }
.stat-card-link:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.stat-card-link.stat-card-active { box-shadow: 0 0 0 2px var(--blue-500), 0 12px 25px rgba(9,13,100,.13); }
.stat-card-pink.stat-card-link.stat-card-active { box-shadow: 0 0 0 2px var(--pink-500), 0 12px 25px rgba(9,13,100,.13); }
.stat-arrow { position: absolute; right: 13px; color: var(--blue-700); font-size: 17px; font-weight: 900; }
.stat-card-pink .stat-icon { background: #fce5f8; color: var(--pink-600); }
.stat-icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #e9edff; color: var(--blue-700); font-size: 16px; font-weight: 900; }
.stat-card div { display: grid; gap: 3px; min-width: 0; }
.stat-card small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.stat-card strong { color: var(--ink); font-size: 22px; line-height: 1; }
.participant-card { margin-top: 0; }
.partner-list-card { margin-top: 18px; }
.partner-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-info { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; }
.partner-nik-count { display: grid; flex: 0 0 auto; min-width: 48px; min-height: 48px; place-content: center; justify-items: center; border-radius: 14px; background: #fbe5f8; color: var(--pink-600); }
.partner-nik-count strong { font-size: 16px; line-height: 1.05; }
.partner-nik-count small { margin-top: 3px; color: #a43a88; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.participant-heading { align-items: flex-start; }
.participant-heading .muted { font-size: 12px; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 17px 0 14px; }
.search-form input { min-height: 47px; font-size: 12px; }
.participant-list { display: grid; gap: 10px; }
.participant-item { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fcfcff; }
.participant-topline { display: flex; justify-content: space-between; gap: 8px; }
.nik-label { color: var(--pink-600); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.participant-date { color: #9395b1; font-size: 10px; }
.participant-name-admin { display: block; margin: 6px 0 3px; color: var(--ink); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.participant-nik-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 0 0 12px; }
.nik-number-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.participant-nik { color: #454978; font-size: 13px; letter-spacing: .04em; overflow-wrap: anywhere; }
.participant-owner { display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px solid var(--line); }
.owner-avatar { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), #7e47ef); color: #fff; font-size: 13px; font-weight: 900; }
.participant-owner { align-items: center; }
.owner-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.owner-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.owner-copy small { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; line-height: 1.4; }
.delete-participant-form { flex: 0 0 auto; margin: 0; }
.delete-participant-form .button { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 11px; }
.button-danger { color: #aa175c; background: #fff0f8; }
.button-danger:hover { background: #ffe0f0; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination a { color: var(--blue-700); font-weight: 800; text-decoration: none; }
.pagination-disabled { color: #b9bad0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 700px) {
    .site-shell { padding: 0 34px; }
    .site-header { padding: 23px 0; }
    .brand-mark { width: 47px; height: 47px; }
    .brand-copy strong { font-size: 17px; }
    .brand-copy small { font-size: 12px; }
    .auth-layout { grid-template-columns: 1fr minmax(350px, 420px); gap: 42px; padding: 35px 0 50px; }
    .auth-promo { min-height: 410px; padding: 43px 36px; border-radius: 31px; }
    .auth-promo h1 { margin-top: 37px; font-size: clamp(56px, 6vw, 82px); }
    .promo-school { margin-top: 15px; font-size: 17px; }
    .promo-copy { margin-top: 22px; font-size: 15px; }
    .promo-stamp { top: 34px; right: 33px; width: 69px; height: 69px; font-size: 17px; }
    .auth-card { padding: 34px 31px 28px; }
    .form-card h2 { font-size: 27px; }
    .content-wrap { padding-top: 31px; }
    .welcome-card { min-height: 205px; padding: 34px 38px; }
    .welcome-badge { width: 77px; height: 77px; }
    .dashboard-grid { grid-template-columns: minmax(290px, .82fr) minmax(360px, 1.18fr); gap: 18px; }
    .add-nik-card, .nik-list-card, .participant-card { padding: 25px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(180px, 240px)); gap: 15px; }
    .stat-card { padding: 17px; }
    .stat-card small { font-size: 11px; }
    .participant-item { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
