/* EuroCC Kosovo Helpdesk - client portal theme in the style of hpc.kren-ks.eu
   (Kosovo HPC & AI Competence Centre). Loaded after osTicket's own CSS. */

:root {
    --navy: #071b3a;
    --navy-2: #0c2c59;
    --navy-deep: #050f24;
    --blue: #0057b8;
    --blue-dark: #00479a;
    --cyan: #00aeef;
    --cyan-soft: #7fdcff;
    --mint: #21c7a8;
    --ink: #0f1b2d;
    --muted: #5a6678;
    --line: #e2e9f2;
    --soft: #f5f8fc;
    --soft-blue: #edf6ff;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(7, 27, 58, .04), 0 8px 24px rgba(7, 27, 58, .05);
    --shadow: 0 2px 6px rgba(7, 27, 58, .05), 0 22px 50px rgba(7, 27, 58, .10);
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --header-h: 70px;
    --dark-bg:
        radial-gradient(55% 75% at 88% 12%, rgba(0, 174, 239, .26), transparent 62%),
        radial-gradient(45% 65% at 6% 100%, rgba(33, 199, 168, .16), transparent 62%),
        linear-gradient(160deg, #04122b 0%, #071b3a 45%, #0b2e63 100%);
}

/* ---------- Base ---------- */
html { background: var(--soft); }
body.eu {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--soft);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.eu a { color: var(--blue); text-underline-offset: 3px; }
body.eu a:hover { color: var(--blue-dark); }
body.eu h1, body.eu h2, body.eu h3 { color: var(--navy); font-family: var(--font); letter-spacing: -.02em; }
body.eu h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
body.eu h2 { font-size: 21px; font-weight: 750; }
.eu .error_bar, .eu .warning_bar, .eu .notice_bar { margin: 0; border-radius: 0; text-align: center; }

/* ---------- Header ---------- */
.eu-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(7, 27, 58, .05);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.eu-nav {
    position: relative;
    max-width: 1180px;
    min-height: var(--header-h);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}
.eu .eu-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.2;
}
.eu .eu-brand:hover { color: var(--navy); }
.eu-brand strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.eu-brand small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.eu-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.eu-brand-mark img { display: block; max-width: 34px; max-height: 36px; object-fit: contain; }
.eu-menu { display: flex; align-items: center; gap: .25rem; font-size: .94rem; }
.eu .eu-menu > a:not(.eu-btn) {
    padding: .5rem .75rem;
    border-radius: 10px;
    color: #26344a;
    font-weight: 550;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.eu .eu-menu > a:not(.eu-btn):hover,
.eu .eu-menu > a:not(.eu-btn):focus-visible,
.eu .eu-menu > a.active {
    background: var(--soft-blue);
    color: var(--blue);
}
.eu-menu .eu-btn { margin-left: .5rem; }
.eu-user { color: var(--muted); font-size: .88rem; padding: 0 .4rem; }
.eu-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: .5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: var(--soft);
}
.eu .eu-lang a {
    min-width: 38px;
    border-radius: 999px;
    padding: .25rem .55rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}
.eu .eu-lang a:hover { color: var(--navy); }
.eu .eu-lang a.on { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(7, 27, 58, .14); }
.eu-nav-toggle, .eu-nav-burger { display: none; }

/* ---------- Buttons (also osTicket's own) ---------- */
.eu .eu-btn,
.eu #content input[type=submit],
.eu #content button[type=submit],
.eu #content .button,
.eu #content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    border: 1.5px solid var(--blue);
    border-radius: 12px;
    padding: .6rem 1.2rem;
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.eu .eu-btn:hover, .eu .eu-btn:focus-visible,
.eu #content input[type=submit]:hover,
.eu #content button[type=submit]:hover,
.eu #content .button:hover {
    color: var(--white);
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 87, 184, .25);
}
.eu .eu-btn-sm { min-height: 38px; padding: .45rem 1rem; border-radius: 10px; font-size: .9rem; }
.eu .eu-btn-ghost,
.eu #content input[type=reset],
.eu #content input[type=button] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .6rem 1.2rem;
    background: var(--white);
    color: var(--blue);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.eu .eu-btn-ghost:hover,
