/* ── IPC Brand Colors (from inovacne.sk) ───────────────────
   --ipc-accent:  #28A9CC   (primary teal/cyan – buttons, links)
   --ipc-dark:    #1E2222   (dark – header, footer, panels)
   --ipc-bg:      #F5F6F6   (light background)
   ──────────────────────────────────────────────────────── */

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

/* ── Design tokens ────────────────────────────────────────── */
:root {
    --primary-color: #28A9CC !important;
    --primary-color-text: #ffffff !important;
    --primary-text-color: #ffffff !important;
    --highlight-bg: #28A9CC !important;
    --highlight-text-color: #ffffff !important;
    --focus-ring: 0 0 0 2px #28A9CC !important;

    --ipc-accent:       #28A9CC;
    --ipc-accent-dark:  #1d8eaa;
    --ipc-accent-soft:  #e8f7fb;
    --ipc-dark:         #1E2222;

    --surface:      rgba(255, 255, 255, .6);
    --bg:           #F3F5F7;
    --border:       rgba(255, 255, 255, .4);
    --text:         #1E2222;
    --text-soft:    #4a545f;
    --text-muted:   #6b7480;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .12);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .16);

    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    /* iOS-style farebné pozadie za priesvitnými (frosted glass) panelmi */
    background:
        radial-gradient(ellipse 1300px 1000px at 0% -10%,   rgba(94, 212, 255, .85) 0%, transparent 68%),
        radial-gradient(ellipse 1300px 1100px at 105% 0%,   rgba(151, 111, 255, .75) 0%, transparent 68%),
        radial-gradient(ellipse 1200px 1000px at -5% 105%,  rgba(255, 121, 180, .70) 0%, transparent 68%),
        radial-gradient(ellipse 1300px 1100px at 100% 105%, rgba(87, 214, 160, .70) 0%, transparent 68%),
        radial-gradient(ellipse 1000px 900px at 50% 50%,    rgba(255, 205, 120, .35) 0%, transparent 70%),
        linear-gradient(160deg, #8fdcff 0%, #a99bff 40%, #ff9fc8 75%, #ffd68a 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* ── Priesvitné "frosted glass" panely (iOS style) ─────────── */
.ui-panel,
.ui-widget-content {
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

a { text-decoration: none; color: inherit; }

/* ── Header ───────────────────────────────────────────────── */
.ipc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1E2222;
    color: #fff;
    padding: 0 24px;
    height: 64px;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    border-bottom: 3px solid #28A9CC;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left  { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-center { flex: 1 1 0; display: flex; justify-content: center; padding: 0 16px; min-width: 0; }
.header-right  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Form v centre: input + button zostanú na jednom riadku */
.header-center form { display: flex; align-items: center; gap: 4px; width: 100%; max-width: 400px; }

.brand-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28A9CC !important;
    letter-spacing: 1px;
    white-space: nowrap;
}

.header-nav-link {
    color: rgba(255,255,255,.8) !important;
    font-size: 1.105rem;
    font-weight: 500;
    transition: color .2s;
    white-space: nowrap;
}
.header-nav-link:hover { color: #28A9CC !important; }
.header-nav-link.active { color: #28A9CC !important; font-weight: 700; }

/* Search: rastie/scvrká podľa dostupného priestoru */
.header-search {
    flex: 1 1 160px !important;
    min-width: 100px !important;
    max-width: 300px !important;
    border-radius: 3px !important;
    background: rgba(255,255,255,.1) !important;
    border-color: rgba(255,255,255,.2) !important;
    color: #fff !important;
}
.header-search::placeholder { color: rgba(255,255,255,.45) !important; }
.header-search:focus {
    background: rgba(255,255,255,.15) !important;
    border-color: #28A9CC !important;
}

.header-btn {
    background: #28A9CC !important;
    border: none !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 6px 14px !important;
}
.header-btn:hover { background: #1d8eaa !important; }

.header-logout-btn {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    color: rgba(255,255,255,.75) !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    cursor: pointer;
}
.header-logout-btn:hover { border-color: #28A9CC !important; color: #28A9CC !important; }

.header-lang .ui-selectonemenu {
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    color: rgba(255,255,255,.85) !important;
    width: 70px !important;
}
.header-lang .ui-selectonemenu .ui-selectonemenu-label { color: rgba(255,255,255,.85) !important; }
.header-lang .ui-selectonemenu .ui-selectonemenu-trigger { color: rgba(255,255,255,.85) !important; }

/* Hamburger: skrytý na desktope */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger-btn:hover { background: rgba(255,255,255,.1); }

/* Mobile nav panel: skrytý na desktope */
.mobile-nav { display: none; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 16px;
    background: #1E2222;
    color: #aaa;
    font-size: .8rem;
    margin-top: auto;
    border-top: 3px solid #28A9CC;
}

/* ── Login / Register Page ────────────────────────────────── */
.login-page {
    background: linear-gradient(135deg, #1E2222 0%, #0f3040 50%, #28A9CC 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px 0;
}

.login-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 12px;
}

.login-panel {
    width: 420px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.12) !important;
    border-radius: 10px !important;
}

.register-panel { width: 500px !important; }

.login-panel .ui-panel-titlebar {
    display: none !important;
}

.login-title { text-align: center; margin-bottom: 20px; }
.login-title h2 { font-size: 1.5rem; color: #1E2222; font-weight: 700; }
.login-title p  { color: #666; font-size: .9rem; margin-top: 4px; }

.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field label { margin-bottom: 4px; font-weight: 600; font-size: .85rem; color: #444; }

.filter-field { margin-bottom: 10px; }

.w-full { width: 100% !important; }

.login-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: .85rem;
}
.forgot-link { margin-left: auto; color: #28A9CC !important; cursor: pointer; background: none; border: none; padding: 0; font-size: inherit; }
.remember-label { color: #555; }

.forgot-option {
    display: flex; align-items: center; gap: 16px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 16px; cursor: pointer; transition: border-color .15s, background .15s;
    text-decoration: none !important; width: 100%; box-sizing: border-box;
}
.forgot-option:hover { border-color: #28A9CC; background: #f0fafd; }
.forgot-option-icon { font-size: 1.8rem; flex-shrink: 0; }
.forgot-option > span:last-child { min-width: 0; }
.forgot-option-title { display: block; font-weight: 700; font-size: .95rem; color: #1E2222; margin-bottom: 3px; }
.forgot-option-desc  { display: block; font-size: .82rem; color: #777; overflow-wrap: break-word; word-break: break-word; }


.login-btn {
    width: 100% !important;
    background: #28A9CC !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 6px !important;
}
.login-btn:hover { background: #1d8eaa !important; }

.register-link {
    text-align: center;
    font-size: .85rem;
    color: #666;
}
.register-link a { color: #28A9CC !important; font-weight: 600; }

.info-msg {
    background: #e8f7fb;
    border: 1px solid #a0dcea;
    color: #1E2222;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: .85rem;
}

.verify-msg { padding: 16px; font-size: 1rem; text-align: center; }
.verify-icon { font-size: 1.4rem; margin-right: 8px; }

.error-msg {
    background: #fdecea;
    border: 1px solid #f5a9a9;
    color: #7a1c1c;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: .85rem;
}

.login-error-block.ui-messages:not(:has(.ui-messages-error)) { display: none !important; }
.login-error-block.ui-messages { margin-bottom: 14px; }
.login-error-block .ui-messages-error {
    background: #fdecea;
    border: 1px solid #f5a9a9;
    color: #7a1c1c;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: .85rem;
}
.login-error-block .ui-messages-error-icon { display: none; }

.info-block.ui-messages:not(:has(.ui-messages-info)) { display: none !important; }
.info-block.ui-messages { margin-bottom: 14px; }
.info-block .ui-messages-info {
    background: #edf7ed;
    border: 1px solid #a9d4a9;
    color: #1a5c1a;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: .85rem;
}
.info-block .ui-messages-info-icon { display: none; }

/* ── Page Layout — wrapper pre PrimeFlex grid ───────────────── */
.page-layout {
    flex: 1;
    padding: 16px 20px;
    box-sizing: border-box;
}

.events-main { display: flex; flex-direction: column; gap: 16px; }

/* Pravý sidebar skrytý pod lg (992px) */
.sidebar-right-col { display: none; }
@media screen and (min-width: 992px) {
    .sidebar-right-col { display: flex; flex-direction: column; gap: 16px; }
}

@media (max-width: 575px) { .page-layout { padding: 8px; } }

/* ── Filter sidebar ───────────────────────────────────────── */
.filter-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: .7px;
    padding: 4px 0 6px 0;
}

.filter-apply-btn { margin-top: 6px; }

.calendar-link-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    font-size: .875rem !important;
    color: var(--ipc-accent) !important;
    border: 1.5px solid var(--ipc-accent) !important;
    border-radius: var(--radius-sm) !important;
    line-height: 1.5 !important;
}

/* ── Filter checkboxes ───────────────────────────────────── */
.filter-checks { width: 100%; }
.filter-checks .ui-selectmanycheckbox { width: 100%; }
.filter-checks table { width: 100%; border-collapse: collapse; }
.filter-checks td {
    padding: 5px 8px;
    vertical-align: middle;
    border-radius: 8px;
    transition: background .15s ease;
}
.filter-checks td:hover { background: var(--ipc-accent-soft); }
.filter-checks label {
    font-size: .87rem;
    color: var(--text-soft);
    cursor: pointer;
    user-select: none;
}

/* ── Filter skupiny + extra polia ───────────────────────── */
.filter-groups { display: flex; flex-direction: column; gap: 16px; }
.filter-extras { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.filter-btns   { display: flex; gap: 8px; }
.filter-btns .ui-button { flex: 1; }

/* ── Event Card ───────────────────────────────────────────── */
.event-card {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}
.event-card-pinned { border-left: 4px solid var(--ipc-accent) !important; }
.event-card .ui-panel-content { padding: 0 !important; }
.event-card .ui-panel-titlebar { display: none !important; }

.event-card-content { display: flex; gap: 18px; padding: 16px; }

.event-card-image { width: 170px; flex-shrink: 0; overflow: hidden; border-radius: var(--radius-sm); }
.event-card-img {
    width: 100%;
    height: 116px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
    transition: transform .3s ease;
}
.event-card:hover .event-card-img { transform: scale(1.04); }
.event-img-placeholder {
    width: 100%;
    height: 116px;
    background: linear-gradient(135deg, var(--ipc-dark) 0%, var(--ipc-accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-end;
    padding: 8px;
}
.event-type-badge {
    background: rgba(255,255,255,.28);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.event-card-body { flex: 1; min-width: 0; }
.event-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.event-title { font-size: 1.08rem; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.event-card-body p { font-size: .83rem; color: var(--text-soft); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.event-card-body p .pi { color: var(--ipc-accent); font-size: .82rem; flex-shrink: 0; }
.event-desc { color: var(--text-muted) !important; margin-top: 8px !important; font-size: .82rem !important; line-height: 1.5; }

.pin-badge {
    background: var(--ipc-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.event-card-actions { margin-top: 10px; }

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: .95rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

.paginator-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 8px;
}
.pag-btn {
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    color: var(--text-soft) !important;
}
.pag-btn:not(:disabled):hover { background: var(--ipc-accent-soft) !important; color: var(--ipc-accent-dark) !important; }
.pag-info {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 0 10px;
    min-width: 64px;
    text-align: center;
}

/* ── Closing / Upcoming sidebar ──────────────────────────── */
.upcoming-list, .sidebar-list { list-style: none; padding: 0; }
.upcoming-item, .sidebar-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
}
.upcoming-item:last-child, .sidebar-item:last-child { border-bottom: none; }
.upcoming-item strong, .sidebar-item strong { display: block; color: var(--text); font-weight: 600; }
.upcoming-item span,   .sidebar-item span   { display: block; color: var(--text-muted); font-size: .78rem; margin-top: 2px; }

.closing-item strong { color: var(--ipc-accent-dark); }

.sidebar-event-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease, padding-left .15s ease;
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    border-left: 3px solid transparent;
}
.sidebar-event-link:hover {
    background: var(--ipc-accent-soft);
    border-left-color: var(--ipc-accent);
    padding-left: 11px;
}
.sidebar-event-link:hover strong { color: var(--ipc-accent-dark); }

/* ── Event Detail ─────────────────────────────────────────── */
.event-detail-page {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 32px;
    box-sizing: border-box;
}

.event-detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.event-detail-title   { font-size: 1.5rem; color: #1E2222; margin-bottom: 14px; }

.event-fieldset.ui-fieldset {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 20px 24px 16px !important;
    margin: 0 !important;
}
.event-fieldset .ui-fieldset-legend {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #1E2222 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
}

.detail-event-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}
.detail-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 6;
    background: linear-gradient(135deg, #1E2222 0%, #28A9CC 100%);
    border-radius: 8px;
    margin-bottom: 16px;
}

.event-meta { margin: 12px 0; }
.event-meta p { font-size: .88rem; margin-bottom: 5px; color: #555; }

.about-panel { margin: 14px 0 !important; }

.participants-section { margin-top: 20px; }
.participants-panel { margin-top: 0 !important; }
.participants-panel .ui-datatable th { background: #f5f5f5 !important; font-weight: 600; font-size: .85rem; }
.participants-panel .ui-datatable td { font-size: .875rem; padding: 8px 12px !important; }
.participants-panel .ui-datatable tr:nth-child(even) td { background: #fafafa; }
.participants-export { margin-top: 10px; text-align: right; }

/* ── Share dialog ─────────────────────────────────────────── */
.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s;
    width: 100%;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.share-btn svg { width: 38px; height: 38px; }
.share-btn small { font-weight: 400; font-size: 0.72rem; color: #888; }
.share-facebook { color: #1877F2; border-color: #1877F2; }
.share-facebook:hover { background: #f0f7ff; }
.share-linkedin { color: #0A66C2; border-color: #0A66C2; }
.share-linkedin:hover { background: #e8f3fb; }
.share-instagram { color: #d62976; border-color: #d62976; }
.share-instagram:hover { background: #fdf0f6; }
.share-tiktok { color: #111; border-color: #111; }
.share-tiktok:hover { background: #f5f5f5; }
.share-copied-msg {
    margin-top: 14px;
    padding: 8px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.rsvp-done-label { color: #2e7d32; font-weight: 600; font-size: .95rem; }

.detail-actions-sep {
    width: 1px;
    align-self: stretch;
    background: #dee2e6;
    margin: 0 4px;
}

/* ── Form Pages (Create Event / Profile) ──────────────────── */
.form-page { padding: 32px; display: flex; justify-content: center; flex: 1; }

.form-panel { width: 680px !important; box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; border-radius: 10px !important; }
.form-panel-wide { width: 800px !important; }

/* Full-width panel (create-event) */
.create-panel { box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; border-radius: 10px !important; }

body .ui-message { padding: 0 !important; }
.ui-message.field-error:not(.ui-message-error) { display: none !important; }
.ui-message.field-error.ui-message-error { display: block; color: #e53935; font-size: 1.0rem; margin-top: 4px; }

.form-panel .ui-panel-titlebar,
.create-panel .ui-panel-titlebar {
    background: linear-gradient(90deg, #1E2222 0%, #28A9CC 100%) !important;
    color: #fff !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 14px 20px !important;
}

.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

/* ── Profile Page ─────────────────────────────────────────── */
.profile-top { display: flex; gap: 24px; margin-bottom: 20px; }
.profile-avatar { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 140px; flex-shrink: 0; }
.avatar-img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid #28A9CC; background: #ddd; }
.lib-logo-img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; border: 3px solid #28A9CC; background: #f5f5f5; display: block; }
.lib-logo-placeholder { background: #e8e8e8; }
.profile-basic { flex: 1; }

.contact-panel { margin: 16px 0 !important; }
.contact-panel .ui-panel-titlebar { background: #f0f0f0 !important; color: #333 !important; }

/* ── Chat Page ────────────────────────────────────────────── */
.chat-layout { display: flex; gap: 0; flex: 1; height: calc(100vh - 64px); }

.chat-contacts { width: 280px; flex-shrink: 0; border-right: 1px solid #ddd; overflow-y: auto; }
.chat-contacts .ui-panel { height: 100%; border: none !important; border-radius: 0 !important; }
.chat-contacts .ui-panel-titlebar { background: #1E2222 !important; color: #fff !important; }


.chat-window { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-window .ui-panel { height: 100%; border: none !important; border-radius: 0 !important; display: flex; flex-direction: column; min-height: 0; }
.chat-window .ui-panel-titlebar { background: #f8f8f8 !important; color: #1E2222 !important; border-bottom: 1px solid #ddd !important; }
.chat-window .ui-panel-content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 !important; }

.chat-messages { flex: 1; min-height: 0; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.chat-load-more { display: flex; justify-content: center; padding-bottom: 6px; }
.chat-load-older-btn.ui-button { color: #28A9CC !important; font-size: .82rem !important; padding: 4px 12px !important; }

body.chat-page .footer { display: none; }

.chat-bubble { max-width: 60%; display: flex; flex-direction: column; gap: 2px; }
.chat-bubble.own   { align-self: flex-end; align-items: flex-end; }
.chat-bubble.other { align-self: flex-start; align-items: flex-start; }

.bubble-text {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: .9rem;
    line-height: 1.4;
}
.own   .bubble-text { background: #28A9CC; color: #fff; border-bottom-right-radius: 4px; }
.other .bubble-text { background: #e8e8e8; color: #333; border-bottom-left-radius: 4px; }

.bubble-time { font-size: .72rem; color: #aaa; padding: 0 4px; }

.chat-footer { border-top: 1px solid #eee; background: #fafafa; flex-shrink: 0; }
.chat-attach-error { display: block; padding: 4px 16px 0; font-size: .8rem; color: #e24c4c; }
.chat-file-preview { display: flex; align-items: center; gap: 8px; padding: 6px 16px; background: #eef7ff; border-bottom: 1px solid #c8e0f5; font-size: .85rem; color: #333; }
.chat-file-preview .pi { color: #28A9CC; }
.chat-file-preview-remove { background: none; border: none; cursor: pointer; color: #999; font-size: 1rem; line-height: 1; padding: 0 2px; }
.chat-file-preview-remove:hover { color: #e24c4c; }
.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; }
.chat-input { flex: 1 !important; border-radius: 20px !important; }

/* Clip + send button — icon only, rovnaká veľkosť */
.chat-file-btn,
.chat-send-btn { width: 2.357rem !important; height: 2.357rem !important; padding: 0 !important; flex-shrink: 0; }

.bubble-attachment { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.bubble-img { max-width: 260px; max-height: 200px; border-radius: 8px; display: block; cursor: pointer; }
.bubble-file { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.06); border-radius: 6px; padding: 6px 10px; font-size: .88rem; }
.bubble-file .pi { font-size: 1.1rem; }
.bubble-download { font-size: .78rem; color: inherit; opacity: .75; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.bubble-download:hover { opacity: 1; text-decoration: underline; }

/* Meno odosielateľa v skupinovom chate */
.bubble-sender { font-size: .75rem; font-weight: 600; color: #28A9CC; padding: 0 4px 2px; }

/* Avatar skupiny */
.contact-avatar-group { background: #1E2222 !important; font-size: 1rem; }

/* Dialog — prepínač DM / Skupina */
.dlg-mode-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.dlg-mode-toggle .p-button { flex: 1; }

/* Checkbox v zozname členov skupiny */
.user-picker-check { display: flex; align-items: center; gap: 10px; cursor: default; }
.user-picker-check .p-checkbox { flex-shrink: 0; }

/* Nadpis "Členovia" */
.group-members-label { font-size: .82rem; font-weight: 600; color: #666; }

/* ── Library Grid ─────────────────────────────────────────── */
.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.lib-card { border-radius: 8px !important; height: 100% !important; display: flex !important; flex-direction: column !important; }
.lib-card .ui-panel-content { padding: 14px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; }
.lib-card .ui-panel-content form { margin-top: auto !important; }
.lib-card .ui-panel-titlebar { display: none !important; }

.lib-card-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #1E2222 0%, #28A9CC 100%);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lib-card-logo { width: 100%; height: 100%; object-fit: cover; display: block; }

.lib-title { font-size: 1rem; color: #1E2222; margin-bottom: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lib-desc  { font-size: .82rem; color: #666; margin-bottom: 10px; min-height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ── Library Detail ───────────────────────────────────────── */
.lib-detail-page { align-items: flex-start; }
.lib-detail-content { width: 800px; max-width: 100%; }

.lib-detail-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1E2222 0%, #28A9CC 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.features-list { padding-left: 20px; }
.features-list li { margin-bottom: 6px; font-size: .9rem; color: #555; }

/* ── Nominatim autocomplete ──────────────────────────────── */
.nominatim-wrapper { position: relative; }
.nominatim-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c8e8f2;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 1000;
    display: none;
    max-height: 260px;
    overflow-y: auto;
}
.nominatim-item {
    padding: 8px 12px;
    font-size: .83rem;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}
.nominatim-item:last-child { border-bottom: none; }
.nominatim-item:hover { background: #e8f7fb; color: #28A9CC; }

/* ── Confirm Dialog ──────────────────────────────────────────── */
.ipc-confirm-dialog .ui-dialog-titlebar,
.ipc-confirm-dialog .p-dialog-header {
    background: #1E2222 !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0 !important;
}
.ipc-confirm-dialog .ui-dialog-content,
.ipc-confirm-dialog .p-dialog-content {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 20px 24px !important;
    font-size: .95rem !important;
    color: #333 !important;
}
.ipc-confirm-dialog .ui-confirmdialog-severity,
.ipc-confirm-dialog .p-confirm-dialog-icon {
    font-size: 1.8rem !important;
    color: #e67e22 !important;
}
.ipc-confirm-dialog .ui-dialog-buttonpane,
.ipc-confirm-dialog .p-dialog-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    border-top: 1px solid #eee !important;
}

/* ── Calendar page ────────────────────────────────────────── */
.fc { font-family: 'Segoe UI', Arial, sans-serif !important; }
.fc-toolbar-title { font-size: 1.1rem !important; color: #1E2222; }
.fc-event { background: #28A9CC !important; border-color: #28A9CC !important; border-radius: 4px !important; }

/* ── Chat: contacts header + avatar ──────────────────────── */
.chat-contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.new-chat-btn { color: #28A9CC !important; }

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.contact-item:hover,
.contact-item-active { background: #e8f7fb; }

.contact-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1E2222;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info { flex: 1; overflow: hidden; }
.contact-name    { font-weight: 600; font-size: .88rem; color: #1E2222; }
.contact-preview { font-size: .78rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty-contacts { text-align: center; color: #aaa; font-size: .85rem; padding: 24px 12px; line-height: 1.6; }

.contact-name-unread { font-weight: 800 !important; color: #1E2222 !important; }

.unread-badge {
    background: #e53935;
    color: #fff;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    padding: 0 5px;
    flex-shrink: 0;
    margin-left: 6px;
}

.nav-badge-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-unread-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    background: #e53935;
    color: #fff;
    border-radius: 10px;
    min-width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    padding: 0 4px;
    pointer-events: none;
    line-height: 1;
}

/* ── New chat dialog ──────────────────────────────────────── */
.new-chat-list { max-height: 340px; overflow-y: auto; border: 1px solid #eee; border-radius: 6px; }

.user-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.user-picker-item:hover { background: #e8f7fb; }
.user-picker-item:last-child { border-bottom: none; }

/* ── PrimeFaces Panel overrides — mäkké karty namiesto orámovaných boxov ── */
.ui-panel {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--surface) !important;
}
.ui-panel-titlebar {
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}
.ui-panel-content { padding: 18px 20px !important; }

/* ── Unified button style — všetky PrimeFaces buttony ────── */
body .ui-button,
body .p-button,
body .ui-button.p-button-sm,
body .p-button.p-button-sm,
body .ui-button.p-button-outlined,
body .p-button.p-button-outlined,
body .ui-button.p-button-secondary,
body .p-button.p-button-secondary,
body .ui-button.p-button-success,
body .p-button.p-button-success,
body .ui-button.p-button-warning,
body .p-button.p-button-warning,
body .ui-button.p-button-danger,
body .p-button.p-button-danger {
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: .875rem !important;
    padding: 0.55rem 1.1rem !important;
    min-height: 2.35rem !important;
    line-height: 1.25 !important;
    border-radius: var(--radius-sm) !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
body .ui-button:not(.p-button-outlined):not(.p-button-text):hover,
body .p-button:not(.p-button-outlined):not(.p-button-text):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
body .ui-button:active,
body .p-button:active { transform: translateY(0); }

body .ui-button,
body .p-button,
body .ui-button.p-button-success,
body .p-button.p-button-success {
    background: var(--ipc-accent) !important;
    border-color: var(--ipc-accent) !important;
    color: #fff !important;
}
body .ui-button:hover,
body .p-button:hover {
    background: var(--ipc-accent-dark) !important;
    border-color: var(--ipc-accent-dark) !important;
}

body .ui-button.p-button-secondary,
body .p-button.p-button-secondary {
    background: #eef1f4 !important;
    border-color: #eef1f4 !important;
    color: var(--text-soft) !important;
}
body .ui-button.p-button-secondary:hover,
body .p-button.p-button-secondary:hover {
    background: #e2e6ea !important;
    border-color: #e2e6ea !important;
    color: var(--text) !important;
}

body .ui-button.p-button-outlined,
body .p-button.p-button-outlined {
    background: transparent !important;
    border: 1.5px solid var(--ipc-accent) !important;
    color: var(--ipc-accent) !important;
}
body .ui-button.p-button-outlined:hover,
body .p-button.p-button-outlined:hover {
    background: var(--ipc-accent-soft) !important;
    color: var(--ipc-accent-dark) !important;
}

body .ui-button.p-button-warning,
body .p-button.p-button-warning {
    background: #e67e22 !important;
    border-color: #e67e22 !important;
    color: #fff !important;
}
body .ui-button.p-button-warning:hover,
body .p-button.p-button-warning:hover {
    background: #ca6f1e !important;
    border-color: #ca6f1e !important;
}

body .ui-button.p-button-danger,
body .p-button.p-button-danger {
    background: #e53935 !important;
    border-color: #e53935 !important;
    color: #fff !important;
}
body .ui-button.p-button-danger:hover,
body .p-button.p-button-danger:hover {
    background: #c62828 !important;
    border-color: #c62828 !important;
}

/* ── PrimeFaces Checkbox / Radio active ─────────────────── */
.ui-chkbox-box,
.p-checkbox-box,
.p-radiobutton-box {
    border-radius: 5px !important;
    transition: background .15s ease, border-color .15s ease;
}
.ui-chkbox-box.ui-state-active,
.p-checkbox-box.p-highlight,
.p-radiobutton-box.p-highlight {
    background: var(--ipc-accent) !important;
    border-color: var(--ipc-accent) !important;
}

/* ── PrimeFaces DatePicker full-width fix ────────────────── */
.ui-datepicker.w-full,
.p-datepicker.w-full {
    display: flex !important;
    width: 100% !important;
}
.ui-datepicker.w-full input.ui-inputfield,
.p-datepicker.w-full input.ui-inputfield,
.ui-datepicker.w-full .p-inputtext,
.p-datepicker.w-full .p-inputtext {
    flex: 1 !important;
    min-width: 0 !important;
    width: 0 !important;
}

/* ── PrimeFaces InputText ────────────────────────────────── */
.ui-inputtext,
.p-inputtext {
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-sans) !important;
    font-size: .875rem !important;
    border-color: var(--border) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ui-inputtext:focus,
.p-inputtext:focus {
    border-color: var(--ipc-accent) !important;
    box-shadow: 0 0 0 3px rgba(40,169,204,.15) !important;
}

/* ── PrimeFaces SelectOneMenu highlight ─────────────────── */
.ui-selectonemenu-item.ui-state-highlight,
.p-dropdown-item.p-highlight {
    background: #28A9CC !important;
    color: #fff !important;
}

.mt-1 { margin-top: 14px !important; }

/* ── Responzívne úpravy ──────────────────────────────────────── */

/* Tablet <1024px */
@media (max-width: 1023px) {
    .chat-layout     { flex-direction: column; height: auto; }
    .chat-contacts   { width: 100%; max-height: 220px; border-right: none; border-bottom: 1px solid #ddd; }
    .chat-window     { height: calc(100vh - 340px); min-height: 300px; }
}

/* Hamburger breakpoint ≤1100px (pokrýva zoom 133-150% na bežných monitoroch) */
@media (max-width: 1100px) {
    .ipc-header { padding: 0 16px; }

    /* Skryť desktop sekcie, zobraziť hamburger */
    .header-center, .header-right { display: none !important; }
    .header-create-wrap { display: none !important; }
    .hamburger-btn { display: flex; }

    /* Mobile nav panel */
    .mobile-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #1E2222;
        z-index: 999;
        padding: 16px;
        flex-direction: column;
        gap: 4px;
        border-top: 1px solid rgba(40,169,204,.3);
        border-bottom: 3px solid #28A9CC;
        box-shadow: 0 6px 20px rgba(0,0,0,.3);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .mobile-nav.open { display: flex; }

    /* Search v mobile nav */
    .mobile-nav-search {
        display: flex;
        gap: 6px;
        margin-bottom: 10px;
    }
    .mobile-nav-search .ui-inputtext {
        flex: 1 !important;
        background: rgba(255,255,255,.1) !important;
        border-color: rgba(255,255,255,.2) !important;
        color: #fff !important;
    }
    .mobile-nav-search-btn { flex-shrink: 0; }

    /* Create Event tlačidlo */
    .mobile-nav-row { margin-bottom: 8px; }

    /* Nav linky */
    .mobile-nav-link {
        display: block;
        padding: 11px 4px;
        font-size: .95rem;
        font-weight: 500;
        color: rgba(255,255,255,.8) !important;
        border-bottom: 1px solid rgba(255,255,255,.08);
        text-decoration: none;
    }
    .mobile-nav-link:hover { color: #28A9CC !important; }

    /* Spodná lišta: jazyk + logout */
    .mobile-nav-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
        margin-top: 4px;
        gap: 10px;
    }
    .mobile-nav-bottom .header-lang .ui-selectonemenu { width: 90px !important; }
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */

.landing-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #F5F6F6;
    color: #333;
}

/* ── Landing Header ──────────────────────────────────────── */
.landing-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(30,34,34,.92);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #28A9CC;
}
.landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.landing-brand { display: flex; align-items: baseline; gap: 2px; }
.landing-brand-ipc {
    font-size: 1.6rem;
    font-weight: 800;
    color: #28A9CC;
    letter-spacing: 2px;
}
.landing-brand-hub {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
}
.landing-header-actions { display: flex; align-items: center; gap: 10px; }

/* ── Landing Buttons ─────────────────────────────────────── */
.landing-btn-primary {
    background: #28A9CC;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    transition: background .2s;
    display: inline-block;
}
.landing-btn-primary:hover { background: #1d8eaa; }

.landing-btn-outline {
    background: transparent;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.4);
    font-size: .875rem;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    display: inline-block;
}
.landing-btn-outline:hover { border-color: #28A9CC; color: #28A9CC !important; }

.landing-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,.85) !important;
    padding: 11px 28px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.4);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, background .2s;
    display: inline-block;
}
.landing-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.landing-btn-lg { padding: 12px 32px; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────── */
.landing-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1E2222 0%, #0f3040 50%, #28A9CC 100%);
    display: flex;
    align-items: center;
    padding-top: 64px;
    overflow: hidden;
    position: relative;
}
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(40,169,204,.15) 0%, transparent 60%);
    pointer-events: none;
}
.landing-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin-left: max(24px, calc((100vw - 1200px) / 2));
}
.landing-hero-badge {
    display: inline-block;
    background: rgba(40,169,204,.25);
    border: 1px solid rgba(40,169,204,.5);
    color: #7dd8ef;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
}
.landing-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
}
.landing-hero-tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,.85);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}
.landing-hero-desc {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1.7;
    max-width: 480px;
}
.landing-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Hero visual — connection nodes */
.landing-hero-visual {
    position: absolute;
    right: max(24px, calc((100vw - 1200px) / 2));
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-hero-nodes { position: relative; width: 100%; height: 100%; }
.hero-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-node {
    position: absolute;
    width: 60px; height: 60px;
    background: rgba(40,169,204,.2);
    border: 2px solid rgba(40,169,204,.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd8ef;
    font-size: 1.4rem;
    backdrop-filter: blur(4px);
}
.hero-node-top  { top: 8%;  left: 50%; transform: translateX(-50%); }
.hero-node-left { bottom: 10%; left: 5%; }
.hero-node-right{ bottom: 10%; right: 5%; }
.hero-node-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background: #28A9CC;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; color: #fff;
    box-shadow: 0 0 30px rgba(40,169,204,.5);
}

/* ── Sections shared ─────────────────────────────────────── */
.landing-section { padding: 80px 24px; }
.landing-section-dark {
    background: #1E2222;
    color: #fff;
}
.landing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.landing-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: inherit;
    text-align: center;
    margin: 0 0 48px 0;
}
.landing-section-dark .landing-section-title { color: #fff; }

/* ── Pillars ─────────────────────────────────────────────── */
.landing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.landing-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.landing-card-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
}
.landing-card-icon-people   { background: #e8f7fb; color: #28A9CC; }
.landing-card-icon-companies{ background: #e8f0fb; color: #5b72cc; }
.landing-card-icon-schools  { background: #f0fbe8; color: #4caa5a; }
.landing-card h3 { font-size: 1.15rem; color: #1E2222; margin: 0 0 12px; }
.landing-card p  { font-size: .88rem; color: #666; line-height: 1.6; margin: 0; }

/* ── How it works ────────────────────────────────────────── */
.landing-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.landing-step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 260px;
}
.landing-step-num {
    width: 52px; height: 52px;
    background: #28A9CC;
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.landing-step h3 { font-size: 1rem; color: #fff; margin: 0 0 8px; }
.landing-step p  { font-size: .85rem; color: rgba(255,255,255,.65); margin: 0; line-height: 1.6; }
.landing-step-arrow {
    color: rgba(255,255,255,.3);
    font-size: 1.2rem;
    padding-top: 16px;
    flex-shrink: 0;
}

/* ── CTA ─────────────────────────────────────────────────── */
.landing-cta-section {
    background: linear-gradient(135deg, #28A9CC 0%, #1d8eaa 100%);
    text-align: center;
}
.landing-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.landing-cta-title { font-size: 2.2rem; font-weight: 700; color: #fff; margin: 0; }
.landing-cta-desc  { font-size: 1rem; color: rgba(255,255,255,.85); margin: 0 0 8px; }
.landing-cta-section .landing-btn-primary {
    background: #fff !important;
    color: #28A9CC !important;
    font-size: 1rem;
    padding: 13px 40px;
}
.landing-cta-section .landing-btn-primary:hover { background: #f0f0f0 !important; }

/* ── Landing responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .landing-hero-visual { display: none; }
    .landing-hero-inner  { max-width: 100%; margin-left: 24px; }
    .landing-hero-title  { font-size: 2.8rem; }
    .landing-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .landing-steps { flex-direction: column; align-items: center; gap: 24px; }
    .landing-step-arrow { transform: rotate(90deg); padding: 0; }
}
@media (max-width: 600px) {
    .landing-header-inner { padding: 0 16px; }
    .landing-hero-title   { font-size: 2.2rem; }
    .landing-section      { padding: 56px 16px; }
    .landing-hero-btns    { flex-direction: column; }
    .landing-btn-lg       { text-align: center; }
}

/* Mobilné zariadenia <768px */
@media (max-width: 767px) {
    .event-detail-page { padding: 12px 12px 24px; }
    .grid             { padding: 12px; gap: 12px; }
    .event-card-image { width: 90px; }
    .event-card-content { gap: 10px; padding: 10px; }
    .form-page        { padding: 12px; }
    .form-panel       { width: 100% !important; }
    .form-panel-wide  { width: 100% !important; }
    .field-row        { flex-direction: column; gap: 0; }
    .profile-top      { flex-direction: column; align-items: center; }
    .detail-actions   { flex-wrap: wrap; }
    .login-panel      { width: calc(100vw - 32px) !important; }
    .login-bottom-bar { width: 100%; flex-direction: column; align-items: center; gap: 10px; }
    .register-panel   { width: calc(100vw - 32px) !important; }
    .forgot-dialog    { width: calc(100vw - 32px) !important; }
    .lib-grid         { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .lib-detail-content { width: 100%; }
}
