            :root { --primary: #4f46e5; --bg: #f8fafc; --text: #0f172a; --text-muted: #64748b; --border: #e2e8f0; --success: #22c55e; --error: #ef4444; }
            * { box-sizing: border-box; }
            body { margin: 0; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
            .container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
            .nav-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
            .menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 20px; }
            .menu-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 32px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; }
            .menu-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
            .menu-card .icon { font-size: 56px; margin-bottom: 20px; display: block; }
            .menu-card h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
            .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
            .card { background: #fff; padding: 24px; border-radius: 20px; border: 1px solid var(--border); position: relative; transition: 0.3s; }
            .status-badge { font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; }
            .status-badge.active { background: #dcfce7; color: #166534; }
            .status-badge.inactive { background: #fee2e2; color: #991b1b; }
            .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
            .info-item { background: #f8fafc; padding: 10px; border-radius: 12px; border: 1px solid #f1f5f9; position: relative; }
            .info-item.paid { background: #dcfce7; border-color: #bbf7d0; }
            .info-item.unpaid { background: #fee2e2; border-color: #fecaca; }
            .info-label { display: block; font-size: 9px; text-transform: uppercase; color: var(--text-muted); font-weight: 800; letter-spacing: 0.5px; }
            .info-val { font-size: 13px; font-weight: 700; color: var(--text); }
            .search-controls { background: #fff; padding: 24px; border-radius: 24px; border: 1px solid var(--border); margin-bottom: 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 15px; align-items: center; }
            .search-controls input, .search-controls select { padding: 12px 18px; border: 2px solid #f1f5f9; border-radius: 14px; outline: none; font-family: inherit; font-size: 14px; width: 100%; }
            .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); }
            .modal-content { background: #fff; margin: 5vh auto; border-radius: 24px; width: 90%; max-width: 500px; overflow: hidden; }
            .modal-header { padding: 20px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
            .modal-body { padding: 30px; max-height: 70vh; overflow-y: auto; }
            .form-group { margin-bottom: 18px; }
            .form-group label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
            .form-group input, .form-group select { width: 100%; padding: 12px; border: 2px solid #f1f5f9; border-radius: 12px; font-family: inherit; }
            .btn { padding: 12px 24px; border-radius: 14px; border: none; cursor: pointer; font-weight: 800; transition: 0.2s; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
            .btn-primary { background: var(--primary); color: #fff; }
            .btn-outline { background: #fff; border: 2px solid var(--border); color: var(--text); }
            .btn-danger { background: #fee2e2; color: #b91c1c; }
            .view-section { display: none; }
            .view-section.active { display: block; }
            .breadcrumb { margin-bottom: 25px; display: none; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text-muted); }
            .breadcrumb span { cursor: pointer; }
            .breadcrumb .current { color: var(--primary); font-weight: 800; }
            .alert-box { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; padding: 20px; border-radius: 16px; margin-bottom: 30px; line-height: 1.6; position:relative; transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease; overflow:hidden; max-height:200px; }
            .alert-box.dismissing { opacity:0; transform:translateY(-8px); max-height:0; padding-top:0; padding-bottom:0; margin-bottom:0; }
            .alert-box .alert-close { position:absolute; top:10px; right:14px; cursor:pointer; font-size:18px; opacity:0.5; background:none; border:none; color:inherit; line-height:1; padding:0; }
            .alert-box .alert-close:hover { opacity:1; }
            .alert-box .alert-timer { position:absolute; bottom:0; left:0; height:3px; background:#4f46e5; border-radius:0 0 0 16px; width:100%; transform-origin:left; animation: alertTimer 10s linear forwards; }
            @keyframes alertTimer { from { width:100%; } to { width:0%; } }
            @keyframes bock-pulse {
                0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,193,7,0.5); }
                50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(255,193,7,0); }
            }
            @keyframes fadeInNotif { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
            .notif-item { animation: fadeInNotif 0.35s ease; }
            .akt-tab-btn.active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
            .akt-status-predstojeća { background:#eff6ff; border:1px solid #bfdbfe; color:#1d4ed8; font-size:11px; font-weight:800; padding:2px 10px; border-radius:20px; }
            .akt-status-protekla   { background:#f1f5f9; border:1px solid #cbd5e1; color:#475569; font-size:11px; font-weight:800; padding:2px 10px; border-radius:20px; }
            .error-message { background: #fee2e2; border: 1px solid #ef4444; color: #b91c1c; padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
            .profile-emoji-float { position: absolute; right: 8px; bottom: 8px; font-size: 20px; }
            .user-menu-wrap { position: relative; }
            .user-menu-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--border); background: #fff; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text); transition: 0.2s; user-select: none; }
            .user-menu-trigger:hover { border-color: var(--primary); color: var(--primary); }
            .user-menu-trigger .chevron { font-size: 10px; color: var(--text-muted); transition: transform 0.2s; }
            .user-menu-trigger.open .chevron { transform: rotate(180deg); }
            .user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); min-width: 360px; max-width: calc(100vw - 32px); overflow: hidden; z-index: 200; }
            .user-dropdown.open { display: block; }
            .user-dropdown a, .user-dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 18px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; text-decoration: none; transition: background 0.15s; text-align: left; }
            .user-dropdown a:hover, .user-dropdown button:hover { background: #f8fafc; }
            .user-dropdown .divider { height: 1px; background: var(--border); margin: 4px 0; }
            .user-dropdown .danger { color: var(--error); }
            .notif-badge { display: inline-flex; align-items: center; justify-content: center; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; padding: 0 5px; line-height: 1; }
            .user-dropdown .notif-row { display: flex; align-items: center; justify-content: space-between; }
            .user-dropdown .notif-row span:first-child { display: flex; align-items: center; gap: 10px; }
            .profile-tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 6px; border-radius: 18px; margin-bottom: 28px; width: fit-content; }
            .profile-tab { padding: 10px 22px; border-radius: 13px; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: 0.2s; white-space: nowrap; }
            .profile-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
            .profile-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.5); }
            @media (max-width: 600px) {
                #moj-profil .profile-tabs,
                #profileModal .profile-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
                #moj-profil .profile-tab,
                #profileModal .profile-tab { padding: 10px 8px; font-size: 13px; text-align: center; white-space: normal; border-radius: 10px; }
                .akt-desktop-btn { display: none !important; }
                .akt-mobile-btn  { display: inline-block !important; }
                /* Svi članovi — filteri na mobitelu */
                .search-controls { grid-template-columns: 1fr !important; }
                .search-controls .member-filter-toggle { display: inline-flex !important; }
                .member-filter-select { display: none !important; }
                .member-filter-select.open { display: block !important; }
                /* Aktivnosti — filteri na mobitelu */
                .akt-filter-tabs-desktop { display: none !important; }
                .akt-filter-tabs-mobile  { display: block !important; }
            }
            .akt-filter-mobile-item {
                display: block; width: 100%; padding: 12px 16px; border: none; background: transparent;
                text-align: left; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
                color: var(--text); transition: background 0.15s;
            }
            .akt-filter-mobile-item:hover { background: #f1f5f9; }
            .akt-filter-mobile-item.active { background: #eff6ff; color: var(--primary); }
            .akt-filter-mobile-item + .akt-filter-mobile-item { border-top: 1px solid var(--border); }
            .akt-gear-menu .akt-menu-item {
                display: block; width: 100%; padding: 11px 16px; border: none; background: transparent;
                text-align: left; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
                color: var(--text); transition: background 0.15s;
            }
            .akt-gear-menu .akt-menu-item:hover { background: #f1f5f9; }
            .akt-gear-menu .akt-menu-danger { color: #dc2626 !important; }
            .akt-gear-menu .akt-menu-item + .akt-menu-item { border-top: 1px solid var(--border); }
            .profile-tab-content { display: none; }
            .profile-tab-content.active { display: block; }

            /* ---- SKILL PICKER ---- */
            .skill-picker-tabs { display:flex; gap:4px; background:#f1f5f9; padding:5px; border-radius:14px; margin-bottom:18px; }
            .skill-picker-tab  { flex:1; padding:8px 6px; border-radius:10px; border:none; background:transparent; cursor:pointer; font-family:inherit; font-size:12px; font-weight:700; color:var(--text-muted); transition:0.2s; text-align:center; white-space:nowrap; }
            .skill-picker-tab.active { background:#fff; color:var(--primary); box-shadow:0 2px 8px rgba(0,0,0,0.08); }
            .skill-cards-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:8px; max-height:340px; overflow-y:auto; padding:2px 2px 4px 2px; }
            .skill-card {
                display:flex; flex-direction:column; align-items:center; justify-content:center;
                gap:6px; padding:12px 8px; border-radius:14px; border:2px solid #e2e8f0;
                background:#fff; cursor:pointer; transition:all 0.18s; text-align:center; position:relative;
                user-select:none;
            }
            .skill-card:hover { border-color:var(--primary); background:#eef2ff; transform:translateY(-2px); box-shadow:0 6px 16px rgba(79,70,229,0.13); }
            .skill-card.selected { border-color:var(--primary); background:#eef2ff; box-shadow:0 0 0 3px rgba(79,70,229,0.18); }
            .skill-card.selected::after { content:'✓'; position:absolute; top:5px; right:7px; font-size:11px; font-weight:900; color:var(--primary); }
            .skill-card.already { border-color:#bbf7d0; background:#f0fdf4; cursor:default; opacity:0.65; }
            .skill-card.already::after { content:'✓'; position:absolute; top:5px; right:7px; font-size:11px; font-weight:900; color:#22c55e; }
            .skill-card.already:hover { transform:none; box-shadow:none; border-color:#bbf7d0; background:#f0fdf4; }
            .skill-card-emoji { font-size:26px; line-height:1; }
            .skill-card-name  { font-size:11px; font-weight:700; color:var(--text); line-height:1.3; }
            .skill-select-counter { font-size:12px; font-weight:700; color:var(--primary); background:#eef2ff; padding:4px 12px; border-radius:20px; display:inline-block; }