.eu #content input[type=reset]:hover,
.eu #content input[type=button]:hover { background: var(--soft-blue); border-color: rgba(0, 87, 184, .3); color: var(--blue); }

/* ---------- Content pages (open, view, login, tickets, profile ...) ---------- */
.eu-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.eu #content.eu-wrap {
    width: auto;
    max-width: 980px;
    margin: 28px auto 40px;
    padding: 32px 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}
.eu #content input[type=text],
.eu #content input[type=email],
.eu #content input[type=password],
.eu #content input[type=tel],
.eu #content input[type=number],
.eu #content select,
.eu #content textarea {
    max-width: 100%;
    min-height: 42px;
    padding: .5rem .75rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.eu #content textarea { min-height: 120px; }
.eu #content input:focus, .eu #content select:focus, .eu #content textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 87, 184, .14);
}
.eu #content hr { border: 0; border-top: 1px solid var(--line); }
.eu #content table.list,
.eu #content table#ticketTable { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.eu #content table.list th,
.eu #content table#ticketTable th { background: var(--soft); color: var(--navy); }
.eu #msg_error, .eu #msg_notice, .eu #msg_warning { border-radius: 12px; }

/* Sign-in card (login.php, and open.php when sign-in is required) */
.eu #content.eu-wrap:has(.eu-login) { max-width: 480px; padding: 0; background: none; border: 0; box-shadow: none; }
.eu-login-card {
    position: relative;
    padding: 34px 36px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
}
.eu-login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--cyan) 60%, var(--mint));
}
.eu-login-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--dark-bg);
    color: var(--cyan-soft);
    box-shadow: 0 10px 24px rgba(0, 87, 184, .25);
}
.eu #content .eu-login-card h1 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.25; color: var(--navy); }
.eu-login-lead { margin: 0 auto 22px; max-width: 340px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.eu #clientLogin { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; }
.eu #clientLogin .eu-login-error:empty { display: none; }
.eu-login-error { padding: 10px 14px; border-radius: 12px; background: #fdecee; color: #b42318; font-size: .9rem; }
.eu-login-ext { display: flex; flex-direction: column; gap: 10px; }
.eu .external-auth { width: 100%; margin: 0; float: none; }
.eu .external-auth a.external-sign-in { display: block; text-decoration: none !important; }
.eu .external-auth .external-auth-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    font-size: .98rem;
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.eu .external-auth a:hover .external-auth-box,
.eu .external-auth a:focus-visible .external-auth-box {
    border-color: var(--blue);
    background: var(--soft-blue);
    box-shadow: 0 8px 20px rgba(0, 87, 184, .12);
    transform: translateY(-1px);
}
.eu .external-auth .external-auth-icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    background: center / contain no-repeat;
}
.eu .external-auth .external-auth-icon i { display: none; }
.eu .external-auth .external-auth-name { width: auto; padding: 0; margin: 0; color: inherit; font-weight: inherit; white-space: nowrap; }
.eu .external-auth a[title*="Microsoft"] .external-auth-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='1' y='1' width='9' height='9' fill='%23f25022'/%3E%3Crect x='11' y='1' width='9' height='9' fill='%237fba00'/%3E%3Crect x='1' y='11' width='9' height='9' fill='%2300a4ef'/%3E%3Crect x='11' y='11' width='9' height='9' fill='%23ffb900'/%3E%3C/svg%3E");
}
.eu .external-auth a[title*="Google"] .external-auth-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E");
}
.eu-login-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: #94a0b3; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.eu-login-or::before, .eu-login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eu-field { position: relative; display: block; margin: 0; }
.eu-field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a0b3; pointer-events: none; transition: color .15s; }
.eu-field:focus-within svg { color: var(--blue); }
.eu #content .eu-field input { margin: 0; width: 100%; height: 48px; padding-left: 44px; border-radius: 14px; box-sizing: border-box; }
.eu #content #clientLogin .eu-login-submit { width: 100%; height: 50px; margin: 2px 0 0; border-radius: 14px; font-size: 1rem; }
.eu-login-forgot { align-self: center; font-size: .88rem; }
.eu-login-foot { display: grid; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.eu-login-foot a, .eu-login-note a { color: var(--blue); font-weight: 600; text-decoration: none; }
.eu-login-foot a:hover, .eu-login-note a:hover { text-decoration: underline; }
.eu-login-foot b { color: var(--ink); font-weight: 600; }
.eu-login-note { margin: 16px 8px 0; text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 520px) {
    .eu #content.eu-wrap:has(.eu-login) { margin: 18px 12px 28px; padding: 0; }
    .eu-login-card { padding: 28px 20px 22px; }
}

/* ---------- Home: hero + cards ---------- */
.eu-msgs { max-width: 980px; margin: 0 auto; }
.eu-msgs > div { margin: 12px 1.25rem; border-radius: 12px; }
.eu-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: center;
    gap: 3rem;
    padding: clamp(28px, 5vh, 64px) max(1.25rem, calc((100% - 1180px) / 2 + 1.25rem)) calc(var(--eu-overlap, 84px) + clamp(16px, 3vh, 36px));
    background: var(--dark-bg);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}
