:root {
    --ink: #102027;
    --ink-soft: #24343c;
    --muted: #5d727c;
    --paper: #f4f8fa;
    --card: #ffffff;
    --line: #d5e4ea;
    --theme: #05C5FF;
    --theme-deep: #0b6fe8;
    --theme-ink: #0668ad;
    --theme-soft: #e5f7ff;
    --font: "Poppins", sans-serif;
    --shadow: 0 18px 40px rgba(8, 78, 140, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(720px 380px at 0% -60px, rgba(5, 197, 255, 0.55), transparent 68%),
        radial-gradient(680px 360px at 100% -40px, rgba(11, 111, 232, 0.35), transparent 70%),
        radial-gradient(520px 280px at 85% 110%, rgba(20, 196, 196, 0.22), transparent 70%),
        #e8f6fc;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

::selection {
    background: #05C5FF;
    color: #08222c;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(5, 197, 255, 0.18);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(8, 78, 140, 0.06);
}

.site-header__inner {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}

.brand img {
    height: 42px;
    width: auto;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand__text small {
    margin-top: 0.15rem;
    color: var(--theme-ink);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    background: var(--theme-soft);
    color: var(--theme-ink);
}

.site-nav__primary {
    background: linear-gradient(90deg, #05C5FF, #0b6fe8);
    color: #fff !important;
}

.site-nav__primary:hover {
    background: linear-gradient(90deg, #03b4ea, #085ec8);
    color: #fff !important;
}

.site-header__rule {
    height: 4px;
    background: linear-gradient(90deg, #05C5FF, #1b8dff 45%, #14c8e0);
}

.site-main {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.75rem 0 4.5rem;
    flex: 1;
}

.site-footer {
    margin-top: auto;
    background:
        linear-gradient(90deg, #05C5FF, #1b8dff 55%, #14c8e0) top / 100% 4px no-repeat,
        #06283f;
    color: #fff;
}

.site-footer__inner {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.2rem 0 1.6rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

.site-footer__brand img {
    height: 42px;
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
}

.site-footer__brand p,
.site-footer__bar p {
    margin: 0.75rem 0 0;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-footer__col h2 {
    margin: 0 0 0.7rem;
    color: #7fe7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__col a {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.55rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.site-footer__col a i {
    margin-top: 0.2rem;
    color: #7fe7ff;
}

.site-footer__col a:hover {
    color: #7fe7ff;
}

.site-footer__social {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0;
}

.site-footer__social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.site-footer__social a:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.site-footer__social .social--facebook { background: #1877f2; }
.site-footer__social .social--instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.site-footer__social .social--tiktok { background: #111; }
.site-footer__social .social--snapchat { background: #fffc00; color: #111; }
.site-footer__social .social--youtube { background: #ff0033; }
.site-footer__social .social--x { background: #111; }
.site-footer__social .social--pinterest { background: #e60023; }
.site-footer__social .social--linkedin { background: #0a66c2; }

.site-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bar p {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 0.9rem 0 1.1rem;
    font-size: 0.8rem;
}

.page-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--theme-ink);
}

.page-title {
    margin: 0;
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-note {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
}

.notice {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.notice--ok {
    background: #eef5ee;
    color: #245733;
}

.notice--danger {
    background: #f8eeee;
    color: #7c3333;
}

.directory-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    padding: 1.5rem 1.4rem;
    border-radius: 24px;
    background: linear-gradient(115deg, #05C5FF 0%, #1b8dff 52%, #0a4f9e 100%);
    box-shadow: var(--shadow);
}

.directory-head .page-kicker,
.directory-head .page-note {
    color: rgba(255, 255, 255, 0.9);
}

.directory-head .page-title {
    color: #fff;
}

.directory-tools {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 260px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.62rem 0.95rem;
    color: var(--muted);
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.92rem;
}

.btn-ink,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ink {
    background: #fff;
    color: #0668ad;
    border: 1px solid #fff;
}

.btn-ink:hover {
    background: #e5f7ff;
    border-color: #e5f7ff;
    color: #04588f;
}

.panel .btn-ink,
.auth-wrap .btn-ink,
.form-actions .btn-ink {
    background: linear-gradient(90deg, #05C5FF, #0b6fe8);
    color: #fff;
    border-color: transparent;
}

.panel .btn-ink:hover,
.auth-wrap .btn-ink:hover,
.form-actions .btn-ink:hover {
    background: linear-gradient(90deg, #03b4ea, #085ec8);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.staff-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.staff-card:hover,
.staff-card:focus-within {
    z-index: 4;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.staff-card__media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #e7f6fb;
}

.staff-card__media img,
.avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    font-family: var(--font);
    font-size: 3.2rem;
    color: var(--theme-ink);
    background: linear-gradient(165deg, #f4fcff, #c8f1ff);
}

.staff-card__media:has(img) .avatar-fallback {
    display: none;
}

.staff-card__menu {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 6px 16px rgba(22, 21, 19, 0.12);
    cursor: pointer;
}

.icon-btn::after {
    display: none;
}

.staff-card__body {
    padding: 0.95rem 1rem 1.15rem;
}

.staff-card__body h2 {
    margin: 0;
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.staff-card__body h2 a {
    color: inherit;
    text-decoration: none;
}

.staff-card__body p {
    display: inline-block;
    margin: 0.45rem 0.35rem 0 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--theme-soft);
    color: var(--theme-ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.staff-card__body .staff-card__brand {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}

.brand-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.brand-pick label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.brand-pick input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #05C5FF;
}

.brand-pick label:has(input:checked) {
    border-color: var(--theme);
    background: var(--theme-soft);
    box-shadow: 0 0 0 3px rgba(5, 197, 255, 0.22);
}

.staff-card:nth-child(4n + 2) .avatar-fallback {
    color: #0b3f86;
    background: linear-gradient(165deg, #e8f1ff, #7eb6ff);
}

.staff-card:nth-child(4n + 3) .avatar-fallback {
    color: #0b5c56;
    background: linear-gradient(165deg, #e7fffb, #7eefe4);
}

.staff-card:nth-child(4n + 4) .avatar-fallback {
    color: #084e78;
    background: linear-gradient(165deg, #e7f7ff, #8fd6ff);
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.35rem;
    min-width: 11.5rem;
}

.dropdown-item {
    border-radius: 9px;
    font-size: 0.88rem;
    padding: 0.5rem 0.7rem;
    color: var(--ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--theme-soft);
    color: var(--ink);
}

.dropdown-item.text-danger {
    color: #8d3535;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4.5rem 1rem;
}

.empty-state h2 {
    margin: 0 0 0.4rem;
    font-family: var(--font);
    font-weight: 800;
    font-size: 2rem;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.panel {
    width: min(440px, 100%);
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 2.2rem 2rem 2rem;
    background:
        linear-gradient(90deg, #05C5FF, #1b8dff 55%, #14c8e0) top / 100% 8px no-repeat,
        #fff;
}

.panel--wide {
    width: min(760px, 100%);
}

.auth-wrap {
    min-height: 58vh;
    display: grid;
    place-items: center;
}

.stack-form {
    margin-top: 1.6rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
}

.span-2 {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-control {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    padding: 0.72rem 0.85rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 4px rgba(5, 197, 255, 0.28);
    outline: 0;
}

.help {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.current-photo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.current-photo img,
.crop-result {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.crop-stage {
    width: min(100%, 420px);
    height: 320px;
    margin-top: 0.8rem;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f3fbfe;
}

.crop-status {
    margin: 0.7rem 0 0;
    color: #245733;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.passport {
    width: min(480px, 100%);
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.passport__crest {
    height: 8px;
    background: linear-gradient(90deg, #05C5FF, #1b8dff 55%, #14c8e0);
}

.passport__hero {
    padding: 2.1rem 1.8rem 1.3rem;
    text-align: center;
    background: linear-gradient(180deg, #9aebff 0%, #d9f7ff 46%, #ffffff 78%);
}

.passport__brand {
    margin: 0 0 1.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-ink);
}

.portrait-wrap {
    width: 148px;
    height: 148px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(160deg, #d7f6ff, var(--theme) 45%, #0284b8) border-box;
    border: 1px solid transparent;
}

.portrait-wrap img,
.portrait-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #e7f6fb;
}

.portrait-fallback {
    display: grid;
    place-items: center;
    font-family: var(--font);
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--theme-ink);
}

.portrait-wrap:has(img) .portrait-fallback {
    display: none;
}

.passport__name {
    margin: 1.35rem 0 0.35rem;
    font-family: var(--font);
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.passport__role {
    margin: 0;
    color: var(--theme-ink);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    background: linear-gradient(90deg, #05C5FF, #0b6fe8);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.btn-save:hover {
    background: linear-gradient(90deg, #03b4ea, #085ec8);
    color: #fff;
}

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.socials a:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #fff;
}

.socials .social--facebook { background: #1877f2; }
.socials .social--instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.socials .social--tiktok { background: #111; }
.socials .social--snapchat { background: #fffc00; color: #111; }
.socials .social--youtube { background: #ff0033; }
.socials .social--x { background: #111111; }
.socials .social--pinterest { background: #e60023; }
.socials .social--linkedin { background: #0a66c2; }

.socials .social--snapchat:hover { color: #111; }

.contact-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0 1.6rem 1.4rem;
}

.contact-actions a {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-actions a.action--whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #05331a;
}

.contact-actions a.action--email {
    background: #0b6fe8;
    border-color: #0b6fe8;
    color: #fff;
}

.contact-actions a.action--whatsapp:hover,
.contact-actions a.action--email:hover {
    filter: brightness(1.06);
    color: inherit;
}

.contact-actions a.action--email:hover {
    color: #fff;
}

.facts {
    list-style: none;
    margin: 0;
    padding: 0.3rem 1.7rem 1.3rem;
}

.facts li {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
}

.facts span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.facts strong {
    font-weight: 500;
    font-size: 0.98rem;
    line-height: 1.45;
}

.facts a {
    color: var(--theme-ink);
    text-decoration: none;
}

.facts a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.passport__about {
    margin: 0;
    padding: 0 1.7rem 1.5rem;
    color: var(--ink-soft);
    font-family: var(--font);
    font-style: normal;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.35;
}

.qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem 1.8rem;
    border-top: 1px solid var(--line);
    background: #f3fbfe;
}

.qr-frame {
    background: #fff;
    padding: 0.7rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    line-height: 0;
}

.qr-frame svg {
    width: 132px;
    height: 132px;
}

.qr-block p {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.choice-modal {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
}

.choice-modal .modal-header {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.2rem;
}

.choice-modal .modal-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.45rem;
}

.choice-modal .modal-body {
    padding: 1rem 1.2rem 1.3rem;
}

.choice-modal .modal-body > p {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.55rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 600;
}

.choice:hover {
    border-color: var(--theme);
    background: var(--theme-soft);
}

@media (max-width: 1040px) {
    .staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .directory-head,
    .directory-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .search {
        min-width: 0;
    }

    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand__text {
        display: none;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .brand-pick {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-nav a:not(.site-nav__primary) {
        display: none;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-ink,
    .btn-ghost,
    .form-actions .btn-ink,
    .form-actions .btn-ghost {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .site-main {
        width: min(1120px, calc(100% - 1.4rem));
        padding-top: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .staff-card,
    .btn-ink,
    .btn-ghost,
    .socials a {
        transition: none;
    }

    .staff-card:hover {
        transform: none;
    }
}