.eu-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(80% 90% at 70% 30%, #000 20%, transparent 80%);
    mask-image: radial-gradient(80% 90% at 70% 30%, #000 20%, transparent 80%);
}
.eu-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    padding: .45rem .9rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--cyan-soft);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.eu-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(33, 199, 168, .2); }
.eu .eu-hero-text h1, .eu .eu-hero-text h2 {
    margin: 0 0 .8rem;
    color: var(--white);
    font-size: clamp(30px, 5vh, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
}
.eu .eu-hero-text p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .78); font-size: clamp(15px, 2.1vh, 17.5px); }
.eu-hero-visual { position: relative; width: 100%; max-width: 380px; justify-self: end; }
.eu-network { display: block; width: 100%; height: auto; overflow: visible; max-height: 34vh; }
.hn-orbits { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.hn-orbit-dashed { stroke-dasharray: 2 9; animation: eu-spin 80s linear infinite; transform-origin: 240px 220px; }
.hn-links { fill: none; stroke: rgba(127, 220, 255, .28); stroke-width: 1.2; }
.hn-flow { fill: none; stroke: var(--cyan-soft); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 22; animation: eu-flow 2.6s linear infinite; }
.hn-flow path:nth-child(2n) { animation-delay: -1.3s; }
.hn-nodes circle { fill: var(--cyan); stroke: rgba(0, 174, 239, .25); stroke-width: 8; animation: eu-pulse 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hn-nodes circle:nth-child(2n) { animation-delay: -1.8s; fill: var(--mint); stroke: rgba(33, 199, 168, .25); }
.hn-pill rect { fill: var(--blue); stroke: rgba(255, 255, 255, .3); }
.hn-pill text { fill: var(--white); font: 800 15px var(--font); text-anchor: middle; letter-spacing: .04em; }
.hn-pill-light rect { fill: var(--white); stroke: none; }
.hn-pill-light text { fill: var(--blue); }
.hn-core-ring { fill: none; stroke: rgba(127, 220, 255, .4); stroke-width: 1.5; animation: eu-ring 3.6s ease-out infinite; transform-origin: 240px 220px; }
.hn-chip rect { fill: rgba(5, 15, 36, .35); stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; }
.hn-chip path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; stroke-linecap: round; }
.eu-metric {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: .1rem;
    min-width: 130px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    padding: .7rem .9rem;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: .78rem;
}
.eu-metric strong { font-size: .95rem; letter-spacing: .1em; }
.eu-metric span { color: rgba(255, 255, 255, .72); }
.eu-metric::before { content: ""; width: 28px; height: 3px; margin-bottom: .4rem; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--mint)); }
.eu-metric-top { right: -4%; top: 0; animation: eu-float 7s ease-in-out infinite; }
.eu-metric-bottom { left: -4%; bottom: 2%; animation: eu-float 7s ease-in-out -3.5s infinite; }

.eu-home { position: relative; z-index: 3; flex: 1 0 auto; padding: 0 1.25rem clamp(18px, 3.5vh, 36px); }
.eu-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    justify-content: center;
    gap: 24px;
    margin-top: calc(-1 * var(--eu-overlap, 84px));
}
.eu .eu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(18px, 3vh, 28px) 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.eu .eu-card:hover, .eu .eu-card:focus-visible {
    color: var(--ink);
    transform: translateY(-4px);
    border-color: rgba(0, 87, 184, .3);
    box-shadow: 0 2px 6px rgba(7, 27, 58, .05), 0 30px 60px rgba(0, 87, 184, .16);
}
.eu-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: var(--soft-blue);
    color: var(--blue);
}
.eu-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eu-card-primary .eu-card-icon { background: var(--blue); color: var(--white); box-shadow: 0 10px 22px rgba(0, 87, 184, .3); }
.eu .eu-card h2 { margin: 0 0 6px; font-size: 19px; color: var(--navy); }
.eu .eu-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.eu-card .eu-btn i, .eu-card .eu-btn-ghost i { font-style: normal; transition: transform .18s; }
.eu-card:hover .eu-btn i, .eu-card:hover .eu-btn-ghost i { transform: translateX(3px); }

/* ---------- Footer ---------- */
.eu-footer { background: var(--navy-deep); color: var(--white); padding: 26px 1.25rem 18px; font-size: 14px; }
.eu-footer-main, .eu-funding { max-width: 1180px; margin: 0 auto; }
.eu-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.eu-footer-brand { display: flex; align-items: center; gap: .9rem; }
.eu-footer-brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: var(--white); padding: 6px; box-sizing: border-box; }
.eu-footer-brand strong { display: block; }
.eu-footer-brand span { color: rgba(255, 255, 255, .65); font-size: 13px; }
.eu .eu-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.eu .eu-footer a:hover { color: var(--white); text-decoration: underline; }
.eu-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: 13.5px; }
.eu-funding {
    display: flex;
    align-items: center;
    gap: 1rem 1.6rem;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 1.5;
}
.eu-funding-logos { display: flex; align-items: center; gap: .8rem 1.4rem; flex-wrap: wrap; }
.eu-funding-logos img { display: block; width: auto; max-height: 38px; max-width: 170px; object-fit: contain; opacity: .92; }
.eu-funding-logos img.eu-logo-eurocc3 { max-height: 48px; }
.eu-funding p { flex: 1 1 320px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .eu-hero { grid-template-columns: 1fr; gap: 1.5rem; }
    .eu-hero-visual { display: none; }
}
@media (max-width: 860px) {
    .eu-nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--white);
        cursor: pointer;
    }
    .eu-nav-burger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--navy); border-radius: 2px; }
    .eu-menu {
        display: none;
        position: absolute;
        top: calc(var(--header-h) - 6px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }
    .eu-nav-toggle:checked ~ .eu-menu { display: flex; }
    .eu-menu .eu-btn { margin: 4px 0 0; }
    .eu-lang { align-self: flex-start; margin: 6px 0 0; }
    .eu #content.eu-wrap { margin: 16px 12px 28px; padding: 22px 18px; }
    .eu-cards { grid-template-columns: minmax(0, 440px); gap: 16px; }
    .eu-hero { --eu-overlap: 56px; padding-top: 36px; padding-bottom: 92px; }
    .eu-footer-main { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 861px) and (max-height: 760px) {
    :root { --header-h: 62px; }
    .eu-hero { --eu-overlap: 64px; }
    .eu-card-icon { width: 40px; height: 40px; margin-bottom: 8px; }
    .eu .eu-card p { margin-bottom: 12px; }
    .eu-footer { padding-top: 18px; }
    .eu-funding { margin-top: 12px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-orbit-dashed, .hn-flow, .hn-nodes circle, .hn-core-ring, .eu-metric { animation: none; }
    .eu .eu-card, .eu .eu-btn { transition: none; }
}
@keyframes eu-flow { to { stroke-dashoffset: -52; } }
@keyframes eu-spin { to { transform: rotate(360deg); } }
@keyframes eu-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes eu-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes eu-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Compact desktop: whole home page (footer included) on one laptop screen */
.eu .eu-btn-ghost { gap: .5rem; }
@media (min-width: 861px) and (max-height: 820px) {
    .eu-hero { gap: 2rem; padding-top: clamp(18px, 3.2vh, 40px); --eu-overlap: 60px; }
    .eu-network { max-height: 25vh; }
    .eu-hero-visual { max-width: 300px; }
    .eu-metric { padding: .5rem .75rem; min-width: 110px; }
    .eu-eyebrow { margin-bottom: .6rem; padding: .35rem .8rem; }
    .eu .eu-card { padding: 16px 22px; }
    .eu .eu-card h2 { font-size: 18px; margin-bottom: 4px; }
    .eu .eu-card p { margin-bottom: 10px; }
    .eu-home { padding-bottom: 14px; }
    .eu-footer { padding: 14px 1.25rem 12px; }
    .eu-footer-brand img { width: 38px; height: 38px; }
    .eu-funding { margin-top: 10px; padding-top: 10px; }
    .eu-funding-logos img { max-height: 30px; }
    .eu-funding-logos img.eu-logo-eurocc3 { max-height: 38px; }
}

/* Registration: CAPTCHA row; osTicket's script paints the submit red on change */
.eu #content input[type="submit"] { color: var(--white) !important; }
.eu .eu-captcha td { vertical-align: middle; }
.eu .eu-captcha-img { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; vertical-align: middle; }
.eu .eu-captcha-img img { border-radius: 8px; border: 1px solid #d6e0ee; }
.eu .eu-captcha-img a { color: var(--blue); }
.eu #content #eu-captcha-input { width: 220px; max-width: 100%; }

/* Sign-in card: compact so header, card and footer fit one laptop screen */
.eu-login-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
@media (min-width: 861px) {
    .eu #content.eu-wrap:has(.eu-login) { margin-top: 14px; margin-bottom: 14px; max-width: 440px; }
    .eu-login-card { padding: 22px 28px 16px; border-radius: 20px; }
    .eu-login-icon { width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; }
    .eu-login-icon svg { width: 20px; height: 20px; }
    .eu #content .eu-login-card h1 { margin-bottom: 4px; font-size: 1.3rem; }
    .eu-login-lead { margin-bottom: 14px; font-size: .86rem; line-height: 1.4; }
    .eu #clientLogin { gap: 8px; }
    .eu-login-ext { gap: 8px; }
    .eu .external-auth .external-auth-box { height: 42px; border-radius: 12px; font-size: .92rem; }
    .eu-login-or { margin: 2px 0; }
    .eu #content .eu-field input { height: 42px; border-radius: 12px; }
    .eu #content #clientLogin .eu-login-submit { height: 44px; margin-top: 0; border-radius: 12px; }
    .eu-login-foot { margin-top: 12px; padding-top: 10px; font-size: .85rem; }
}
@media (min-width: 861px) and (max-height: 820px) {
    .eu-login-icon { display: none; }
    .eu-login-card { padding-top: 20px; }
    .eu-login-foot { gap: 2px 12px; font-size: .82rem; }
}
@media (min-width: 861px) and (max-height: 700px) {
    .eu #content.eu-wrap:has(.eu-login) { margin-top: 10px; margin-bottom: 10px; }
    .eu-login-lead { display: none; }
    .eu #content .eu-login-card h1 { margin-bottom: 12px; }
}

/* Home on desktop: split the free space above and below the cards so they sit lower */
@media (min-width: 861px) {
    .eu-home { display: flex; flex-direction: column; }
    .eu-home::before, .eu-home::after { content: ""; flex: 1 1 0; }
    .eu-home > .eu-cards { flex: none; width: 100%; }
}
